Notifications

29 views

Description

GlideModal('show_list') is used in UI action to check the incident list on form view. While using the filer in the POP window for incident list view, filter stop working in second attempt.

Steps to Reproduce

1. Go to UI action
Click - "New" UI Action

3. Create the new UI action "test modal" with below script -

check the "Client" checkbox
check the "Form Button" checkbox
Add "hasClicked()" value in the OnClick Field.

Add the below script in the script box

function hasClicked(){
var gdw = new GlideModal('show_list');
gdw.setTitle("Hello World");
gdw.setSize(750);
gdw.setPreference('focusTrap', true);
gdw.setPreference('table', 'incident_list');
gdw.setPreference('sysparm_query', 'sys_created_onRELATIVEGE@month@ago@3');
gdw.render();
}

Save the UI Action

4. Go to incident list https://InstanceName.service-now.com/incident_list.do
5. Open any of the Incident
6. Click on "Test Modal" UI action which we created earlier
7. Click on Filer opened in the pop up window
Created -> on -> Last 12 Months
8. Click on Run
You should be able to see the output according to the last 12 Months.
9. Close the "Test Modal" pop up window
10. Open the "Test Modal" UI action again
11. Click on Filer opened in the pop up window
Created -> on -> Last 12 Months
12. You can see no results

Once you will refresh the incident window and perform the step 10 and 11 again then you can see that the issue is not there.

Expected behavior : Filter works first time and it should work in the the second attempt too.

Actual behavior : Filter works first time and in the second attempt it stops working.

Workaround

This issue is under review. To receive notifications when more information is available, subscribe to this Known Error article by clicking the Subscribe button at the top right of the article. If you are able to upgrade, review the Fixed In field to determine whether any versions have a permanent fix.


Related Problem: PRB1352856

Seen In

There is no data to report.

Intended Fix Version

Orlando

Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2019-09-18 00:35:49
Published:2019-09-18