This topic is locked
[SOLVED]

 Open with Detail tables "cancelled"

3/18/2017 5:54:18 PM
PHPRunner General questions
H
Hertz2P author

My project has a Master table that has several details tables that are displayed on the Add, Edit, and View of the Master table. On the Add page of the Master table, all the Detail tables are opened and ready to have data entered into them. It looks like this:

Each Detail table has buttons, "Add New" and "Cancel" show up on the Master table add page. As you can see, I edited the text of the "Cancel" buttons to display "None" instead.
If you click on "Cancel" (or "None" in this case,) the dialog for that table 'minimizes' and takes up much less space and has a much cleaner look. The "Add New" button is still displayed, and if pressed will open the Add_New page for that table inside the Master, just like it was before.
In this picture, I've pressed the "Cancel" ("None") buttons on all the nested Detail tables:

I like this look much better. Does anyone know if there is a way to set this view as the default for the "Add New" view of the master table?
Thanks!

jadachDevClub member 3/19/2017

Here is a work around.
On the totals tab, add a section. mark it unchecked for expanded initially. Name your section something like Add Details. Drop your details page under it.
This way, your users will only see clickable bars. Once they click, the detail inline add will show.

H
Hertz2P author 3/19/2017



Here is a work around.
On the totals tab, add a section. mark it unchecked for expanded initially. Name your section something like Add Details. Drop your details page under it.
This way, your users will only see clickable bars. Once they click, the detail inline add will show.


Thanks for the input Jerry, I'd forgotten about sections and tabs. For this project, I've got around 15 Details tables linked to the master. So to do just one section kind of defeats the purpose because when clicked, they all open up like they were already doing. I'd essentially need to do a section for each, and name that section the same as the Details table or something similar.
I may end up doing that in the end, or I may just leave it like it is.. I was just hoping for something a little more elegant like maybe some onload event code that could in effect click the 'cancel' button on each table when loading, or something like that.
Thanks again,

Ed

jadachDevClub member 3/19/2017

I am suggesting you add one section per child table. This way users click the appropriate section to expand. All others stay closed.

H
Hertz2P author 3/20/2017



I am suggesting you add one section per child table. This way users click the appropriate section to expand. All others stay closed.


Actually, this turned out quite nicely as I was able to group similar child tables together. It keeps input on a mobile device to a manageable amount of data on the screen at one time.
I would still like to figure out how to make the child tables start "cancelled," but I've got bigger fish to fry at this time. I'm going to mark this as solved with the workaround.
Thanks Jerry!