Modifying the Edit-In-List function in the list_cr and list_in forms.
search cancel

Modifying the Edit-In-List function in the list_cr and list_in forms.

book

Article ID: 46470

calendar_today

Updated On:

Products

CA Service Management - Service Desk Manager CA Service Desk Manager

Issue/Introduction

The following doc describes ways to modify the "Edit-In-List" functionality on the list_in.htmpl and list_cr.htmpl forms. 

The specific example given is to add the Group field as an entry to be able to utilize the "Edit In List" on the call request list form.

Environment

Service Desk Manager 14.x and 17.x

All Supported Operating Systems

Resolution

1.  Launch Web Screen Painter (WSP)

2.  Open/Edit the list_cr.htmpl form (for Requests). 

3.  On the bottom of the page, in the blue list field, right-click on "Projected Violation", and choose "Insert Column".

4.  A new column with "Label" will appear between columns "Assigned To" and "Projected Violation"

5.  Right-click on the new column on the "Label" text and choose Properties.

6.  Set all attributes as seen here.  Close the dialog box when done to save the changes:

7.  Choose the "Source" tab on the bottom of the form.

8.  Below the lines for "<pdm_jscript file=list_edit.js>", include the entry: "listEditField("group");" to add this field as one to use in "Edit In List"

9.  Save and publish the revised form.

The list request display will show the group column added and you can also use Edit In List to manipulate the group field.

Additional Information

In the same file are some other examples of coding that could be of value:

This shows a way to include additional search parameters to filter the entries, in this case, displaying the reference number of a request's parent ticket:

listEditField("parent.ref_num", "", "", "", "+ADDITIONAL_WHERE=" + nx_escape("( type = 'R' OR type = '' OR type IS NULL )"));

This allows you to modify the field for Summary to be read-only.

listEditReadonly("summary",4);

In all cases, the javascript being leveraged, and where the listEditField is the list_edit.js that is located in the NX_ROOT\bopcfg\www\wwwroot\scripts:

function listEditField( attr_name, hdrtext, cols, size, extraURL, extraEvt, dataType)