Location: Start a New Thread

Discussion: need help on a scriptReported This is a featured thread

Showing 2 posts

Posted Anonymously
need help on a script
Mar 31 2010, 6:02 AM EDT | Post edited: Mar 31 2010, 6:02 AM EDT
update consoleitems set commandparameters = ':DECLARE USERROLE, MODE;
ROLE_MODIF = {"N","K","L"};
MODE:="NONE";
USERROLE := GetFromSession("MYUSERROLE");
:BEGINCASE;
/* SPM 11/01/2010 Modification du rôle valideur;
/*:CASE USERROLE == "N" .OR. USERROLE == "K" ;
:CASE USERROLE == "N";
MODE := "MODIF"; /* Visualiser un labo / Ajout de type de matériau;
:CASE USERROLE == "L";
MODE := "CREATE"; /* Visualiser, Créer, modifier, activer, désactiver un labo;
:OTHERWISE;
MODE := "VIEW"; /* Visualiser seulement;
:ENDCASE;
:RETURN {MODE};' where itemname = 'Usines, domaines, laboratoires';


here is the error :



SP2-0734: unknown command beginning "ROLE_MODIF..." - rest of line ignored.
SP2-0734: unknown command beginning "MODE:="NON..." - rest of line ignored.
SP2-0734: unknown command beginning "USERROLE :..." - rest of line ignored.
SP2-0042: unknown command ":BEGINCASE" - rest of line ignored.

Coud you help me?
Do you find this valuable?    
Baby_Apple
Baby_Apple
1. RE: need help on a script
Apr 1 2010, 7:00 PM EDT | Post edited: Apr 1 2010, 7:00 PM EDT
This is NOT a scripting forum! If you post again, you will be IP banned. Do you find this valuable?    

Related Content

  (what's this?Related ContentThanks to keyword tags, links to related pages and threads are added to the bottom of your pages. Up to 15 links are shown, determined by matching tags and by how recently the content was updated; keeping the most current at the top. Share your feedback on Wetpaint Central.)