NetTalk Central

Author Topic: Passing Browse Value as parameter to Browse Link  (Read 3360 times)

Ubaidullah

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Passing Browse Value as parameter to Browse Link
« on: October 28, 2020, 02:53:44 AM »
Hi Browse,

I have a link in a browse row that opens another browse with child records for the records in the row. I am able to filter using the GUID of the parent which is passed as a parameter. How do I use AddBrowseValue() to pass the GUID of the parent record and then filter on the "bidv" in the child browse?

Regards,
Ubaidullah Nubar.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Passing Browse Value as parameter to Browse Link
« Reply #1 on: October 28, 2020, 02:55:20 AM »
You don't need to add anything - the Other button on the browse has an option to pass RowId. This is then automatically moved to the session value so you can use it in the filter.

cheers
Bruce

Ubaidullah

  • Full Member
  • ***
  • Posts: 125
    • View Profile
Re: Passing Browse Value as parameter to Browse Link
« Reply #2 on: October 28, 2020, 02:56:48 AM »
Thanks for the reply, Bruce.

How do I convert the RowId back into a GUID in the child browse?

edit: Based on some threads I am reading here, it seems that I can just do a p_web.GetValue(pre:GUID) and get the value without worrying about converting the RowId back. Is that correct?

Regards,
Ubaidullah Nubar.
« Last Edit: October 28, 2020, 03:13:46 AM by Ubaidullah »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Passing Browse Value as parameter to Browse Link
« Reply #3 on: October 30, 2020, 06:57:14 AM »
>> How do I convert the RowId back into a GUID in the child browse?

You don't - it's already populated for you, in teh SessionValue.

p_web.GetSessionValue('pre:GUID')