NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: osquiabro on December 14, 2013, 01:54:20 PM
-
I have a problem with custom button in a browse, when click the first time open the correct record but if press any other button in a list return the last record selected, only work is select the record and then press button.
I attach a demo, this demo is created by jking but with my modified..
[attachment deleted by admin]
-
If you are opening the record using a URL set on your custom button that refers to the row ID it won't work because the link is called at the same time that the row id is updated.
-
my call is a procedure no url..
-
i change the call to url like this http://localhost:88/servedocument?Record=1 and work but how i can encrypt the url?? or call without expouse de record id??
I need to prevet that user enter the value directly into the url..
-
see
http://www.capesoft.com/docs/NetTalk7/NetTalkWebFAQ.htm#W4
-
Incidentally, if you set the PROCEDURE field for the button to ServeDocument, and tick on the option "Include Row ID field" then the bidv value is included in the link for you. This is a better approach than using the URL field.
cheers
Bruce
-
but how i can retreive the Row ID field value in my ServerDocument procedure??
thanks.
-
it's automatically primed from the bidv into the session value for you.
ie if the browse is on the CUSTOMER table, and the "Unique ID Key" for that table is set to the CUS:IDKEY, wihch contains the component CUS:ID then
p_web.GetSessionValue('cus:Id')
is primed for you in the destination.
cheers
Bruce
-
not work at all, my destination is a Netwebpage no NetwebForm and in my browse i have a unique id key CRF:CRF_ID
the problem is when click in the button the first time is work but if i press the button in other row then return the last record selected in a browse.
-
fixed in 7.33 I think.