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
rtandon17@gmail.comrtandon17@gmail.com 

Help:Displaying records of Master detail objects in VFpage

Need Help:Displaying records of Master detail objects in VFpage, detail object a table of recrds wid input values from the users for the fields.
 
I have two objects---Object1,object2.
Object1 is master of object2.
i need to have two section of these two objects.
Sction1 contains object1 fields.Once i will click on save it should save a record,meanwhile i should have fields for
 objects2 and there should be one button ADD Row,by clicking the button records should get added and once i will hit on save,all records of object2 should link with object 1. 

Now i am having standard controller="Object1" extension="MultiAdd"

now the issue is in the first section i am getting the fields,but in the second section, fields are not coming as table
format since in order to insert records i should have input text.I have used input field in it.
 
Please guide me where I am making mistake , is it the controllers/extensions that I am using it wrongly . 

Please help me with the sample code or suggestions or guide me if I am missing something. I am very new to Apex/VF programming. 

Need your help urgent.  Thanks in advance
Ashish_SFDCAshish_SFDC
Hi R.Tandon, 

You have to create input fields and a Add button which saves these records as child records to the same parent record. 

See the links below for similar information, 

http://raydehler.com/cloud/clod/salesforce-url-hacking-to-prepopulate-fields-on-a-standard-page-layout.html

http://help.skuidify.com/s/tutorials/m/components/l/109459-create-parent-and-child-objects-on-the-same-page

Regards,
Ashish