CA Service Management

  • 1.  Create Problem button from within an Incident

    Posted Feb 21, 2019 08:47 PM

    Within an incident record you have the create problem button.

     

     

    When you click on the button it copies across specific information from the incident record into the new problem record.  If I want to add an addition custom field to be populated when that button is clicked, where do i find the magic behind it to update?

     

    Cheers,

    Simon



  • 2.  Re: Create Problem button from within an Incident
    Best Answer

    Posted Feb 24, 2019 09:22 PM

    Hi Simon,

    The 'magic' is hiding in plain sight in the detail_in form.  If you follow the logic around, clicking the 'create problem' button sets a flag 'parent.createProblem' and does a Save.  One of the first things the detail_in form does is to look at the 'parent.createProblem' flag: if set, the form calls 'create_new' with a preset 'type=P' and a reference to 'frm002', which is a form within the detail form.  Find '<form name="frm002">' and add the 'SET.' element of your field as a new hidden field to the form, modelling it on 'impact'.  For example:

    Publish the form and test.

    Hope that helps,

    Regards,

    James



  • 3.  Re: Create Problem button from within an Incident

    Posted Feb 25, 2019 05:03 PM

    Cheers James, much appreciated....



  • 4.  Re: Create Problem button from within an Incident

    Posted Feb 26, 2019 12:45 AM

    You are very welcome.  Glad I could help.