NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: kevin plummer on January 22, 2015, 05:21:31 PM
-
When I insert a record from a browse I go to a form. I would like to add a record and then switch to change mode. I'm trying to do this in the pre-insert embed. The following code used to work in NT7 in the pre-insert embed. I'm trying this in NT8. Any suggestions?
p_web.filetosessionqueue(potrn,net:alsovaluequeue)
ans = net:ChangeRecord
p_web.SetSessionValue('FormNewDraftPO:Primed',1)
-
Hi Kevin,
the auto-inc obviously does exactly this. Looking though that code it seems to boil down to
Self.FileToSessionQueue(File,Net:AlsoValueQueue)
Ans = Net:ChangeRecord
p_web.SetSessionValue('Procedure:Primed',1)
and this needs to be before
do SetFormSettings
But that looks like what you are doing, so perhaps this _is_ working? And something else is wrong?
Cheers
Bruce
-
Hi Bruce,
sorry, had it in the wrong embed in pre-insert - still works!
Cheers,
Kevin