Professional Documents
Culture Documents
http://msdynamicscrmblog.wordpress.com/2013/12/14/javascr...
confirmDialog
isActivityType
openEntityForm
openWebResource
Xrm.Page.data: Xrm.Page.data provides an entity object that provides collections and methods to
manage data within the entity form. The following tables lists the functions of Xrm.Page.data and
Xrm.Page.data.entity
Xrm.Page.data
getIsValid*
refresh*
save*
Xrm.Page.data.entity
1 di 7
19/04/14 23:42
http://msdynamicscrmblog.wordpress.com/2013/12/14/javascr...
addOnSave
getDataXml
getEntityName
getId
getIsDirty
getPrimaryAttributeValue*
removeOnSave
save
Saves the record with the options to close or new.
Xrm.Page.context: Xrm.Page.context provides methods to retrieve information specific to an
organization, a user, or parameters that were passed to the form in a query string. The following table
lists the functions of Xrm.Page.context.
Xrm.Page.context
client.getClient*
client.getClientState*
getClientUrl
Returns the base URL that was used to access the application.
getCurrentTheme
getOrgLcid
Returns the LCID value that represents the base language for
the organization.
getOrgUniqueName
getQueryStringParameters
getUserId
getUserLcid
getUserName*
getUserRoles
isOutlookClient
isOutlookOnline
prependOrgName
2 di 7
19/04/14 23:42
http://msdynamicscrmblog.wordpress.com/2013/12/14/javascr...
Xrm.Page.ui: Xrm.Page.ui provides collections and methods to manage the user interface of the
form. The following table lists the functions of Xrm.Page.ui
Xrm.Page.ui
clearFormNotification*
close
formSelector.getCurrentItem
formSelector.items
getViewPortHeight
getViewPortWidth
getCurrentControl
getFormType
navigation.items
setFormNotification*
refreshRibbon
Collections
Xrm.Page.data.entity.attributes
Xrm.Page.ui.controls
Xrm.Page.ui.formSelector.items
Xrm.Page.ui.navigation.items
Xrm.Page.ui.tabs
Xrm.Page Attribute.controls
Xrm.Page.ui Section.controls
Xrm.Page.ui Tab.sections
Collections Methods
forEach
get
getLength
Attributes: Attributes store the data available in the record. Attributes are available from the
Xrm.Page.data.entity.attributes collection. To access an attribute you can use the
Xrm.Page.data.entity.attributes.get method or the shortcut version Xrm.Page.getAttribute. Following
table shows how you can query attribute properties to understand what kind of attribute it is or
change the behavior of the attribute.
3 di 7Xrm.Page.getAttribute()
19/04/14 23:42
http://msdynamicscrmblog.wordpress.com/2013/12/14/javascr...
getAttributeType
getFormat
getIsDirty
getIsPartyList
getMaxLength
getName
getParent
getRequiredLevel
getSubmitMode
Sets whether data from the attribute will be submitted when the
record is saved. always / never / dirty
getUserPrivilege
Determine what privileges a user has for fields using Field Level
Security.
getValue / setValue
setRequiredLevel
setSubmitMode
getPrecision
setPrecision*
setShowTime*
Controls: Controls represent the user interface elements in the form. Each attribute in the form will
have at least one control associated with it. Not every control is associated with an attribute.
IFRAME, web resource, and subgrids are controls that do not have attributes. Controls are available
from the Xrm.Page.ui.controls collection. To access a control you can use the Xrm.Page.ui.controls.get
method or the shortcut version Xrm.Page.getControl. The following table lists the functions of
Controls.
Xrm.Page.getControl()
clearNotification*
4 di 7
19/04/14 23:42
http://msdynamicscrmblog.wordpress.com/2013/12/14/javascr...
getAttribute
getControlType
getDisabled / setDisabled
getLabel / setLabel
getName
getParent
getVisible / setVisible
setFocus
setNotification*
addCustomView
addPreSearch*
getDefaultView /
setDefaultView
removePreSearch*
getOption[s]
getSelectedOption
getText
adoption /
removeOption
clearOptions
IFRAME and Web Resource Controls: An IFRAME control allows you to include a page within a
form by providing a URL. An HTML web resource added to a form is presented using an IFRAME
element. Silverlight and image web resources are embedded directly within the page. The following
table lists the functions of IFrame or Web Resource controls.
getData / setData
5 di 7
http://msdynamicscrmblog.wordpress.com/2013/12/14/javascr...
getInitialUrl
getObject
getSrc / setSrc
OnChange Event: There are three methods you can use to work with the OnChange event for an
attribute.
addOnChange /
removeOnChange
fireOnChange
fi
This entry was posted in CRM 2013, JavaScript and tagged CRM 2013, Dynamics CRM, Dynamics
CRM 2013, JavaScript, Microsoft Dynamics CRM, Microsoft Dynamics CRM 2013, MS CRM 2013.
Bookmark the permalink.
19/04/14 23:42
http://msdynamicscrmblog.wordpress.com/2013/12/14/javascr...
Follow
7 di 7
19/04/14 23:42