AnsweredAssumed Answered

Let + Case statement don't work

Question asked by user28397 on Mar 9, 2017
Latest reply on Mar 9, 2017 by dtcgnet

Hi

 

i'm tryin to filter a portal. I made this script:

 

Let ( Account = Get ( AccountName );

 

 

Case ( Account = "Administration" ; Perios Dashboard Links::id_service_fk = "1";

       Account = "Animation" ; Perios Dashboard Links::id_service_fk = "2";

       Account = "Cafeteria" ; Perios Dashboard Links::id_service_fk = "3";

       Account = "Cuisine" ; Perios Dashboard Links::id_service_fk = "4";

       Account = "Direction" ; Perios Dashboard Links::id_service_fk = "5";

       Account = "Ergomotricite" ; Perios Dashboard Links::id_service_fk = "6";

       Account = "Gouvernante" ; Perios Dashboard Links::id_service_fk = "7";

       Account = "Infirmier Chef" ; Perios Dashboard Links::id_service_fk = "8";

       Account = "Infirmier Chef Adjoint" ; Perios Dashboard Links::id_service_fk = "23";

       Account = "Infirmier Zone 1" ; Perios Dashboard Links::id_service_fk = "9";

       Account = "Infirmier Zone 2" ; Perios Dashboard Links::id_service_fk = "10";

       Account = "Lingerie" ; Perios Dashboard Links::id_service_fk = "11";

       Account = "Soins 1" ; Perios Dashboard Links::id_service_fk = "12";

       Account = "Soins 2" ; Perios Dashboard Links::id_service_fk = "13";

       Account = "Soins 3" ; Perios Dashboard Links::id_service_fk = "14";

       Account = "Soins 4" ; Perios Dashboard Links::id_service_fk = "15";

       Account = "Soins 5" ; Perios Dashboard Links::id_service_fk = "16";

       Account = "Soins 6" ; Perios Dashboard Links::id_service_fk = "17";

       Account = "Soins 7" ; Perios Dashboard Links::id_service_fk = "18";

       Account = "Salle a Manger" ; Perios Dashboard Links::id_service_fk = "19";

       Account = "Secretaire" ; Perios Dashboard Links::id_service_fk = "20";

       Account = "Technique" ; Perios Dashboard Links::id_service_fk = "21";

       Account = "Economat" ; Perios Dashboard Links::id_service_fk = "22";

       Account = "Admin" ; Perios Dashboard Links::id_service_fk = "24";

    

) )

 

But it don't work.

Can someone tell me where is the error?

 

Thanks

Outcomes