This topic is locked

Simulating inline add for detail table on master ADD page

11/27/2017 12:17:11 PM
PHPRunner General questions
G
gsonny authorDevClub member

Hi,
Am new here and was hoping anyone could help...
I have a master table M and it has 2 details tables D1 and D2. It has been set to display the details D1 and D2 (as sections) on the master add page.
Both D1 and D2 are enabled for inline add and edit.
This works perfectly.
I have to customize this so that....
1)There is a custom drop down field (of templates) on the section of D2
2)There is a custom button (load) next to the drop down field.
3) When the user selects an option (a template name) from the drop down and presses the custom button, one or more 'inline add' should be programmatically triggered for the table D2 and pre-loaded with some data.
I have been able to create the custom field and the button.
But I am not able to figure out how to specify an 'inline add' that targets table D2 from the master add page.
Help!
Thanks,

George
PS:(The documentation available on https://xlinesoft.com/phprunner/docs/how_to_control_inline_add_edit_functionality_from_script.htm is perfectly working when I am already on the D2's list page and trying to simulate inline add from script.)