12.03.2009, 17:05 | #1 |
Участник
|
mscrm4ever: Controlling CRM window sizes
Источник: http://mscrm4ever.blogspot.com/2009/...dow-sizes.html
============== A while back I posted a simple script for changing the window size. Although ms current window settings fit most CRM forms there are situations were a form contains only a few fields and it only seem right to fit the window to its content. Following is a simple and generic solution which can be used on all entities. The idea is to create an aspx page under the ISV folder that accepts an entity name and returns the script which moves and resizes the window. The WindowSize.aspx page functions as a repository or a configuration page and does not require compilation. Simply Add the entity names to the Settings Dictionary and you’re done. The script that calls this page should reside in each entity form (onload event). You may also put the script inside the global.js (not supported) if you don’t want to repeat this action more then once. WindowSize.aspx code Entity onload script / global.js if (crmForm) { var wsScript = document.createElement("SCRIPT"); wsScript.src = SERVER_URL + "/ISV/WindowSize.aspx?etn=" + crmForm.ObjectTypeName document.documentElement.childNodes[0].appendChild(wsScript); } Источник: http://mscrm4ever.blogspot.com/2009/...dow-sizes.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|