CA Service Management

 View Only
  • 1.  Change status when click edit button on employee role

    Posted Dec 14, 2015 05:52 AM
      |   view attached

    Dear All,

     

    I have question about coding. When employee created request ticket. The ticket will sent to manger for Approve or Reject. When manager change status to reject.

    Employee have to edit description and status will change to open when they finished edit.

    I tried to do some coding but it didn't work.Can you please help me check ? I will attach file to you.

    image2.png

    pic1.png

    pic2.png

     

    image1.png

     

    Thank you

    Chanopas

    Attachment(s)

    zip
    detail_cr.htmpl.zip   8 KB 1 version


  • 2.  Re: Change status when click edit button on employee role

    Posted Jan 04, 2016 01:08 AM

    Hi, I would try to put customization somewhere after <PDM_MACRO name=dtlStart>



  • 3.  Re: Change status when click edit button on employee role

    Posted Jan 04, 2016 01:40 AM

    Like Gutis mentioned, you might want to check the location of that PDM tag. It must be in a place where the input element is written inside the generated form HTML tags.

    Another option is to achieve this with a simple SPEL mod. Trigger on PRE_EVAL to be able to reject the edit if the description was not changed or POST_EVAL if you don't really care whether the user actually changes the description. Then just flip the status and you're done.