Siebel OpenUI – List Applet Filter

Since the List applet in OpenUI uses the JQgrid frame work, it gives some very good capabilities of JQGrid. One of them is the “Filter Toolbar”, which gives us additional filtering options within the List Applet.

jqgrid_filtertoolbar

Additionally, you can now programmatically control the contents in list applet (Like filtering, Searching etc).

Following code in PR can get you the “Filter Toolbar” in your list applet:

this.GetGrid().jqGrid(‘filterToolbar’,{searchOnEnter:false});

To add a filter condition, you can try the below script:

$(“#gs_Location”).val(‘H’); // Setting the filter condition
this.GetGrid()[0].triggerToolbar(); // Trigger the Filter condition

Where “gs_Location” needs to be replaced with the correct List Column name. Here I have added a filter condition of “H”. Once you set a value, Trigger the toolbar to execute your filter condition.

Also, you can hide the toolbar, if you do not want your users to use it, or to have the filtering in the background.

$(“.ui-search-toolbar”).hide();

Happy Filtering!!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

Up ↑

%d bloggers like this: