How to add manual search in UI Page

ssoniy
Tera Contributor

I have created a UI page to search filter based on change's category,subcategory & get the value from the script include & updated in query in the filter. It's working fine,but in addition to that we need a manual search.  The URL we are getting ex: "sysparm_additional_qual=categoryLIKEmonitoring%5Esubcategory%3Dalert" . Is there a way to change it to sysparm_query ? so that the user can remove the filter. Please suggest.

ssoniy_0-1693007950062.png

 

<g:evaluate var="jvar_strng" jelly="true">
  var changeId = RP.getWindowProperties().get('sysparm_change_id'); 
        var si = new getchangecatg();
        var chg_cat = si.getcateg(changeId);
        returndata = JSON.parse(chg_cat );
        var cat = returndata .category;
        var subcat = returndata .subcategory;
        var strng = 'categoryLIKE'+cat +'^subcategory='+subcat ;      
        strng;   
    </g:evaluate>
           <g2:ui_reference id="xyz"
                                name="xyz"
                                table="change_request"
                                columns="name"
                                columns_search="true"
                                order_by="name"
                                show_popup="false"
                                query= "${jvar_strng}" 
                                completer="AJAXTableCompleter"/>
            </div>
        </div>
1 REPLY 1

ssoniy
Tera Contributor

@Ankur Bawiskar @Anurag Tripathi Could you please help me on this above issue?