NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: osquiabro on December 14, 2013, 01:54:20 PM

Title: Button in Browse
Post 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]
Title: Re: Button in Browse
Post by: kevin plummer on December 15, 2013, 05:52:38 PM
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.
Title: Re: Button in Browse
Post by: osquiabro on December 16, 2013, 02:14:00 AM
my call is a procedure no url..
Title: Re: Button in Browse
Post by: osquiabro on December 16, 2013, 03:40:55 AM
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..

Title: Re: Button in Browse
Post by: Bruce on December 16, 2013, 09:41:48 PM
see
http://www.capesoft.com/docs/NetTalk7/NetTalkWebFAQ.htm#W4
Title: Re: Button in Browse
Post by: Bruce on December 16, 2013, 09:44:50 PM
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

Title: Re: Button in Browse
Post by: osquiabro on December 17, 2013, 05:04:33 AM
but how i can retreive the Row ID field value in my ServerDocument procedure??

thanks.
Title: Re: Button in Browse
Post by: Bruce on December 17, 2013, 05:09:23 AM
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
Title: Re: Button in Browse
Post by: osquiabro on December 17, 2013, 05:38:36 AM
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.

Title: Re: Button in Browse
Post by: Bruce on January 20, 2014, 02:15:53 AM
fixed in 7.33 I think.