NetTalk Central

Author Topic: Other Button on a browse - record ID  (Read 886 times)

JohanR

  • Sr. Member
  • ****
  • Posts: 339
    • View Profile
    • Email
Other Button on a browse - record ID
« 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


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: Other Button on a browse - record ID
« Reply #1 on: July 16, 2023, 11:37:21 PM »
select a procedure to call,
tick on "include Row ID Field".

JohanR

  • Sr. Member
  • ****
  • Posts: 339
    • View Profile
    • Email
Re: Other Button on a browse - record ID
« Reply #2 on: July 17, 2023, 12:37:25 AM »
Hi Bruce

How do I extract the field_id in the receiving procedure?


thanks

Johan


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11179
    • View Profile
Re: Other Button on a browse - record ID
« Reply #3 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.

JohanR

  • Sr. Member
  • ****
  • Posts: 339
    • View Profile
    • Email
Re: Other Button on a browse - record ID
« Reply #4 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