You need to sign in to do that
Don't have an account?
Connector Team 2
how to get id of Page
Hello guys,
How to redired on below page after click the button. I want to redirect on following page after click their page page. How to get id of this page?
How to redired on below page after click the button. I want to redirect on following page after click their page page. How to get id of this page?
Schema.DescribeSObjectResult destination = destinationSObject.getDescribe(); PageReference pageRef = new PageReference('/' + destination.getKeyPrefix() ); pageRef.setRedirect(true); return pageRef;
All Answers
I think you will want to redirect utilizing the name of the page in some fashion. The visualforce page will have a unique name.
Depending on how you're acheiving this you'll need to specificy additional parameters like record id.
In Setup-Develop-Pages you can view all the visualforce pages in your org.
-derhyk
If customer is select 5 bills and press my custom button, those all bills posted. one want to return back on that list vew page.
every time url comes like this:
/a0K?fcf=00Bo0000001uHgv
How to get this url. a0K change sometime a3D or a0V like that.
Schema.DescribeSObjectResult destination = destinationSObject.getDescribe(); PageReference pageRef = new PageReference('/' + destination.getKeyPrefix() ); pageRef.setRedirect(true); return pageRef;