You need to sign in to do that
Don't have an account?

How to tell which action is invoked?
I have a custom object and I want to replace Delete, Edit, New, and View actions content source with VF page.
I want to use the same VF page but display differnt section for different action.
Is there a way to tell which action is invoked in Apex?
thanks,
David
I want to use the same VF page but display differnt section for different action.
Is there a way to tell which action is invoked in Apex?
thanks,
David
In that case you need to use if else conditons or rendered part on UI. On UI you can put the condtion on section for rendered in which condtion.
-Thanks
Ashlekh Gea
Thanks Guys for your quick feedbacks.
Actually, I have already implemented the actions with different VF pages. In my opinion, it would be perfect for maintainance purpose if all of pages can be merged in one page with displaying different section for different action.
Specifically, I am looking for methods similar to "action.isnew", "action.isedit".
For now, it seems idea combining Adam and Shlekh's suggestion is way to go.