Mark mandatory fields on form, if not filled with valid value

雨燕双飞 提交于 2019-12-11 13:26:47

问题


if you create a new dataset, mandatory fields which are not set yet are marked with a wiggly red line.

it seems, that only string-values ( or several fields, but at least no integers ) are marked this way.

if integer-references are used ( 1-based ), the regarding fields are filled with 0 per default which causes the red line to disappear.

is there any way to leave those fields empty per default?

thanks for hints!


回答1:


For integer and real fields you could set the ShowZero property to No (on the control or extended data type). Then zero values will appear with a red wave line.

For new base enums leave a blank zero enum value (by convention name it None).




回答2:


Dynamics Ax does not have an "null" concept for fields. It uses some "zero" values for all data types - so you need to use some other NoYes field to express what you want if 0 is not empty



来源:https://stackoverflow.com/questions/1420135/mark-mandatory-fields-on-form-if-not-filled-with-valid-value

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!