on 03-24-2009 2:54 PM
Hello. I'd like to filter an XML file using GenericSortFilter.xsl. I can get this working fine if I set the parameters for FilterValue, FilterColumn, and FilterType. However, I cannot get it working if I use the FilterExpr parameter instead. I'm not quite sure if I'm trying to use this correct way or not, but I was thinking that if I could form up FilterExpr on the fly, than I could include multiple conditions that will work with the OR condition instead of AND. Is this possible? Thanks.
Eric
Eric, I'd strongly recommend not using the XSL-based approach. I would use the GenericSortFilter action in MII's business logic services (BLS) instead, as you'll have much greater flexibility.
Rick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Eric.
What I usually do is use a CalculatedColumns action to define the boolean expression(s) that I want to filter on (creating a "pseudo-column") and then use the GenericSortFilter action to filter out the records I don't want. This way, I get the full power of the BLS expression language (in particular, the various functions that the expression language supports).
Rick
I figured this one out on my own. It turns out for the FilterExpr parameter, it's as simple as putting ColumnName = "FilterValue". You can just separate multiple conditions by using "and" or "or".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.