Home Analyst Portal

Help with custom 'resolve incident' task.

Vyacheslav_GromovVyacheslav_Gromov Partner IT Monkey ✭

HI all.

Plese help me with custom task.

I need incident classification in this task.

My code

html template

<div id="selectClass" class="form-control form-control-picker input-sm cs-form__enum--dropdown"

     data-url="/api/V3/Enum/GetList"

     data-combourl="/api/V3/Enum/GetFlatList/"

     data-showpath="true"

     data-mustselectleafnode="true"

     data-bind="ciresonDropDownTree: '1f77f0ce-9e43-340f-1fd5-b11cc36c9cba', value: ResClassId" >

  </div>

<script>

var vmChangeStatusTask = kendo.observable({

  ResClassId: ""

});

kendo.bind($("#selectClass"), vmChangeStatusTask);

</script>


js code

resolveIncident(resCategoryId, vmChangeStatusTask.Get("ResClassId"), resDescription);

customWindowResolve.close();


But this didn't work.

Answers

  • Shane_WhiteShane_White Cireson Support Super IT Monkey ✭✭✭✭✭

    Hi @Vyacheslav_Gromov

    What version of the portal are you on? If you are on 10.2 and above you will have the ability to install Add-Ins, one of which is exactly what you are trying to achieve here and will save you the time coding it.

    Here is what it looks like:

    Is this what you are trying to achieve? Or something different?

    Thanks,

    Shane

  • Vyacheslav_GromovVyacheslav_Gromov Partner IT Monkey ✭

    I have this custom task with three fields

    Resolution category

    Resolution Classification

    Resolution description


    But my field 'Resolution Classification' is the flat list, in my code above I change it to get list like this

    but could not send (bind) results from html template to JS code.

    As I found out code in <script> tags not working.

  • Shane_WhiteShane_White Cireson Support Super IT Monkey ✭✭✭✭✭

    Ahh this is because the dropdown list using a combination of Kendo features, the treelist and the dropdown list. It is a combined control as our version of Kendo doesn't have the new combobox in it.

    So you would need to implement a control combined of the treelist and dropdown list and push your data in like that for it to look like you want.

  • Vyacheslav_GromovVyacheslav_Gromov Partner IT Monkey ✭
    edited February 18

    Can you plese give me some examples?

Sign In or Register to comment.