NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: JohanR on July 16, 2023, 03:06:23 AM

Title: Other Button on a browse - record ID
Post by: JohanR on July 16, 2023, 03:06:23 AM
Hi,

I have added an 'Other' button on a browse
What is the correct way to populate a URL to call a procedure with a parameter coating the record ID of the relevant browse record?


URL set to  'ServeDocOrderPDF' & '?document_isn=' & clip(doc:document_isn)
I have it working in one browse, but for some reason not working in another browse.
So perhaps not quite the correct way?


thanks

Johan

Title: Re: Other Button on a browse - record ID
Post by: Bruce on July 16, 2023, 11:37:21 PM
select a procedure to call,
tick on "include Row ID Field".
Title: Re: Other Button on a browse - record ID
Post by: JohanR on July 17, 2023, 12:37:25 AM
Hi Bruce

How do I extract the field_id in the receiving procedure?


thanks

Johan

Title: Re: Other Button on a browse - record ID
Post by: Bruce on July 17, 2023, 02:06:43 AM
I believe it's in the session value already for you.
If not you'll need to do a p_web.StoreValue in the receiving side, but from memory I don't think that's necessary.
Title: Re: Other Button on a browse - record ID
Post by: JohanR on July 17, 2023, 11:04:34 AM
Hi Bruce

thanks, got it ,
both work, I prefer the p_web.GetValue, just feels better to actually get the value.

loc:document_isn = p_web.GSV('doc:document_isn')

and

loc:document_isn = p_Web.GetValue('doc:document_isn')


Thanks

Johan