Comments on: How to Create a Custom Global Search Page https://servicenowguru.com/system-ui/custom-global-search-page/ ServiceNow Consulting Scripting Administration Development Tue, 28 May 2024 21:36:22 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Patrick Bishop https://servicenowguru.com/system-ui/custom-global-search-page/#comment-6625 Thu, 02 Feb 2017 13:31:29 +0000 https://servicenowguru.wpengine.com/?p=966#comment-6625 I was just attempting to build this inside of a scoped application and am receiving the following error: Function getPreference is not allowed in scope XXX. I was looking at the Scoped Functions but I’m not seeing an obvious workaround. Does anyone have suggestions?

]]>
By: Mark Stanger https://servicenowguru.com/system-ui/custom-global-search-page/#comment-6624 Mon, 20 Oct 2014 13:22:52 +0000 https://servicenowguru.wpengine.com/?p=966#comment-6624 In reply to Pushkal Sharma.

You’re stuck with what ServiceNow gives you using this approach. I have seen paging implemented in search results like this but it has always been a completely custom setup.

]]>
By: Pushkal Sharma https://servicenowguru.com/system-ui/custom-global-search-page/#comment-6623 Mon, 20 Oct 2014 12:45:20 +0000 https://servicenowguru.wpengine.com/?p=966#comment-6623 Hi Mark,

Thank you very much for this functionality. It is very helpful!!
Is it possible to include the pagination( same as kb_list UI page) in this UI page?
As a workaround we used jquery for the pagination but the customer is not happy with that and wants to see the ServiceNow Pagination (Please see ‘kb_list’ UI Page for example)

Please let us know if you have any suggestions.

Thanks in Advance.

]]>
By: Steve https://servicenowguru.com/system-ui/custom-global-search-page/#comment-6622 Thu, 23 May 2013 20:11:21 +0000 https://servicenowguru.wpengine.com/?p=966#comment-6622 Hi Mark,
Is it possible to be able to narrow the search to a specific field on a table? Example: Just do the search on “Short Description” field.

Thanks

]]>
By: Mark Stanger https://servicenowguru.com/system-ui/custom-global-search-page/#comment-6621 Fri, 05 Apr 2013 17:43:16 +0000 https://servicenowguru.wpengine.com/?p=966#comment-6621 In reply to Jacob.

Unfortunately, the only workaround is to change your module to use the regular global search. Without access to the code, it’s not something I can update anymore.

]]>
By: Jacob https://servicenowguru.com/system-ui/custom-global-search-page/#comment-6620 Fri, 05 Apr 2013 17:28:15 +0000 https://servicenowguru.wpengine.com/?p=966#comment-6620 Hello,

I’ve been using this for the last year with no problems, thank you! After updating to Berlin (it took a while) and it appears we no longer have access to the “search_summary.xml” template. Do you have any suggested workarounds?

Thanks.

]]>
By: Chandana https://servicenowguru.com/system-ui/custom-global-search-page/#comment-6619 Tue, 18 Dec 2012 08:00:34 +0000 https://servicenowguru.wpengine.com/?p=966#comment-6619 In reply to Mark Stanger.

HI Mark,

I did check the condition and it works as expected, I tried to print the sys_ids of the ts groups in the addorCondition and it works fine, but the trouble I see is that, the template ts_group.xml which is displaying the search results, shows only one search group 4 times (the first order search group) (I am not able to paste the screenshot here).

Regards,
Chandana.

]]>
By: Mark Stanger https://servicenowguru.com/system-ui/custom-global-search-page/#comment-6618 Fri, 14 Dec 2012 12:11:50 +0000 https://servicenowguru.wpengine.com/?p=966#comment-6618 In reply to Chandana.

Seems like the problem isn’t with this solution, but with your query. Make sure you’re following the correct query syntax and that your search group names don’t have any special characters in them. The ‘&’ symbol can cause issues in UI pages.

]]>
By: Chandana https://servicenowguru.com/system-ui/custom-global-search-page/#comment-6617 Fri, 14 Dec 2012 08:48:38 +0000 https://servicenowguru.wpengine.com/?p=966#comment-6617 In reply to Mark Stanger.

Thanks Mark for the response,

However even after replacing the pages again, I see the problem if I have to add multiple search groups,
like tsgroups.addQuery(‘name’, ‘Tasks’);’. We have 4 search groups in total and we are using addOrCondition to add the remaining search groups which is causing the trouble.

]]>
By: Mark Stanger https://servicenowguru.com/system-ui/custom-global-search-page/#comment-6616 Thu, 13 Dec 2012 12:53:37 +0000 https://servicenowguru.wpengine.com/?p=966#comment-6616 In reply to Chandana.

I just tested this on the ServiceNow demo instance here and it seems to run correctly on Berlin. Try updating your code with the code above to see if that helps.

https://demo020.service-now.com/customtextsearch.do

]]>