This topic is locked

Adding Detail In Modal Form

5/21/2013 12:19:27 PM
PHPRunner General questions
S
Suety29 author

Hi,
I have a master-detail relationship set up with the ability to add the master and detail information on the same page using a tab for the detail information. when i select add new on the master list page, the master_add page is opened for data entry and the detail page is also in inline add mode. There is a lot of information to be added for the detail so the user would have to scroll across too much. Ideally, i would like the use to open the master_add page and in the details tab:

  1. if there already are details entered, display them and when the user clicks inline add or inline edit open a modal form with the add page.
  2. if no details have been entered yet, display only the inline add button onload, and when the user clicks the inline add button open a modal form with the add page.
    i tried using the tutorial in the blog, but when i click inline add it's not opening the modal form (still opening in inline mode).
    Can anyone help?

W
wildwally 5/21/2013
S
Suety29 author 5/22/2013



http://www.asprunner.com/forums/topic/20922-tutorial-how-to-display-any-phprunner-page-in-a-modal-popup-window/
Look there - tutorial on how to use the built in Modal windows.


Thanks i got it to work.

W
wildwally 5/22/2013

Glad someone was able to - my first attempt I was unsuccesful. I'm sure I missed something along the way. When things slow down a little I'll go back and give it another try.

S
Suety29 author 5/22/2013



Glad someone was able to - my first attempt I was unsuccesful. I'm sure I missed something along the way. When things slow down a little I'll go back and give it another try.


Well honestly speaking the instructions were not very clear.. so it took me a while to figure it out... i eventually manually created a button and used an onclick event for the button to call a function in the myscripts.js file mentioned in the tutorial...