Discussion Forums

Re: Validation
Witold Sames / Portware <>
15 Dec 2011 2:34PM ET

> > I am working on validation rules. The validation is processed down stream against the parameters not the controls. I have run into a situation where I need a suggestion.
> >
> > We have a set of controls as shown. If "Is Short?" is Yes, then the Locate ID is required. The "Is Short?" value is not associated with a parameter but the Locate ID is. So at the time of validation I don't know if they they chose Yes so I can validate the locate id.
> >
> > Is Short? o Yes o No Locate ID: [________]
> >
> > Any suggestions?
>
> I am assuming this is a question related to FIXatdl. You could check the FIX Side field = '5' ("Sell Short"). This assumes that the OMS is feeding/exposing key fields from the FIX order to the FIXatdl rendering component.
>
> For instance:
>
> <val:Edit field="FIX_Side" operator="EQ" value="5" />
>

How about something like this:

(1) Assign the "Yes / No" chooser component a dummy parameter that you do not include in any layout so it doesn't show in the screen.

(2) Now validate the value of that parameter (yes or no) against the LocateID field's content.

(3) Optional: You could disable the LocateID field when the value of Is Short is No.


Validation
Cathy Mildenberger / Neovest, Inc.   15 Dec 2011 2:01PM ET
Re: Validation
Scott Atwell / American Century Investments   15 Dec 2011 2:22PM ET
Re: Validation
Steve Wilkinson / Cornerstone Technology Limited   15 Dec 2011 2:27PM ET
Re: Validation
Cathy Mildenberger / Neovest, Inc.   15 Dec 2011 2:45PM ET
Re: Validation
Steve Wilkinson / Cornerstone Technology Limited   15 Dec 2011 2:50PM ET
Re: Validation
Cathy Mildenberger / Neovest, Inc.   15 Dec 2011 3:01PM ET
Re: Validation
Scott Atwell / American Century Investments   15 Dec 2011 3:13PM ET
Re: Validation
Cathy Mildenberger / Neovest, Inc.   15 Dec 2011 3:32PM ET
Re: Validation
Witold Sames / Portware   15 Dec 2011 3:13PM ET
Re: Validation
Greg Malatestinic / Jordan & Jordan   15 Dec 2011 2:34PM ET
Re: Validation
Witold Sames / Portware   15 Dec 2011 2:34PM ET
Re: Validation
Richard Labs / CL&B Capital Management, LLC   15 Dec 2011 5:44PM ET
Re: Validation
Cathy Mildenberger / Neovest, Inc.   4 Jan 2012 4:37PM ET