Posted on 1/2/2018 12:15:00 AM by Levin, Aric

Business Solutions  Development  Dynamics 365 

In this second post of the series, we will review the changes between the properties and methods of the attribute based on the getAttributes Collection or the Xrm.Page.getAttribute method. The tables below will show the base methods of the attribute, as well as specific method for specific attribute types.

Xrm.Page.getAttribute

The following table show the most commonly used properties and methods in the Dynamics CRM Xrm.Page.getAttribute and Xrm.Page.data.entity.attribute classes, and the method calls in Dynamics 365 v9.

Dynamics CRM Client APIDynamics 365 v9 Client API
Xrm.Page.getAttribute(attr).getAttributeTypeformContext.getAttribute(attr).getAttributeType
Xrm.Page.getAttribute(attr).getFormatformContext.getAttribute(attr).getFormat
Xrm.Page.getAttribute(attr).getIsDirtyformContext.getAttribute(attr).getIsDirty
Xrm.Page.getAttribute(attr).getNameformContext.getAttribute(attr).getName
Xrm.Page.getAttribute(attr).getParentformContext.getAttribute(attr).getParent
Xrm.Page.getAttribute(attr).getRequiredLevelformContext.getAttribute(attr).getRequiredLevel
Xrm.Page.getAttribute(attr).getSubmitModeformContext.getAttribute(attr).getSubmitMode
Xrm.Page.getAttribute(attr).getUserPrivilegeformContext.getAttribute(attr).getUserPrivilege
Xrm.Page.getAttribute(attr).getValueformContext.getAttribute(attr).getValue
Xrm.Page.getAttribute(attr).setRequiredLevelformContext.getAttribute(attr).setRequiredLevel
Xrm.Page.getAttribute(attr).setSubmitModeformContext.getAttribute(attr).setSubmitMode
Xrm.Page.getAttribute(attr).setValueformContext.getAttribute(attr).setValue
Xrm.Page.getAttribute(attr).addOnChangeformContext.getAttribute(attr).addOnChange
Xrm.Page.getAttribute(attr).fireOnChangeformContext.getAttribute(attr).fireOnChange
Xrm.Page.getAttribute(attr).removeOnChangeformContext.getAttribute(attr).removeOnChange

 

The next table will show additional properties and methods of the Xrm.Page.getAttribute and Xrm.Page.data.entity.attribute classes, that are specific to particular data types.

Attribute TypeDynamics CRM Client APIDynamics 365 v9 Client API
Boolean, OptionSetXrm.Page.getAttribute(attr).getInitialValueformContext.getAttribute(attr).getInitialValue
OptionSetXrm.Page.getAttribute(attr).getOptionformContext.getAttribute(attr).getOption
OptionSetXrm.Page.getAttribute(attr).getOptionsformContext.getAttribute(attr).getOptions
OptionSetXrm.Page.getAttribute(attr).getSelectedOptionformContext.getAttribute(attr).getSelectedOption
OptionSet, NumberXrm.Page.getAttribute(attr).getTextformContext.getAttribute(attr).getText
Number TypesXrm.Page.getAttribute(attr).getMinformContext.getAttribute(attr).getMin
Number TypesXrm.Page.getAttribute(attr).getMaxformContext.getAttribute(attr).getMax
Number TypesXrm.Page.getAttribute(attr).getPrecisionformContext.getAttribute(attr).getPrecision
Number TypesXrm.Page.getAttribute(attr).getMaxLengthformContext.getAttribute(attr).getMaxLength
LookupXrm.Page.getAttribute(attr).getIsPartyListformContext.getAttribute(attr).getIsPartyList

Click here to access the reference to the formContext.getAttribute properties and methods in Dynamics 365 CE. 

 
 
 
 
 
 
 
 
 
 
 
 
 
 

Navigate to original post to enter comments