You need to sign in to do that
Don't have an account?
get parameters from page layout to visualforce page
Hi All,
I have developed a visualforce which embeded to the page layout. I want to get a parameter from the pagelayout to the embedded visualpage. According to that parameter I want to query some values. Is there any approach to get parameters as above?
Thanks in Advance
--
Chamil Madusanka
Hi Chamil,
You can get Employee record id in query string at embeded VF page.
Change your code to...
Regards,
Kamlesh
All Answers
You won't be able to access the contents of the page that your visualforce is embedded into, as that is from a different server and the browser won't allow it. However, as you are using the standard controller for the object, you can simply examine its fields.
Or are you trying to do something based on the page layout itself (e.g. based on the number of columns etc)?
Page layout is related to the custom object Employee__c. Employee__c and Contact object has a lookup relationship. custom visual page has used in Employee__c page layout.The query in the controller which communicate with visualforce page is related to the Contact object.
I want to get the Employee__r.Name (Employee__c.Name) which is already in Employee__c page layout.
That's the issue.
--
Chamil Madusanka
Hi Chamil,
You can get Employee record id in query string at embeded VF page.
Change your code to...
Regards,
Kamlesh
Hi Kamlesh,
Thank you very much Kamlesh. I have solved my problem with your reply.
--
Chamil Madusanka