You need to sign in to do that
Don't have an account?
Dennis H Palmer
Dependent Picklist - Cannot read property '<parent fieldlabel>' of undefined
Scenario:
- Dependent Picklist on a Custom Object.
- Parent Picklist has 4 values.
- Child Picklist has 10 values.
- Only one parent Picklist value has values in the child Picklist.
- Double click to inline edit either picklist: Javascript Error: "Cannot read property '<parent fieldlabel>' of undefined". (<parent fieldlabel> is the Label of the parent field)
This is supposed to bring up the dependent Picklist field editor popup where both fields are there in a little popup with a save button.
I've tried:
1. Making at least one child value appear for all parent values.
2. Enabling/Disabling each Critical Update.
3. Moving the fields on the Page Layout.
4. Click the Edit button to edit instead of inline edit. This works! But doesn't fix the inline edit issue.
JS Stacktrace:
No idea on this one. Stumped!
- Dependent Picklist on a Custom Object.
- Parent Picklist has 4 values.
- Child Picklist has 10 values.
- Only one parent Picklist value has values in the child Picklist.
- Double click to inline edit either picklist: Javascript Error: "Cannot read property '<parent fieldlabel>' of undefined". (<parent fieldlabel> is the Label of the parent field)
This is supposed to bring up the dependent Picklist field editor popup where both fields are there in a little popup with a save button.
I've tried:
1. Making at least one child value appear for all parent values.
2. Enabling/Disabling each Critical Update.
3. Moving the fields on the Page Layout.
4. Click the Edit button to edit instead of inline edit. This works! But doesn't fix the inline edit issue.
JS Stacktrace:
Uncaught TypeError: Cannot read property 'Carrier' of undefined at picklistForInlineEditing.picklist.generate (picklist2.js:7) at picklistForInlineEditing.generate (picklist2.js:11) at picklistForInlineEditing.picklist.onLoad (picklist2.js:5) at DynamicEnumField.load (main.js:1673) at InlineEditData.openGroup (main.js:1095) at InlineEditData.openField (main.js:1092) at InlineEditData.dynamicDataLoaded (main.js:1107) at HTMLScriptElement.<anonymous> (main.js:1107) at HTMLScriptElement.e (main.js:479) picklist.generate @ picklist2.js:7 picklistForInlineEditing.generate @ picklist2.js:11 picklist.onLoad @ picklist2.js:5 DynamicEnumField.load @ main.js:1673 InlineEditData.openGroup @ main.js:1095 InlineEditData.openField @ main.js:1092 InlineEditData.dynamicDataLoaded @ main.js:1107 (anonymous) @ main.js:1107 e @ main.js:479
No idea on this one. Stumped!
"this" refers to an object representing the parent Picklist field:
It is saying this.mapping is undefined.
The Picklist fields are retrieved via a call like this: The dynamic url it uses to load these fields is /servlet/servlet.picklist?e=...
Which returns: There is is no mapping in the second (child) field. I wonder if this call is not bringing the dependency over...
Steps: The cause of this issue: When dynamically loading information about the Picklist fields, the url that is used has &ile=0 instead of ile=1. Lets see why the ile is 0...
The url is in the loaded HTML document I am unsure as to why the url does not include the map value at first.
Were you ever able to find a workaround for this? I'm experiencing this issue on apex:inlineEditSupport for dependent fields too. Any update to a dependent picklist breaks all inline editing - breaking my page...