Forum Discussion
That sounds like what I want, but I can't seem to get it to work for me. This is what I have now:
If args.GetTarget("A#") = "BS11200"
Globals.Bypass = True
Else
Return "None"
End If
It just returns 0's in UD2 for account BS11200
Couldn't you just shift the list logic into the Complex Expression?
- Beeswing777 months agoNew Contributor III
Yes, in theory, but there are a lot of line in the List mapping. I'd also have to combine them with the source accounts, and there are many of those and they don't run in nice neat ranges. It wouldn't really be sustainable.
- DanielWillis7 months agoValued Contributor
I don't think this will work. I think your incoming row will find a match on your complex expression and then stop there, not looking up any further mappings (e.g., on the list tab).
I understand why you wouldn't want to put your list in the code. What you could do is have your complex expression code look up the mapping from the list.
- Henning7 months agoValued Contributor II
I agree, though I am curiously waiting to see whether there is a way to achieve this, I do not believe there is. If there is nothing returned from the rule, the assigned target value from the Composite rule should be returned.
If you do not want to put your list mapping into the Composite complex expression (which is a valid hesitation!), one could also use lookup tables to refer to and store the list mapping used in the complex expression (and keep the lookup table in a global variable).
List mappings with a complex expression should work as well as per DanielWillis suggestion.
If your only purpose to apply those two case mappings to your BS accounts, Mask mapping with a complex expression or business rule might be another way to go about it. Up to you to determine which solution suits the requirements best.
- jwagner7 months agoNew Contributor III
Hmm, I wouldn't have expected the Globals.Bypass to be returning 0. Are you able to send a screenshot of an example of a composite and list rule?
- Beeswing777 months agoNew Contributor III
This is the Composite:
That has this Complex Expression:
Here is the List:
If I remove the Complex Expression completely then the List and Mask work fine.