jneale / Xplore

Xplore: Developer Toolkit for ServiceNow
MIT License
198 stars 147 forks source link

Open List with Xplore does not copy the filter since version 5.0 #90

Closed hsabathy closed 1 hour ago

hsabathy commented 3 hours ago

Was it a deliberate feature change in Xplore 5.0 to not copy the filter to Encoded Query when opeining a List in Xplore?

Repro on PDI: Open List of network gear by Cisco https://instancexyz.service-now.com/cmdb_ci_netgear_list.do?sysparm_query=manufacturer%3Db7e831bdc0a80169015ae101f3c4d6cd&sysparm_view=

Right-click on any Column header, "Open list in Xplore", the resulting code is: var gr = new GlideRecord('cmdb_ci_netgear'); //gr.orderBy('name'); // .... gr.query();

Counter-example : how it did work with version 4.13 and how itt is more handy: Open List with Xplore, the resulting code contains the filter: var gr = new GlideRecord('cmdb_ci_netgear'); gr.addEncodedQuery('manufacturer=b7e831bdc0a80169015ae101f3c4d6cd'); //gr.orderBy('name'); // ... gr.query();

jneale commented 2 hours ago

Definitely not a deliberate feature change! To fix now, please update UI Script snd_xplore_shortcuts, line 36 to be: encoded_query,

hsabathy commented 2 hours ago

Wow! Thank you, this works : )

jneale commented 1 hour ago

Fixed in 5.01 now on Share.