27.08.2007, 22:10 | #1 |
Участник
|
casperkamal: Preventing a form getting added to "LastActivated Form" in Dynamics Ax
Источник: http://casperkamal.spaces.live.com/B...CD63!325.entry
============== The Class "Infolog" has few methods corresponding to "Last activated form" like - activate - setLastActivatedForm - parmLastActivatedForm - close These methods help in you knowing, setting or getting the currently active form. Say you have a form like "Toolbar" or "Popup" form like Alerts or "Find" then you would prefer to prevent these form from being added to the lastactivated form. In such cases all you have to do is go to the "activate" method in infolog and add the following code if (formRun.name() != formstr(DocuView) && formRun.name() != formstr(sysFormSearch) && formRun.name() != formstr(EventAttentionGrabber) && //added by kamal formRun.name() != formstr(MyForm) ) { this.setLastActivatedForm(formRun); } This would skip adding your form to the last activated form list. ................... Источник: http://casperkamal.spaces.live.com/B...CD63!325.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
27.08.2007, 23:17 | #2 |
Участник
|
Вот если б еще кто-то рассказал, какую выгоду я могу из этого извлечь.
|
|
|
|