单击复合字段时,将打开包含单个字段的弹出窗口,以便您开始填写各个字段。单击弹出窗口上的“完成”按钮或丢失弹出窗口的焦点将应用更改,然后刷新复合控件值。
这是弹出窗口的基础HTML:
<div class="ms-crm-LinkControl-content ui-dialog-content ui-widget-content" id="address1_composite_compositionLinkControl_flyoutLoadingArea" style="width: auto; height: auto; display: block; min-height: 107px;" scrolltop="0" scrollleft="0">
<div id="address1_composite_compositionLinkControl_flyoutContent" flyoutviewportdomid="tdAreas" flyout-confirming="Mscrm.CompositeDataControlUtilities.checkForComposeAddress" flyout-initialize="Mscrm.CompositeDataControlUtilities.initializeAddressCompositeControl" confirm="Done" flyouttabindex="1240">
<div class="ms-crm-FormSection-Container"><table class="ms-crm-FormSection" id="{8D9B37A4-9191-4AFA-B41A-7C3719764124}" style="table-layout: fixed;" cellspacing="0" cellpadding="0" name="root" valign="top"><colgroup><col width="115"><col><tbody><tr style="display: none;"><td class="ms-crm-Form-Section	ms-crm-Form-Section-Print" colspan="2"> <h3 class="ms-crm-Form"></h3></td></tr><tr height="24"><td title="Type the first line of the primary address." class="ms-crm-ReadField-Normal ms-crm-FieldLabel-LeftAlign" id="address1_composite_compositionLinkControl_address1_line1_c"><span class="ms-crm-InlineEditLabel"><span class="ms-crm-InlineEditLabelText" style="text-align: left; max-width: 115px;">Street 1</span><div class="ms-crm-Inline-GradientMask" style="display: none;">
</div></span></td><td class="ms-crm-Field-Data-Print" id="address1_composite_compositionLinkControl_address1_line1_d" data-height="24"><div tabindex="1180" title="111 New Street" class="ms-crm-Inline-Chrome nvarchar" id="address1_composite_compositionLinkControl_address1_line1" aria-describedby="address1_composite_compositionLinkControl_address1_line1_c" data-layout="0" data-fdeid="PrimaryEntity" data-formid="8448b78f-8f42-454e-8e2a-f8196b0419af" data-attributename="address1_line1" data-initialized="true" haserror="false">
<div class="ms-crm-Inline-Value" style="display: none;">
<span>111 New Street<div class="ms-crm-Inline-GradientMask"></div></span>
</div>
<div class="ms-crm-Inline-Edit" style="display: block;"><input title="" class="ms-crm-InlineInput" id="address1_composite_compositionLinkControl_address1_line1_i" aria-labelledby="address1_composite_compositionLinkControl_address1_line1_c address1_composite_compositionLinkControl_address1_line1_w" style="-ms-ime-mode: active;" type="text" maxlength="250" attrName="address1_line1" attrPriv="7" controlmode="normal" defaultValue="111 New Street"></div><span class="ms-crm-Inline-LockIcon" style="display: none;"><img width="1" height="1" class="ms-crm-ImageStrip-inlineedit_locked" alt="" src="/_imgs/imagestrips/transparent_spacer.gif"></span><span title="" class="ms-crm-Inline-WarningIcon" style="display: none;"><img width="1" height="1" class="ms-crm-ImageStrip-inlineedit_warning" id="address1_composite_compositionLinkControl_address1_line1_warn" alt="Error" src="/_imgs/imagestrips/transparent_spacer.gif"><div class="ms-crm-Hidden-NoBehavior" id="address1_composite_compositionLinkControl_address1_line1_w"></div></span></div></td></tr><tr height="24"><td title="Type the second line of the primary address." class="ms-crm-ReadField-Normal ms-crm-FieldLabel-LeftAlign" id="address1_composite_compositionLinkControl_address1_line2_c"><span class="ms-crm-InlineEditLabel"><span class="ms-crm-InlineEditLabelText" style="text-align: left; max-width: 115px;">Street 2</span><div class="ms-crm-Inline-GradientMask" style="display: none;">
</div></span></td><td class="ms-crm-Field-Data-Print" id="address1_composite_compositionLinkControl_address1_line2_d" data-height="24"><div tabindex="1190" title="Select to enter data" class="ms-crm-Inline-Chrome nvarchar" id="address1_composite_compositionLinkControl_address1_line2" aria-describedby="address1_composite_compositionLinkControl_address1_line2_c" data-layout="0" data-fdeid="PrimaryEntity" data-formid="8448b78f-8f42-454e-8e2a-f8196b0419af" data-attributename="address1_line2" data-initialized="true">
<div class="ms-crm-Inline-Value ms-crm-Inline-EmptyValue">
<span>--<div class="ms-crm-Inline-GradientMask"></div></span>
</div>
<div class="ms-crm-Inline-Edit" style="display: none;"><input title="" class="ms-crm-InlineInput" id="address1_composite_compositionLinkControl_address1_line2_i" aria-labelledby="address1_composite_compositionLinkControl_address1_line2_c address1_composite_compositionLinkControl_address1_line2_w" style="-ms-ime-mode: active;" type="text" maxlength="250" attrName="address1_line2" attrPriv="7" controlmode="normal"></div></div></td></tr><tr height="24"><td title="Type the third line of the primary address." class="ms-crm-ReadField-Normal ms-crm-FieldLabel-LeftAlign" id="address1_composite_compositionLinkControl_address1_line3_c"><span class="ms-crm-InlineEditLabel"><span class="ms-crm-InlineEditLabelText" style="text-align: left; max-width: 115px;">Street 3</span><div class="ms-crm-Inline-GradientMask" style="display: none;">
</div></span></td><td class="ms-crm-Field-Data-Print" id="address1_composite_compositionLinkControl_address1_line3_d" data-height="24"><div tabindex="1200" title="Select to enter data" class="ms-crm-Inline-Chrome nvarchar" id="address1_composite_compositionLinkControl_address1_line3" aria-describedby="address1_composite_compositionLinkControl_address1_line3_c" data-layout="0" data-fdeid="PrimaryEntity" data-formid="8448b78f-8f42-454e-8e2a-f8196b0419af" data-attributename="address1_line3" data-initialized="true">
<div class="ms-crm-Inline-Value ms-crm-Inline-EmptyValue">
<span>--<div class="ms-crm-Inline-GradientMask"></div></span>
</div>
<div class="ms-crm-Inline-Edit" style="display: none;"><input title="" class="ms-crm-InlineInput" id="address1_composite_compositionLinkControl_address1_line3_i" aria-labelledby="address1_composite_compositionLinkControl_address1_line3_c address1_composite_compositionLinkControl_address1_line3_w" style="-ms-ime-mode: active;" type="text" maxlength="250" attrName="address1_line3" attrPriv="7" controlmode="normal"></div><span class="ms-crm-Inline-LockIcon" style="display: none;"><img width="1" height="1" class="ms-crm-ImageStrip-inlineedit_locked" alt="" src="/_imgs/imagestrips/transparent_spacer.gif"></span></div></td></tr><tr height="24"><td title="Type the city for the primary address." class="ms-crm-ReadField-Normal ms-crm-FieldLabel-LeftAlign" id="address1_composite_compositionLinkControl_address1_city_c"><span class="ms-crm-InlineEditLabel"><span class="ms-crm-InlineEditLabelText" style="text-align: left; max-width: 115px;">City</span><div class="ms-crm-Inline-GradientMask" style="display: none;">
</div></span></td><td class="ms-crm-Field-Data-Print" id="address1_composite_compositionLinkControl_address1_city_d" data-height="24"><div tabindex="1210" title="New Haven" class="ms-crm-Inline-Chrome nvarchar" id="address1_composite_compositionLinkControl_address1_city" aria-describedby="address1_composite_compositionLinkControl_address1_city_c" data-layout="0" data-fdeid="PrimaryEntity" data-formid="8448b78f-8f42-454e-8e2a-f8196b0419af" data-attributename="address1_city" data-initialized="true">
<div class="ms-crm-Inline-Value">
<span>New Haven<div class="ms-crm-Inline-GradientMask"></div></span>
</div>
<div class="ms-crm-Inline-Edit" style="display: none;"><input title="" class="ms-crm-InlineInput" id="address1_composite_compositionLinkControl_address1_city_i" aria-labelledby="address1_composite_compositionLinkControl_address1_city_c address1_composite_compositionLinkControl_address1_city_w" style="-ms-ime-mode: active;" type="text" maxlength="80" attrName="address1_city" attrPriv="7" controlmode="normal" defaultValue="New Haven"></div><span class="ms-crm-Inline-LockIcon" style="display: none;"><img width="1" height="1" class="ms-crm-ImageStrip-inlineedit_locked" alt="" src="/_imgs/imagestrips/transparent_spacer.gif"></span></div></td></tr><tr height="24"><td title="Type the state or province of the primary address." class="ms-crm-ReadField-Normal ms-crm-FieldLabel-LeftAlign" id="address1_composite_compositionLinkControl_address1_stateorprovince_c"><span class="ms-crm-InlineEditLabel"><span class="ms-crm-InlineEditLabelText" style="text-align: left; max-width: 115px;">State/Province</span><div class="ms-crm-Inline-GradientMask" style="display: none;">
</div></span></td><td class="ms-crm-Field-Data-Print" id="address1_composite_compositionLinkControl_address1_stateorprovince_d" data-height="24"><div tabindex="1220" title="Select to enter data" class="ms-crm-Inline-Chrome nvarchar" id="address1_composite_compositionLinkControl_address1_stateorprovince" aria-describedby="address1_composite_compositionLinkControl_address1_stateorprovince_c" data-layout="0" data-fdeid="PrimaryEntity" data-formid="8448b78f-8f42-454e-8e2a-f8196b0419af" data-attributename="address1_stateorprovince" data-initialized="true">
<div class="ms-crm-Inline-Value ms-crm-Inline-EmptyValue">
<span>--<div class="ms-crm-Inline-GradientMask"></div></span>
</div>
<div class="ms-crm-Inline-Edit" style="display: none;"><input title="" class="ms-crm-InlineInput" id="address1_composite_compositionLinkControl_address1_stateorprovince_i" aria-labelledby="address1_composite_compositionLinkControl_address1_stateorprovince_c address1_composite_compositionLinkControl_address1_stateorprovince_w" style="-ms-ime-mode: active;" type="text" maxlength="50" attrName="address1_stateorprovince" attrPriv="7" controlmode="normal"></div></div></td></tr><tr height="24"><td title="Type the ZIP Code or postal code for the primary address." class="ms-crm-ReadField-Normal ms-crm-FieldLabel-LeftAlign" id="address1_composite_compositionLinkControl_address1_postalcode_c"><span class="ms-crm-InlineEditLabel"><span class="ms-crm-InlineEditLabelText" style="text-align: left; max-width: 115px;">ZIP/Postal Code</span><div class="ms-crm-Inline-GradientMask" style="display: none;">
</div></span></td><td class="ms-crm-Field-Data-Print" id="address1_composite_compositionLinkControl_address1_postalcode_d" data-height="24"><div tabindex="1230" title="06515" class="ms-crm-Inline-Chrome nvarchar" id="address1_composite_compositionLinkControl_address1_postalcode" aria-describedby="address1_composite_compositionLinkControl_address1_postalcode_c" data-layout="0" data-fdeid="PrimaryEntity" data-formid="8448b78f-8f42-454e-8e2a-f8196b0419af" data-attributename="address1_postalcode" data-initialized="true">
<div class="ms-crm-Inline-Value">
<span>06515<div class="ms-crm-Inline-GradientMask"></div></span>
</div>
<div class="ms-crm-Inline-Edit" style="display: none;"><input title="" class="ms-crm-InlineInput" id="address1_composite_compositionLinkControl_address1_postalcode_i" aria-labelledby="address1_composite_compositionLinkControl_address1_postalcode_c address1_composite_compositionLinkControl_address1_postalcode_w" style="-ms-ime-mode: inactive;" type="text" maxlength="20" attrName="address1_postalcode" attrPriv="7" controlmode="normal" defaultValue="06515"></div></div></td></tr><tr height="24"><td title="Type the country or region for the primary address." class="ms-crm-ReadField-Normal ms-crm-FieldLabel-LeftAlign" id="address1_composite_compositionLinkControl_address1_country_c"><span class="ms-crm-InlineEditLabel"><span class="ms-crm-InlineEditLabelText" style="text-align: left; max-width: 115px;">Country/Region</span><div class="ms-crm-Inline-GradientMask" style="display: none;">
</div></span></td><td class="ms-crm-Field-Data-Print" id="address1_composite_compositionLinkControl_address1_country_d" data-height="24"><div tabindex="1240" title="Select to enter data" class="ms-crm-Inline-Chrome nvarchar" id="address1_composite_compositionLinkControl_address1_country" aria-describedby="address1_composite_compositionLinkControl_address1_country_c" data-layout="0" data-fdeid="PrimaryEntity" data-formid="8448b78f-8f42-454e-8e2a-f8196b0419af" data-attributename="address1_country" data-initialized="true">
<div class="ms-crm-Inline-Value ms-crm-Inline-EmptyValue">
<span>--<div class="ms-crm-Inline-GradientMask"></div></span>
</div>
<div class="ms-crm-Inline-Edit" style="display: none;"><input title="" class="ms-crm-InlineInput" id="address1_composite_compositionLinkControl_address1_country_i" aria-labelledby="address1_composite_compositionLinkControl_address1_country_c address1_composite_compositionLinkControl_address1_country_w" style="-ms-ime-mode: active;" type="text" maxlength="80" attrName="address1_country" attrPriv="7" controlmode="normal"></div></div></td></tr><tr class="ms-crm-Form-SectionGapRow"><td></td><td></td></tr></tbody></table></div>
</div></div>
当我以编程方式更新这些单独的字段(Street1,2,3,City,State等)时,这不会更新复合字段(地址类型),除非我点击它并点击它:
以下是对所发生情况的介绍:
http://screencast.com/t/con2aNNWY
如何强制更新复合地址字段?
非常感谢您对此事的任何见解。
答案 0 :(得分:0)
您如何更新各个字段?更改帐户后,如果点击复合字段以外的其他地方,那么它是否更新?
更新:复合字段正在更新帐户字段的更改事件,当您点击其他位置时,它会受到影响。