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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 27.11.2012, 08:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
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, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
dynamicsaxtraining: Purchase Blog bot DAX Blogs 0 11.03.2012 05:25
Gareth Tucker: Adding a new Button Group to the CRM Ribbon Blog bot Dynamics CRM: Blogs 0 24.08.2011 16:11
axforum blogs: Adding new button “complete and new” for Phone Call entity. Blog bot Dynamics CRM: Blogs 0 06.06.2011 16:11
Daniel Cai: MSCRM 4.0: Adding a Button to a Form Toolbar using Client Script Blog bot Dynamics CRM: Blogs 0 25.05.2010 01:08
mscrm4ever: CRM 4.0 Adding a helper button to text fields Blog bot Dynamics CRM: Blogs 0 27.06.2009 20:05

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

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

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