Page 1 of 1

On selecting a row in a DG table.

Posted: Wed Oct 25, 2023 1:07 pm
by CAsba
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 ???

Re: On selecting a row in a DG table.

Posted: Wed Oct 25, 2023 1:21 pm
by Klaus
Hi CAsba,

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
Now everytime the user click on a row, the code will be executed.


Best

Klaus

Re: On selecting a row in a DG table.

Posted: Wed Oct 25, 2023 2:02 pm
by CAsba
Klaus, Thanks for that. It works wonderfully. How do you know such rare gems ?

Re: On selecting a row in a DG table.

Posted: Wed Oct 25, 2023 2:28 pm
by Klaus
I always sleep with the complete LC docs under my pillow! :D

Re: On selecting a row in a DG table.

Posted: Wed Oct 25, 2023 3:14 pm
by dunbarx
I sleep with the "Complete Works of Klaus" under mine. Still waiting for enlightenment...

Craig

Re: On selecting a row in a DG table.

Posted: Wed Oct 25, 2023 3:58 pm
by Klaus
:lol: :lol: :lol:

Re: On selecting a row in a DG table.

Posted: Thu Oct 26, 2023 8:29 am
by Klaus
OK, I am using LC and its ancestors (Metacard, Runtime Revolution, Revolution) since 1999
and have a very good memory, that's my secret. :-)