We hope you'll join us for our 4/23 webinar on using data tables to apply reference ranges and AE codes in OC4. For more information and to register, visit https://register.gotowebinar.com/register/2882170018956684555

AW: [Developers] Tips on validation

Did you try to use "REAL" instead of "INT"?
Perhaps this helps.
Mit freundlichen Grüßen / Kind Regards
Dr. A. Hekmat
Retina Implant AG
Anuschirawan HEKMAT, Ph.D. | VP Quality Management & Regulatory Affairs
-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Francesca Tonetti
Gesendet: Montag, 14. April 2008 14:32
An: [email protected]
Betreff: [Developers] Tips on validation
HI all!
I use OpenClinica 2.2 for a project concerning the valuation of some
parameters
that can have values from 0 to 9.
I would like to have the possibility to do some validation on those values.
The choice of this values to the user are in the form of a drop-down
menu that has been
implemented in this way on the Excel spreadsheet:
RESPONSE_TYPE RESPONSE_LABEL RESPONSE_OPTIONS_TEXT
REPONSE_VALUES DATA_TYPE VALIDATION VALIDATION_ERROR_MESSAGE
single-select
funz0123456 *,0,1,2,3,4,8,9
*,0,1,2,3,4,8,9 INT
func:range(0,9) field incorrect!!!
The use of a non numeric value (*) has been introduced to avoid the
possibility that the user forget to fill a field and a possible value
like 0 (0 will be the first value presented if RESPONSE_OPTIONS_TEXT was
0,1,2,3,4,8,9) will be compiled by mistake.
If l I leave "*" like value in the form, no error messages are displayed.
On the other hand, if I change the RESPONSE TYPE from single-select to
text, without specify any possible values, I properly get an error
message. Perhaps validation with single-select is not possible?
I hope to have well explained.
Could someone help me?
Thanks in advance and sorry for my bad English
Best regards
Francesca
-- Francesca Tonetti Conecta S.r.l. Via Nazionale 42/I, 33010 Tavagnacco (UD) Tel. (+39) 0432 548825 Fax. (+39) 0432 46246 E-Mail: [email protected] Web: http://www.conecta.it
This discussion has been closed.