You need to sign in to do that
Don't have an account?
Victor19
get specific parameter from a url
Hi,
I need to grab only the id from the current page. I am currently using:
ApexPages.currentPage().geturl();
Is there a way to capture selective parameters from the currentPage url.
I would really appreciate if someone could help me out
Thanks!
I need to grab only the id from the current page. I am currently using:
ApexPages.currentPage().geturl();
Is there a way to capture selective parameters from the currentPage url.
I would really appreciate if someone could help me out
Thanks!
You have to get parent record id from the URL,
This is a example for, how to get parent id from url in my custom objects,
klid=ApexPages.currentPage().getParameters().get('CF00N90000008dXrx_lkid');
recklid=ApexPages.currentPage().getParameters().get('CF00N90000008dXrx');
Try this type of way in your parent record id.
All Answers
ApexPages.currentPage().getParameters().get('id')
Thanks,
Venkat
I already tried the get('id') method and it is returning a null value;
Basically what I am trying to do is I am populating the child record with the parent id in the lookup field by grabbing the parent record id from the url.
I am doing it through apex and visualforce.
Thanks
You have to get parent record id from the URL,
This is a example for, how to get parent id from url in my custom objects,
klid=ApexPages.currentPage().getParameters().get('CF00N90000008dXrx_lkid');
recklid=ApexPages.currentPage().getParameters().get('CF00N90000008dXrx');
Try this type of way in your parent record id.