You need to sign in to do that
Don't have an account?
yespee
pre-populate standard page with parent
Hi folks,
We have a custom object which is a child to Account object with a master detail relation.
A visualforce page with Accounts standard contoller is extended to list all child records associated with each account.
A new button on above VF page opens standard create child record page. We have below code
<apex:outputLink value="{!URLFOR($Action.btr_stores__c.New)}
The problem with above code Account Name is not being populated.
Is there a way to populated Account Name when user click a new link from VF page?
Hi
<apex:outputLink value="{!URLFOR($Action.btr_stores__c.New)}?Account__c={!Account.id}"/>
Account__c is your field in the Btr_Stores__c object if it is not correct please make changes then try
jd123, thanks for the response. sorry but this does not populate standard page with account name. any other suggestions?
HI
See these links
http://stackoverflow.com/questions/11030763/how-to-create-a-link
http://salesforcesource.blogspot.in/2008/12/urlfor-function-finally-explained.html
http://my.safaribooksonline.com/book/programming/forcedotcom/9780978963958/visualforce-pages/ch09lev1sec3