Sign in or 

|
Posted Anonymously |
need help on a script
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 |
1. RE: need help on a script
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?
|