NetTalk Central

Author Topic: User Cliked on a row in a browse  (Read 3549 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
User Cliked on a row in a browse
« on: April 02, 2009, 06:08:43 AM »
Hi,
I´ve added some code in this embed but nothing happens.
I´ve even coded a message() and nothing.
I need to ssv a variable related to a field on the browse row.

Thanks
Alberto
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: User Cliked on a row in a browse
« Reply #1 on: April 02, 2009, 08:26:09 PM »
Hi Alberto,

when you click on the browse row, do you see anything appear in the server log? Note that it'll only trigger a request if the row you select is different to the row already selected.

Cheers
Bruce

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Re: User Cliked on a row in a browse
« Reply #2 on: April 03, 2009, 02:02:03 AM »
Hi Bruce,

The problem is when you call the browse in _select_ mode.

I need to set a session value with the value of one of the fields of the selected row when the user press the select button. Even if the user does not click on the first row.

How to do it?

Thanks
Alberto
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: User Cliked on a row in a browse
« Reply #3 on: April 03, 2009, 10:48:14 PM »
Hi Alberto,

The correct place to do stuff like that is in the form you are returning to.
There's a specific "after lookup" embed point for that.

At that point you have the unique record identifier - if you need more from the record then you need to open the file, fetch the record, and copy whatever you like to the session queue. (Incidentally the template has options for this, Lookup Settings, More Assignments).

Remember that even if the did it in the browse, when the select button is clicked, you'd still have to fetch the record. All you get from the click is the row id.

Cheers
Bruce