AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
DAX
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 30.05.2015, 15:36   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
You might recall me writing on the new ShowMandatory property. The one you can now set on a page control showing a red astrix on the left side of the control. And that it will also show when setting the NotBlank property on a primary key field.

By mere coincidence I ran into the following.

I created the following tabel havind set NotBlank = Yes on the Primary Key field.



And a Card Page based on this table with ShowMandatory = TRUE on all non-PK control.



You see? No astrixes for the Amount and Reference ID fields. Even though I did not enter any value, so from my perspective the are still empty.

It appears that ShowMandatory checks the content of the control itself and not the value of the field bounded to the control. Of course we could argue whether a zero Amount field is empty or not as zero is a value to.

Now if you want to have the asterix show on these two fields you have to make sure that the control is empty.


  1. This can easily be done by setting the BlankZero or BlankNumbers property (on either the table field or the page control), but only seems to work for the numerical data types, so ...
  2. Won't work for the Reference ID field (GUID) out of the box. I recon you could do something with a control addin, but haven't tried it (yet).



Читать дальше
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 17:09.