function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
HussHuss 

Master-Detail records, data entry for both on the same page

How can I make a page that has both Master Record and Detail Records on the same page for data entry?

 

I have a Header Table and a Line Table and would like to be able to enter the Header Details at the top of the page and then be able to add multiple lines associated with the Header, all from within the same page.

 

So the Page would look somewhat like:

 

Header Field 1 Header Feild 2 Header Field 3

-------------------------------------------------------------------- 

 

Row 1 = Detail Field 1 Detail Field 2 Detail Field 3 Detail Field 4

Row 2 = Detail Field 1 Detail Field 2 Detail Feild 3 Detail Field 4 

.

.

 

 

Thanks. 

MakMak
Build a custom VF page with an extension  / custom controller. Have the list of child objects as a property in the class. And use pageBlockTable to display child elements on page.
HussHuss

Mak wrote:
Build a custom VF page with an extension  / custom controller. Have the list of child objects as a property in the class. And use pageBlockTable to display child elements on page.

Are there any examples of this anywhere? I am new to the force.com platform.

JoeyDJoeyD

I found this article http://lexnetcg.com/blog/salesforce/visualforce-one-screen-data-entry-salesforce/, which is great... but I too am new to everything having to do with Apex and Visualforce and would have loved to see how this was done.

 

Has no one done this yet?