BUG:关于null-able值属性的验证 [英] BUG: The Validation about null-able value property

查看:114
本文介绍了BUG:关于null-able值属性的验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


在屏幕上,尝试在'null-able number property'中输入字符串。 


It会导致检查错误,没关系 - 按设计。


如果我清理字符串,请使用EMPTY。错误仍然存​​在。


删除此类错误的棘手方法是:输入任意数字,例如11,然后清除它们,再次使用EMPTY离开。  


错误MSG将消失。


因此,这是一个处理'null-able'条件的BUG。 / p>


Bob

解决方案

我无法重现问题如上所述。这些是我使用的重复步骤:


  1. 创建新的LightSwitch项目。
  2. 使用非必需的整数属性创建新实体。
  3. 在此实体集上创建新列表和详细信息屏幕。
  4. F5。
  5. 添加具有非空值(例如0)的新实体实例实体的一个属性 并保存。
  6. 在屏幕的详细信息侧选择文本框中的所有文本,键入字符串值(例如"string"),然后选项卡关闭。
  7. 显示转换错误,并按预期将值恢复为之前的值(例如0)。
  8. 选择屏幕详细信息侧的文本框中的所有文本,清除值,然后关闭选项卡。
  9. 没有显示任何错误。

请用特定的复制步骤描述您的场景,或告诉我如何增强我的场景以重现您所看到的问题


Hello,

On Screen, try to enter string into the 'null-able number property'. 

It will cause checking error, it is OK - by design.

If I clean the string, leave with EMPTY. The error still hangs up.

The tricky way to remove  such error MSG is : enter any number , for example 11,  then clean them, leave with EMPTY again. 

The error MSG will disappear.

So , this is a BUG to handle the 'null-able' condition.

Bob

解决方案

I cannot reproduce the problem as described. These are the repro steps that I used:

  1. Create new LightSwitch project.
  2. Create new entity with a non-required integer property.
  3. Create new list and details screen over this entity set.
  4. F5.
  5. Add new entity instance with a non-null value (e.g. 0) for the entity's one property and save.
  6. Select all text in text box on the details side of the screen, type in a string value (e.g. "string"), and tab off.
  7. Conversion error is shown and value is reverted to previous value (e.g. 0), as expected.
  8. Select all text in text box on the details side of the screen, clear the value out, and tab off.
  9. No errors are shown.

Please describe your scenario with specific reproduction steps or tell me how to augment mine to reproduce the problem you are seeing.


这篇关于BUG:关于null-able值属性的验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆