In CRM 2013, the concept of composite attributes is introduced and when the field is used in the form only the composite control will be displayed in the form. When the user has to edit this field the constituent controls will be loaded in the form of flyout controls.
We can get the values of the composite controls using getValue but for setting the value we have to access the individual fields loaded to the form.
These individual forms can be accessed directly. The naming convention followed by such fields are as follows,
<composite control name>_compositionLinkControl_<constituent attribute name>
For example if we have to access address_line1 control in address1_composite use the below code,
Xrm.Page.getControl("address1_composite_compositionLinkControl_address1_line1")
No comments:
Post a Comment