You need to sign in to do that
Don't have an account?
Sam.arj
inputField does not automatically read the Url parameters in VF
I am writing a VF page that replaces the Edit/Page page of my custom object (A). Edit and New buttons are overrided to show my VF page. (A) has mater-detail relationship with Custom object (B).
When i click on custom object (A) List Button "New" from Custom Object (B) detail page following Url is produced:
/a03/e?CF00N700000028JuA=Custom+Object+A+Name&CF00N700000028JuA_lkid=a007000000A7Rc1&scontrolCaching=1&retURL=%2Fa007000000A7Rc1
a007000000A7Rc1 = this the Custom Object A ID.
And my VF page is lunched properly but the inputField which is hooked to Custom Object (A) is empty!
Any idea how i can fix this?
When i click on custom object (A) List Button "New" from Custom Object (B) detail page following Url is produced:
/a03/e?CF00N700000028JuA=Custom+Object+A+Name&CF00N700000028JuA_lkid=a007000000A7Rc1&scontrolCaching=1&retURL=%2Fa007000000A7Rc1
a007000000A7Rc1 = this the Custom Object A ID.
And my VF page is lunched properly but the inputField which is hooked to Custom Object (A) is empty!
Any idea how i can fix this?
That was actually what I thought of myself but the point is I did not find any documentation on these URL parameters to understand how they work.
CF00N700000028JuA=Custom+Object+A+Name&CF00N700000028JuA_lkid=a007000000A7Rc1
for example the "CF00N700000028JuA" is the parameter name for the SObject name field and "_lkid" is added to it to make the ID parameter.
But how can put this into a program this so that it would work all the times?
So what do you have any suggestions for me? Is there any other way to resolve this problem?