2007 Nov 07 10:14 AM
Hi,
does anyone know a standard method/function which checks if a given value(type string) is valid for a given data element.
Thank you and best regards, Edgar
Hi,
sorry perhaps I Have given not enough explanations.
One example:
I have following field value: 1aaa
I have a data element which is defined as integer.
Question: Is this field value an integer?
Answer: No
There could be much more questions.
Now I am searching for a generic standard method/function where I can pass the field value and a data element. As a result I get an info if this combination is a valid combination.
Best Regards, Edgar
2007 Nov 07 2:15 PM
Hi,
Filed consists of DataElement consists of Domain.
DataElement holds the semantic properties of the field, that is field description.
Domain holds the technical properties of the field, that is Type&Size.
As per my knowledge, Value check can be done at Field level (under the event At Selection-Screen)
or
Domain ('coz Domain may contain fixed values).
Bye,
KC
2007 Nov 07 3:03 PM
Hi,
sorry perhaps I Have given not enough explanations.
One example:
I have following field value: 1aaa
I have a data element which is defined as integer.
Question: Is this field value an integer?
Answer: No
There could be much more questions.
Now I am searching for a generic standard method/function where I can pass the field value and a data element. As a result I get an info if this combination is a valid combination.
Best Regards, Edgar
2007 Nov 07 4:29 PM
Hi,
Please, be specific,
Can you give the name of the data element, domain, field name, table of which your question has framed?
Bye,
KC
2007 Nov 07 4:43 PM
Hi KC,
this is a generic task. I can't tell you a specific data element. As input I have pairs of value and data element.
Best Regards, Edgar
2007 Nov 07 4:55 PM
Use CHECK_DOMAIN_VALUES function module by passing domain name and the value, it will validate the input.
We cannot do by data element you need to pass the domain name.
2007 Nov 07 6:06 PM
Hi Manahor,
good point, but I want to check if e.g. the defined domain data type corresponds to the field value, e.g. is the value AAA of data type int1(of course not).
Best Regards, Edgar
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |