简体   繁体   中英

magic/eDeveloper/uniPaaS: How to allow space character as range in a model?

In uniPaaS I have a model ( Attribute=Alpha ; Picture=1 ) with Range=J,N . That allows the users to insert only J or N into an edit field using that model. But now I have to change the range property of that model, so that a user also can type a space to that input field. Also it should be possible to leave the input field empty.

I tried the following as Range, but nothing works:

J,,N
J, ,N
J,' ',N
J," ",N

空格字符必须是列表中的第一个字符,因此以下字符串可用作Range属性。

" ,J,N"  (without the quotes)

The key here is the Picture of your model. Since the picture of your variable/column is only 1, only 1 character can your container be handled. The obvious solution is to extend the variable Picture to your desired value it can hold.

From your example you can change the picture to 10 since you will be inputting the following values.

J,,NJ, ,NJ,' ',NJ," ",N

That way, it can handle values less than or equal to 10 characters. Hope this helped.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM