• Sadish Kumar
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 2
    Replies
While overriding the 'ReduceOrder' button on Order Object, i selected the checkbox 'Skip Record Type Selection Page' but i still see the Record Type selection page

Is this Salesforce bug ? Or i'm i missing something here ?
Hi Guys - I'm using a 'For Update' in my SOQL query in awebservice method and i'm getting an error message "Error: Compile Error: SObject type does not allow locking rows at line ". Can someone let me know whats the problem here !!!

My Code :
*****
global class recordLocking { 
    webService static Boolean lockmyrecord(String idUser) {
        Boolean val = false;
        User obj = null;
        obj = [SELECT Id FROM User WHERE Id = :idUser LIMIT 1 FOR UPDATE]; 
        return (val);
    }
}
*****


 
While overriding the 'ReduceOrder' button on Order Object, i selected the checkbox 'Skip Record Type Selection Page' but i still see the Record Type selection page

Is this Salesforce bug ? Or i'm i missing something here ?
Hi Guys - I'm using a 'For Update' in my SOQL query in awebservice method and i'm getting an error message "Error: Compile Error: SObject type does not allow locking rows at line ". Can someone let me know whats the problem here !!!

My Code :
*****
global class recordLocking { 
    webService static Boolean lockmyrecord(String idUser) {
        Boolean val = false;
        User obj = null;
        obj = [SELECT Id FROM User WHERE Id = :idUser LIMIT 1 FOR UPDATE]; 
        return (val);
    }
}
*****