On selecting a row in a DG table.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
On selecting a row in a DG table.
Hi,
In my current interface, the user is asked to select a customer - a row in the DG, the click on button "Continue".
Is it possible that user clicks on line and this action invokes the button "Continue", (so the button doesn't even have to be visible).
Something like...On Selection in the DG handler ???
In my current interface, the user is asked to select a customer - a row in the DG, the click on button "Continue".
Is it possible that user clicks on line and this action invokes the button "Continue", (so the button doesn't even have to be visible).
Something like...On Selection in the DG handler ???
Re: On selecting a row in a DG table.
Hi CAsba,
put this into the script of your datagrid group (NOT into any behaviour!)
Now everytime the user click on a row, the code will be executed.
Best
Klaus
put this into the script of your datagrid group (NOT into any behaviour!)
Code: Select all
on selectionChanged pHilitedIndexes, pPreviouslyHilitedIndexes
## add your button code here...
end selectionChanged
Best
Klaus
Re: On selecting a row in a DG table.
Klaus, Thanks for that. It works wonderfully. How do you know such rare gems ?
Re: On selecting a row in a DG table.
I always sleep with the complete LC docs under my pillow!
-
- VIP Livecode Opensource Backer
- Posts: 9670
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: On selecting a row in a DG table.
I sleep with the "Complete Works of Klaus" under mine. Still waiting for enlightenment...
Craig
Craig
Re: On selecting a row in a DG table.
OK, I am using LC and its ancestors (Metacard, Runtime Revolution, Revolution) since 1999
and have a very good memory, that's my secret.
and have a very good memory, that's my secret.