Complex mandatory logic

Help is preferred to those who publish their work as Open Source and not as private branches rejecting collaboration. Such projects are not maintainable and shall be deleted.
Forum rules
This forum is personally pruned to avoid redundant posts. Related topics are grouped together. IF YOU HAVE REGISTERED, you need to send email to red1(a)red1.org with your username in the subject title to get me to activate you.

Complex mandatory logic

Postby nmicoud » Fri Aug 31, 2012 6:13 pm

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
nmicoud
Regular
 
Posts: 137
Joined: Fri Oct 07, 2011 6:19 pm

Re: Complex mandatory logic

Postby globalqss » Wed Sep 05, 2012 12:34 pm

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
globalqss
Senior
 
Posts: 599
Joined: Thu Dec 29, 2005 4:15 am
Location: Bogotá, Colombia

Re: Complex mandatory logic

Postby nmicoud » Wed Sep 05, 2012 5:14 pm

Thanks a lot Carlos, it works perfectly !

Regards,

Nicolas
nmicoud
Regular
 
Posts: 137
Joined: Fri Oct 07, 2011 6:19 pm


Return to HELP ME!!!

Who is online

Users browsing this forum: No registered users and 1 guest

cron