Start another table by passing a parameter.
Start another table by passing a parameter.
bndalia
Posts: 5Questions: 3Answers: 0
When I click on a row of my table, a modal opens showing the data in different tabs. In one of the tabs I want to start another table, passing as a parameter a data of the row selected to be used in the server side query.
Need to help me because I do not know how to do it.
Thank you. Greetings.
This discussion has been closed.
Answers
Hi @bndalia ,
This example here shows how child rows can be created as a new table - not what you're after, but it shows how to create tables dynamically. Hope that helps,
Cheers,
Colin
Hi @bndalia,
I've been spending most of my day yesterday on a similar issue. Not sure if this addresses your exact needs, but it could help others... I'm very new to this amazing package, please excuse me if there are other simpler or built-in solutions!
What it does is : 'dblclick on some row in table A' ==> 'open table B with search set to some values coming from A'.
Here's the code:
I have a 'contact' table and a 'company' table. Both tables are related through contact.fk_company = company.id
What I wanted is to open the 'company' table at the right position when one dblclicks on the contact.
So what I did was to add an event callback in table.contacts as this (thanks to @Desconhecido for posting the 'dblclick' to 'row data' part) :
In the destination page, I had to add this inside the 'document ready' block :
Hope this helps!