CRM 2011 表單載入時取得目前表單的狀態
JavaScript:
function OnLoad()
{
var formType = Xrm.Page.ui.getFormType();
alert(formType);
}
Xrm.Page.ui.getFormType();
| Form Type | Value |
| Undefined | 0 |
| Create | 1 |
| Update | 2 |
| Read Only | 3 |
| Disabled | 4 |
| Quick Create | 5 |
| Bulk Edit | 6 |
| Read Optimized | 11 |
沒有留言:
張貼留言