Dependent option set failure - 3 issues

Jul 2, 2014 at 2:27 PM
ISSUE #1 - error

<Message>Object doesn't support property or method 'setDisabled'</Message>
<Line>3552</Line>
<URL>/%7B635398583230000581%7D/WebResources/mn_xrmservicetoolkit</URL>
<PageURL>/main.aspx?etc=1&extraqs=%3fetc%3d1%26id%3d%257b9FD78617-85FD-DF11-B5D5-0050569E228B%257d&pagemode=iframe&pagetype=entityrecord</PageURL>
<Function>anonymousr:Objectdoesn'tsupportpropertyormethod'setDisabled'</Function>
<CallStack>
<Function>anonymousr:Objectdoesn'tsupportpropertyormethod'setDisabled'</Function>
</CallStack>


XML Web Resource: mn_DependentOptionSetConfig

<DependentOptionSetConfig>
<entity name="account">
<ParentField id="accountcategorycode" label="Category">
<DependentField id="mn_subcategory" label="Sub Category" />
<Option value="3" label="Channel Partner">
<ShowOption value="1" label="CSP" />
<ShowOption value="2" label="CSP 2-Tier" />
<ShowOption value="3" label="Distributor" />
<ShowOption value="4" label="LOA" />
<ShowOption value="5" label="PO Only" />
<ShowOption value="8" label="Mobile PO Only" />
</Option>
<Option value="5" label="End User">
<ShowOption value="6" label="Direct" />
<ShowOption value="7" label="Indirect" />
</Option>
<Option value="200000" label="Technology Partner">
<ShowOption value="9" label="Technology Partner" />
</Option>
</ParentField>
</entity>
</DependentOptionSetConfig>


Call made in onload of account

XrmServiceToolkit.Extension.JQueryXrmDependentOptionSet("mn_DependentOptionSetConfig");

On change method

OnChangeAccountCategoryCode = function () {
try {
    XrmServiceToolkit.Extension.JQueryXrmDependentOptionSet("mn_DependentOptionSetConfig");
}
catch (err) {
    alert(err.message);
}
};

ISSUE #2:

I am see an extra dependent option called 'undefined', regardless of the value of the parent.

Where does the 'undefined' option come from?

ISSUE #3:

The dependency filtering seems to work. However, selecting a dependent option, then clicking save, then reloading the form, always results in the dependent option being empty.
Coordinator
Jul 3, 2014 at 9:50 AM
Hi.

Can you download the latest and try to see if it fixes some of the issues? There was an update to fix some issues with Extension methods.

Kind Regards,
Jaimie
Jul 3, 2014 at 10:44 AM
I'm sorry to report no change in the outcome.
  • same 3 issues as described above.
  • in case this matters, I am using jQuery 1.8.0
See below for full error information from CRM.

Microsoft Dynamics CRM Error Report Contents

<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>Object doesn't support property or method 'setDisabled'</Message>
<Line>3554</Line>
<URL>/%7B635399770060000581%7D/WebResources/mn_xrmservicetoolkit</URL>
<PageURL>/main.aspx?etc=1&extraqs=%3fetc%3d1%26id%3d%257b9FD78617-85FD-DF11-B5D5-0050569E228B%257d&pagemode=iframe&pagetype=entityrecord</PageURL>
<Function>anonymousr:Objectdoesn'tsupportpropertyormethod'setDisabled'</Function>
<CallStack>
<Function>anonymousr:Objectdoesn'tsupportpropertyormethod'setDisabled'</Function>
</CallStack>
</ScriptErrorDetails>
<ClientInformation>
<BrowserUserAgent>Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729)</BrowserUserAgent>
<BrowserLanguage>en-US</BrowserLanguage>
<SystemLanguage>en-US</SystemLanguage>
<UserLanguage>en-US</UserLanguage>
<ScreenResolution>1600x900</ScreenResolution>
<ClientName>Web</ClientName>
<ClientTime>2014-07-03T05:42:09</ClientTime>
</ClientInformation>
<ServerInformation>
<OrgLanguage>1033</OrgLanguage>
<OrgCulture>1033</OrgCulture>
<UserLanguage>1033</UserLanguage>
<UserCulture>1033</UserCulture>
<OrgID>{A3EEEBCA-FF75-4E70-82EA-40A1F578FCF8}</OrgID>
<UserID>{4359F98C-96F9-DF11-B5D5-0050569E228B}</UserID>
<CRMVersion>6.1.0.581</CRMVersion>
</ServerInformation>
</CrmScriptErrorReport>

<CrmScriptErrorReport>
<ReportVersion>1.0</ReportVersion>
<ScriptErrorDetails>
<Message>Object doesn't support property or method 'setDisabled'</Message>
<Line>3554</Line>
<URL>/%7B635399770060000581%7D/WebResources/mn_xrmservicetoolkit</URL>
<PageURL>/main.aspx?etc=1&extraqs=%3fetc%3d1%26id%3d%257b9FD78617-85FD-DF11-B5D5-0050569E228B%257d&pagemode=iframe&pagetype=entityrecord</PageURL>
<Function>anonymousr:Objectdoesn'tsupportpropertyormethod'setDisabled'</Function>
<CallStack>
<Function>anonymousr:Objectdoesn'tsupportpropertyormethod'setDisabled'</Function>
</CallStack>
</ScriptErrorDetails>
<ClientInformation>
<BrowserUserAgent>Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729)</BrowserUserAgent>
<BrowserLanguage>en-US</BrowserLanguage>
<SystemLanguage>en-US</SystemLanguage>
<UserLanguage>en-US</UserLanguage>
<ScreenResolution>1600x900</ScreenResolution>
<ClientName>Web</ClientName>
<ClientTime>2014-07-03T05:42:14</ClientTime>
</ClientInformation>
<ServerInformation>
<OrgLanguage>1033</OrgLanguage>
<OrgCulture>1033</OrgCulture>
<UserLanguage>1033</UserLanguage>
<UserCulture>1033</UserCulture>
<OrgID>{A3EEEBCA-FF75-4E70-82EA-40A1F578FCF8}</OrgID>
<UserID>{4359F98C-96F9-DF11-B5D5-0050569E228B}</UserID>
<CRMVersion>6.1.0.581</CRMVersion>
</ServerInformation>
</CrmScriptErrorReport>
Coordinator
Jul 7, 2014 at 1:01 PM
Hi.

Can you try the jQuery included in the project and see what the outcome is?

Kind Regards,
Jaimie