![]() |
#1 |
Участник
|
Malaysia: Adding a Make New Folder button
Источник: http://axmas.blogspot.com/2012/11/ad...er-button.html
============== The mentioned WinAPI class has one more method named browseForFolderDialog(). Besides folder browsing, it also allows creating a new one. The method accepts three optional arguments: 1. The lookup description. 2. The folder path selected initially. 3. The boolean value, where true shows and false hides the Make New Folder button. The button is shown by default if this argument is omitted. Let's replace the lookup() method of the DocumentPath field in the LedgerParameters form data source with the following code: public void lookup(FormControl _formControl, str _filterStr) { FilePath path; path = WinAPI::browseForFolderDialog( "Select document folder extended", LedgerParameters.DocumentPath, true); LedgerParameters.DocumentPath = path; LedgerParameters_ds.refresh(); } Now, the folder browsing lookup has a new Make New Folder button, which allows the user to create a new folder straight away without leaving the lookup: Источник: http://axmas.blogspot.com/2012/11/ad...er-button.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|