+ Start a Discussion
JayKayJayKay 

How to retain Approval Lock Record functionality even when EDIT is overriden with a VF Page?

Hi!

 

I've overridden the "Edit" functionality of a Custom Object with a VF Page which uses Standard Controller with extensions.

 

Now, when this object's records are submitted for approval and locked, I'm still getting my overriden VF Page when clicked on Edit button. Instead, is it possible to retain "Lock Record" functionality by making changes in the extension Classes?

 

Thanks!

Karthik.

Best Answer chosen by Admin (Salesforce Developers) 
Edwin VijayEdwin Vijay

Yes it is defenitely possible...

 

http://community.salesforce.com/sforce/board/message?board.id=general_development&message.id=14727 .. This would be very tedious i believe.. I have a very easy way here..

 

http://salesforceexperts.blogspot.com/2009/06/how-to-check-whether-record-has-been.html

 

Hope this helps...

Message Edited by Edwin1 on 06-24-2009 01:01 AM

All Answers

Edwin VijayEdwin Vijay

Yes it is defenitely possible...

 

http://community.salesforce.com/sforce/board/message?board.id=general_development&message.id=14727 .. This would be very tedious i believe.. I have a very easy way here..

 

http://salesforceexperts.blogspot.com/2009/06/how-to-check-whether-record-has-been.html

 

Hope this helps...

Message Edited by Edwin1 on 06-24-2009 01:01 AM
This was selected as the best answer
JayKayJayKay

Thanks! Edwin... It really helped me to complete my first VF page successfully.

 

It was very easy n simple to understand for a newbie like me.

Edwin VijayEdwin Vijay

Hello Jay...Good to know that it helped ....

 

If you need any assistance or sample code in any area post it in my blog.. i am planning to include many sample programs and workarounds there...

 

Cheers........ 

ankit284511ankit284511

Hello

 

 I was trying to blog on ur website..but i was not able to ....

 

I am trying to make a list from the Sobject Userterritory like:

 

List<Userterritory> uid=[select userid from UserTerritory where Territoryid=:Apexpages.currentpage().getparameters().get('id')];

 

This is giving me an error which is very unusual.

The error is

 

 

Error: Compile Error: Illegal assignment from LIST:SOBJECT:UserTerritory to LIST:userterritory at line 4 column 1

 

 

line 4 is  

List<Userterritory> uid=[select userid from UserTerritory where Territoryid=:Apexpages.currentpage().getparameters().get('id')];

 

 

Please help me out with this.

 

My scenario is I want the name of the users in a particular Territory. If you have any other approach for this please reply back.

 

I would also like to have your phone number or personal emial address so that i can ask you my queries, because i have a very aggressive timeline..and i am a kind off newbie to sfdc.

 

 

 

 

BWagsBWags

Just taking a quick glance at your post you have:

 

List<Userterritory> uid=[select userid from UserTerritory where Territoryid=:Apexpages.currentpage().getparameters().get('id')];

 

When it should be:

 

List<UserTerritory> uid=[select userid from UserTerritory where Territoryid=:Apexpages.currentpage().getparameters().get('id')];