Hi everyone,
Is there an easy way to create a row rule with two criteria? For example ‘A’ is greater than ‘B’ and less than ‘C’. If not, how could I manipulate the generated code for one criteria to give me what I need?
Thanks in advance
Adrian
You can use a CustomCondition (it’s one of the options in the dropdown)
2 Likes
Thanks @josecgomez, I must confess I did not see that.
So, I just put my condition in the auto generated code and it should work?
private bool QuoteDtlDocExpUnitPriceQuoteDtlDocExpUnitPrice_CustomRuleCondition(Ice.Lib.ExtendedProps.RowRuleDelegateArgs args)
{
bool result = false;
// ** RowRuleDelegateArgs Properties: args.Arg1, args.Arg2, args.Context, args.Row
// ** put Row Rule condition evaluation logic here
//**Place my condition code here?**
return result;
Thank you
Adrian
Correct! Inside there you can check and return true / false based on whatever logic you’d like.
That’s great, can I just disregard the properties entry?
bool result = false;
// ** RowRuleDelegateArgs Properties: args.Arg1, args.Arg2, args.Context, args.Row
// ** put Row Rule condition evaluation logic here
Sure if you want to… those are pre-populated with the other stuff you picked during the rule wizard.