Grid Method "setFilter( columnIndex, expression )" not working

Use this board to ask questions or have discussions with other Atrium users.
Post Reply
arora.saurabh
New User
Posts: 18
Joined: Tue Oct 27, 2015 2:55 am
First Name: Saurabh
Last Name: Arora
Company Name: SESoftech
Phone: 9650896688
Country: India
Contact:

Grid Method "setFilter( columnIndex, expression )" not working

Post by arora.saurabh »

Hello,

We are using the grid function "setFilter( columnIndex, expression )" to filter out information based on multiple values by using "values A, B, C, etc. - searches for a list of values".

This is not working as the Profound JS code changes the expression values to lower case and compare with the actual case text from the grid. Thus it returns no value in the filter.

Here is the code snippet from the Profound's runtime.js:

if (q.substr(0, 7).toLowerCase() == "values ") {
q = q.substr(7).toLowerCase();
if (q == "") return true;
w = q.split(",");
for (r = 0; r < w.length; r++) {
q = bb(w[r]).toLowerCase();
if (m == q) return true
}
return false


The highlighted text is in error. When we just changed it to "if (m.toLowerCase() == q) return true", it worked fine.

Will you please verify if this will need to be fixed in runtime.js or if we could be doing something wrong.

Thanks,
Saurabh Arora
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Grid Method "setFilter( columnIndex, expression )" not working

Post by Scott Klement »

We already made this fix several months ago, and it has already been implemented in Profound UI 5.5.0
arora.saurabh
New User
Posts: 18
Joined: Tue Oct 27, 2015 2:55 am
First Name: Saurabh
Last Name: Arora
Company Name: SESoftech
Phone: 9650896688
Country: India
Contact:

Re: Grid Method "setFilter( columnIndex, expression )" not working

Post by arora.saurabh »

Hi Scott,

Thanks for your reply.

We installed 5.5.0 and this one is fixed.

Thanks,
Saurabh Arora
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests