Using pipe in custom filter built using OnSearchDialog event
Former Member
I am trying to create custom filter during OnSearchDialog. While everything works well I am not able to use pipe as "OR" within the string that is passed to filter. The problem is that every pipe in my filter string is preceeded with escape character "\". Here is my simplified code:
var soFilter = "";
for (var i=0;i<count;i++) {
*** some code ***
// create filter string like this: SO123*|SO456*|SO789*
soFilter += itmSo.getProperty("item_number");
soFilter += "*|"
}
top.aras.AlertSuccess(soFilter);
var Filter=new Object();
Filter["some_filed"]={filterValue:soFilter,isFilterFixed:true};
return Filter;
The problem is that Aras search dialog instead of showing filter
SO123*|SO456*|SO789*
shows
SO123*\|SO456*\|SO789*
Is there any way to avoid insertion of that escape character?
Hello,
There is a known issue with using pipes inside of a filter of an onSearchDialog event.
Is there another property that you could set as the filter that all of these parts have in common that would remove the need to use an or for the item_number?
Chris
Christopher Gillis
Aras Labs Software Engineer
Hello,
There is a known issue with using pipes inside of a filter of an onSearchDialog event.
Is there another property that you could set as the filter that all of these parts have in common that would remove the need to use an or for the item_number?
Chris
Christopher Gillis
Aras Labs Software Engineer