CA Service Management

  • 1.  Im trying to update the cutomize field using the spl code for specfied Category

    Posted Sep 16, 2014 05:47 AM

    Hi Friends,

     

        To specified the category i need to update the custom field in the database.

     

     

    Below mention spl while executing i getting error "syntax incorrect"

     

    cr::zsam(...) {

    if(category==pcat:4001)

    send_wait(0, this, "call_attr", "zsam", "set_val",Hi, "SURE_SET");

    }

     

    OBJECT cr {

      TRIGGERS {

        POST_VALIDATE zsam() 500 FILTER(EVENT("UPDATE"));

      };

    };

     

     

    Regards,

    napa



  • 2.  Re: Im trying to update the cutomize field using the spl code for specfied Category

    Posted Sep 16, 2014 09:45 AM

    Hi,

     

    What product does your question apply to? I would be happy to move it to the right community for you to make sure it gets answered.

     

    Thank you



  • 3.  Re: Im trying to update the cutomize field using the spl code for specfied Category

    Posted Sep 16, 2014 09:33 PM

    Hi Chris,

     

    Pls move this thread to ServiceManagement community.

     

    Thanks,

    Naveen



  • 4.  Re: Im trying to update the cutomize field using the spl code for specfied Category

    Posted Sep 17, 2014 01:50 AM

    Hi Chris,

     

      Can moved to CA Service Desk Community.Thanks for update.

     

     

    Regards,

    napa



  • 5.  Re: Im trying to update the cutomize field using the spl code for specfied Category

    Posted Sep 17, 2014 11:07 AM

    Hi napa.

    There are some quotes missing. Try the following (assuming your attribute cr.zsam is of type string):

     

    cr::zsam(...) {

      if(category=="pcat:4001")

        send_wait(0, this, "call_attr", "zsam", "set_val", "Hi", "SURE_SET");

    }

     

    hope that works.

    Regards

    ............Michael