You need to sign in to do that
Don't have an account?
How can we pass 2 ids as query string parameter in this following e.g.?
I created a custom component as recordDisplay what they give in VF guide.
<apex:component>
<apex:attribute name="record" description="The type of record we are viewing."type="Object" required="true"/><apex:pageBlock title="Viewing {!record}">
<apex:detail />
</apex:pageBlock>
</apex:component>
Then i created a apex page as follows
<apex:page >
<c:recordDisplay record="Account" />
</apex:page>
It works fine when we pass Account id as query string.But my doubt is if we use recordDisplay for 2 times in a page for Account and Contact object then how i have to modify the code to pass 2 ids as id&cid please tell me.......Thanks
Make your Componenet as:
and Visulaforce page as:
Now you can view both Contact and Account.
Regards,
Lakshman
All Answers
Make your Componenet as:
and Visulaforce page as:
Now you can view both Contact and Account.
Regards,
Lakshman
Thanks Lakshman