Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem with domain values

Former Member
0 Likes
1,107

Hi there,

I have created a domain based in a char type which contains 3 valid values, (0,1,2) and included it in a table control.

When I'm filling in the field, if I enter '6', an error message informs that this value is not in the range of valid values but it doesn't happen when introducing ' ' (a space). Is there any way to solve it and get the same error message when entering space?

Thanks in advance,

Cristina.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
882

Try making the field <i>Required</i> on the screen - this means you have to enter something (not blank)

4 REPLIES 4
Read only

Former Member
0 Likes
883

Try making the field <i>Required</i> on the screen - this means you have to enter something (not blank)

Read only

Former Member
0 Likes
882

And what about fixing an initial value, different from space in the field that is defined as char(01) do you know if there's any option to set a value as initial in the domain definition?

Read only

0 Likes
882

Yes, there is, look at the domain XFLAG, this will give you some idea about an initial value. For this domain, it can either be space or "X".

Regards,

Rich Heilman

Read only

Former Member
0 Likes
882

Hello,

Check whether the space have the <b>= symbol</b>.

If not give some text in the short text column.

Then it will allow space and wont allow 6.

Regards.

Vasanth