You need to sign in to do that
Don't have an account?
Navigation using custom button in standard page
From a standard page of an standard object, how can i redirect to next record of the same object??.
To be more clear....
I have a requirement -
In a lead page i have many leads records available.When clicked on one of the lead record a lead detail page will open.And in that lead page i need to place a custom button- "NEXT". such that when clicked on the button it should redirect to next lead record.
Instead of clicking on cancel and then redirecting it to main page and from there clicking on respective record to open.
I just want to place a button to redirect it to next record.
Is this possible?? If yes, please let me know...
Thanks
prashanth
This could have been done easily had it been your custom code, but will get the order in which salesforce returns record.
Had your listing page been a custom one , then you would have known how the records are retreived and could have easily redirected the user to the next record.
You can probably override the the Tab with your custom listing page , then it will be easy to provide a custom button to go to the next record.
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Thanks for your reply Ispita.
Actually i can do it using the Apex code and visual force functionality.
But is there any other way to do this.
For instance, by using {!cancel} action method we can navigate to the original page from wherethe page has been opened .In the same way is there any other method to show the next record??
Thanks
shaan
There are several things worth trying out, instead of creating all custom listing.
http://sfdc.arrowpointe.com/2009/01/08/invoke-apex-from-a-custom-button-using-a-visualforce-page/
In that article someone explains how to achieve the effect, try and see if it fits your needs.
Both approachs are very similar, just have in mind what parameters you need , but youll surely end up with a VF page that calls a controller that does the trick. How it interacts with the button depends on whether its a JS button or a VF button.
The VF button approach could be very simple if you can grab some parameters , haven't done this myself, i'll try later if i get some spare time and let you know.
Hope this helps as an alternative, let me know how it worked and if you can how you coded it ! , i might need it in the future :)
Gaston.