CA Service Management

 View Only
  • 1.  Fields not change in form(detail_in.htmpl)

    Posted Apr 15, 2016 10:00 AM

    Hi everyone,

     

    I'm working on a customization for ServiceDesk.

    My customization should fill automatically the Urgency and impact fields  depending on area.

    The fields are being filled, but when the form is submitted the fields are not being saved in ticket (detail_in), the fields keep with the default values.

     

    The method meuMetodo() is called for do it.

     

    function meuMetodo()
    var myImpact = "$args.category.zcategory_impact";
    var myUrgency = "$args.category.category_urgency";
    
    document.main_form.elements["SET.impact"].value = myImpact;
    document.main_form.elements["SET.urgency"].value = myUrgency;
    
    set_priority(pri_cal_matrix, myImpact, myUrgency);
    }
    

     

    Any suggestion?

     

    Attachment(s)

    zip
    detail_in.htmpl.zip   11 KB 1 version
    zip
    detail_pcat.htmpl.zip   2 KB 1 version


  • 2.  Re: Fields not change in form(detail_in.htmpl)

    Posted Apr 15, 2016 12:36 PM

    Hi Felipe, can you share your form with us?  Would you be able to attach it to your post?  We can take a look at it and see if anything sticks out that would cause this type of issue.

    Jon I.



  • 3.  Re: Fields not change in form(detail_in.htmpl)

    Posted Apr 19, 2016 02:32 PM

    Hi Jon_Israel,

    I update the files, you can checked it?

    I think they are ok.



  • 4.  Re: Fields not change in form(detail_in.htmpl)

    Posted Apr 21, 2016 04:40 PM

    Hi I think default values are set by trigger and spel code. If you will manually edit those fields (by yourself no by the script) your selected values will be saved. Try to play with document.main_form.elements["SET.man_urg"]; document.main_form.elements["SET.man_imp"]; I think they are somehow related to detection whatever impact or urgency where modified manually.



  • 5.  Re: Fields not change in form(detail_in.htmpl)

    Posted May 03, 2016 03:23 PM

    Gutis,

    I tried several ways with javascript, but it did not work.
    There is how to do this by Spel?



  • 6.  Re: Fields not change in form(detail_in.htmpl)

    Posted Dec 22, 2016 07:50 AM

    HI,

    did you finally make it work?

     

    Your spl will only work if you save your ticket is what do you intend to do?

    /J



  • 7.  Re: Fields not change in form(detail_in.htmpl)

    Posted Jan 11, 2017 08:39 AM

    I did with SPEL, but the values are set when the ticket is save.



  • 8.  Re: Fields not change in form(detail_in.htmpl)

    Posted Apr 24, 2017 09:57 AM

    Hi Felipe,

     

    could you share the spl and mod file for this.

    I do have a similar requirement.

    with my spel the values are getting saved in db. but on form its reflecting only during refresh the page.

    can you help