您的位置:首页 > 其它

Dynamics CRM 2011 表单Debug常用命令

2012-06-14 10:52 204 查看
contentIFrame.Xrm.Page.getControl("new_chargegroup_r_pe").getAttribute().getValue()[0].id
contentIFrame.Xrm.Page.getControl("new_chargegroup_r_pe").getAttribute().setValue()
contentIFrame.Xrm.Page.getControl("new_chargegroup_r_pe").setDisabled(false);
contentIFrame.Xrm.Page.getControl("new_chargegroup_r_pe").setDisabled(true);
contentIFrame.Xrm.Page.data.entity.getId();
contentIFrame.Xrm.Page.data.entity.getEntityName();
contentIFrame.Xrm.Page.data.entity.save();

打印lookup控件属性:
vartmp=contentIFrame.Xrm.Page.getControl("new_approval_by").getAttribute().getValue()[0];
varmsg="";
for(vartintmp)
{
msg+=String.format("{0}:{1}",t,tmp[t])

}
alert(msg);

打印datatime控件属性:
vartmp=contentIFrame.Xrm.Page.getControl("createdon").getAttribute().getValue();
varmsg="";
for(variintmp)
{
msg+=String.format("{0}:{1}/n",i,tmp[i]);
}
alert(msg);
抓取高级查找中的layout格式
contentIFrame.document.getElementsByName("LayoutXml")[0].value
显示在插件中抛出调试信息,类似JS中的Debugger命令
System.Diagnostics.Debugger.Launch();
显示系统详细错误
<system.serviceModel>
<serviceHostingEnvironmentaspNetCompatibilityEnabled="true"/>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceDebugincludeExceptionDetailInFaults="True"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
PassingParameterstoHTMLWebResources
ParameterNameDescription
typename
EntityName
Thenameoftheentity.
type
EntityTypeCode
Anintegerthatuniquelyidentifiestheentityinaspecificorganization.
id
ObjectGUID
TheGUIDthatrepresentsarecord.
orgname
OrganizationName
Theuniquenameoftheorganization.
userlcid
UserLanguageCode
Thelanguagecodeidentifierbeingusedbythecurrentuser.
orglcid
OrganizationLanguageCode
Thelanguagecodeidentifierthatrepresentsthebaselanguagefortheorganization.
data
OptionalDataParameter
Anoptionalvaluethatmaybepassed.
formid
FormId
TheGUIDthatrepresentsaformid.
pagemode
Forinternaluseonly.
security
Forinternaluseonly.
tabSet
Forinternaluseonly.

                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: