Page 1 of 1

Complex mandatory logic

PostPosted: Fri Aug 31, 2012 6:13 pm
by nmicoud
Hi again,

I've added some fields on order and would like to apply some mandatory logic.

Here are the details :
- OrderType : a list, which contains 2 values (I and C)
- IsEdi : a checkbox

Those fields are mandatory ; no problem !

Now, i would like to force users to fill a string field (using highlighting in red) when :
- order type = I
- order type = C AND IsEdi = N

I've tried to play with MandatoryLogic on AD_Column, but it seems that it doesn't support parenthesis.

Any ideas on how to deal with it ?

Thanks,

Nicolas

Re: Complex mandatory logic

PostPosted: Wed Sep 05, 2012 12:34 pm
by globalqss
Nicolas, mandatory logic is interpreted left to right, so you need to find a logic that accomplish that.

I think something like this could do the trick:

@OrderType@=C & @IsEdi@=Y | @OrderType@=I

Regards,

Carlos Ruiz

Re: Complex mandatory logic

PostPosted: Wed Sep 05, 2012 5:14 pm
by nmicoud
Thanks a lot Carlos, it works perfectly !

Regards,

Nicolas