NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: HPabon on October 03, 2014, 08:31:13 AM
-
Hi,
I'm trying to read data from a form to a secondary file. It seems that is reading the second file but
when displaying data from the second file, it is just blank. Using NTWS 7.26.
Here is the code I'm using:
DO OPENFILES
INS1:NumSoc= PEN:NumSoc
Get(INFSOCW,INS1:KeyNumSoc)
message(PEN:NumSoc) !Correct number is displayed
p_web._LoadRecord(Infsocw,INS1:KeyNumSoc)
message(INS1:Dir1) ! Data is displayed
p_web.FileToSessionQueue(INFSOCW)
p_web.SSV('dir1',INS1:Dir1)
message(p_web.GSV('Dir1')) ! Blanks are displayed
DO CLOSEFILES
Thanks for any help.
-
try this:
p_web.SSV('dir1',p_web.GSV('INS1:Dir1'))
p_web._trace( p_web.GSV('Dir1') )
Robert
-
Hi Robert,
Maybe I'm using the wrong embed, as it does not seem to work even tough I can read the record.
:-[
Maybe is a bug in version 7.6.
-
Hi Hector,
Let's reduce the code a bit to just load the record, and store it in the session queue...
Is the prefix of INFSOCW really INS1 ?
Access:INFSOCW.Open()
Access:INFSOCW.UseFile()
INS1:NumSoc= PEN:NumSoc
Access:INFSOCW.Fetch(INS1:KeyNumSoc)
p_web.FileToSessionQueue(INFSOCW)
Access:INFSOCW.Close()
This code will run anywhere, but of course pre-supposes that PEN:NumSoc is set to something.
Cheers
Bruce
-
Hi Bruce,
Thanks for help.
It works as a charm!