Hi @Teodor, once again I am struggling with this., and I know it should be easy.
I followed your instructions but cannot get it to work. Here is what I did…
- Created 2 Server Actions, each with a simple SQL Query, the 2nd has a $_GET variable for the ID.
- I then went to the App Structure, added the two Server Actions.
- I added a Data Variable to accept the ID. This was set with no Value in the Variable Properties.
- I generated 2 tables to display the data using the Generators > Bootstrap 4 Table Generator.
- On the 1st table (Brands) I selected the Table Body (tbody) which is the repeat part of the table and went to dynamic events > mouse > click > set variable value > set the
brand_id
there. I set it from the Table Body #brand_id. But this didn’t work.
In this screen shot I changed names but not the process
So the onclick event shows as dmx-on:click="menu_id.setValue(menu_id)
but this doesn’t work.
If I manually enter a number such as dmx-on:click="menu_id.setValue('5')
then I get the info relating to ID=5.
I tried selecting all of the options (on the screenshot) under Table Body such as # $index
but no luck. I also selected all the options under Server Connect: conn_menu_read
but with no luck.
As you can probably tell from my haphazard approach, I still cannot work out clearly what I should be doing. Your guidance would be very much appreciated.