29.12.2007, 19:50 | #1 |
Участник
|
Ruslan Goncharov: Mandatory property for DialogField
Источник: http://rusgon.blogspot.com/2007/12/m...alogfield.html
============== Usually in Dialog Forms it's unable to set mandatory property for Dialog Fields. The lack of this property sometimes annoyed me. At the end I've decided to eliminate this gap :-) To expand the standard functionality you need to do the following steps: 1.Add mandatory() method into DialogField class: X++: // Created by GRR on 01.11.2005 void mandatory(boolean r) { str name; // If properties exists then we are on server if (properties) { name = #Propertymandatory; if (! properties.exists(name)) properties.add(name,true); properties.value(name,r); } else this.fieldControl().mandatory(r); } X++: case #PropertyMandatory: this.mandatory(unpackedProperties.valueIndex(i)); break; This trick published in Axaptapedia too. Источник: http://rusgon.blogspot.com/2007/12/m...alogfield.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
29.12.2007, 20:48 | #2 |
Участник
|
Здесь следует учитывать вот это
Цитата:
Mandatory property starts working only after a value is entered into the control. What this means is that if you simply press OK right after the dialog is opened, you won't receive an error (regular forms works this way too)
http://kashperuk.blogspot.com/2007/0...xtensions.html |
|
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|