Iron Speed Technical Forums
Register Latest Topics
 
 
 


Reply
  Author   Comment  
Tooth

Registered:
Posts: 13
Reply with quote  #1 

I've found others asking similar questions but no solutions. Hopefully, I am missing something obvious and the answer is straightforward though.

I have an Master Add record page with a Child Detail Table. I want users to be able to add records to the Child detail table by clicking on the detail table Add record button and going to a separate add record page. (page.png)

Problem is that I cannot get the ID field of the master record page passed to the child's Add Record page.

Looking at button actions I've tried to set up two actions: Save Data on page (attempt2.png), Save Data on control with master record control (attempt1.png) selected. 

Looking at the generated code, neither configuration seems to save the record before the page redirect so the ID field of the master record is not passed.

I've tried with the Add button Postback set to True and to False. I've repeated this exercise with the child detail table control being an edit table control and a show table control.

Advice most appreciated.

thanks,

Simon

Attached Images
Click image for larger version - Name: attempt1.png, Views: 29, Size: 36.26 KB  Click image for larger version - Name: page.png, Views: 26, Size: 52.25 KB  Click image for larger version - Name: attempt2.png, Views: 41, Size: 52.42 KB 

akeshgupta

Avatar / Picture

Iron Speed MVP
Design, Develop & Deliver

Registered:
Posts: 1,090
Reply with quote  #2 
Simon:

We have been making the Add Master page without the detail and renaming "Save" button to say "Continue" where we send the user to Edit Master page.  Then the user can select the Add from the tab and things work quite well.

HTH,

__________________
Akesh Gupta
Light Speed Solutions, LLC.
If I rest, I will rust !   Let's share the knowledge !
pinbot

Avatar / Picture

MVP Consultant
Registered:
Posts: 952
Reply with quote  #3 
The master record does not have an Id when you click the add record button for the child table.


The Master record is not saved (thereby generating an Id) until you click the save button.

The reason is because you can click Cancel and no record is ever saved. 

Even if you add 10 records in a child edit table, NONE are saved until the parent record is saved first.


You might be able to call the (page) save function yourself before redirecting to the client add page, but be sure to get the newly created key before calling the child page.

Or do it Akesh's way.  :-)

__________________
C. Bryan Patrick II
Iron Speed Designer MVP Consultant
Pseudo Consulting
Tooth

Registered:
Posts: 13
Reply with quote  #4 
Thanks Akesh and Bryan. I'm finally clear on the reasoning behind ISD working this way now . I went with Akesh's paradigm and it works fine for my purposes.

thanks again

Simon
japerezm

Registered:
Posts: 6
Reply with quote  #5 
Quote:
Originally Posted by akeshgupta
Simon:

We have been making the Add Master page without the detail and renaming "Save" button to say "Continue" where we send the user to Edit Master page.  Then the user can select the Add from the tab and things work quite well.

HTH,


Hi Akesh,
How you pass the the ID of master record to the edit page??.

Thanks
Juan Antonio
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Download Iron Speed Designer

Terms of Service Privacy Statement