Script based dependent list shows as "Retrieving" for ever
Any one faced similar situation? I am testing the script based dependent values on my system (I know I can use dependent values type value set for this simple scenario, but this is a test to further advance code later). When I test in front end I just see "Retrieving" but no drop-downs for the dependent list. What is wrong with my code?
|
One answer
The below code is incorrect since "lista" is _not_ a built-in attribute.
It should more likely be
Check the document carefully and do sufficient debugging with your codes.
https://jazz.net/wiki/bin/view/Main/AttributeCustomization#ScriptBasedNotes
https://jazz.net/wiki/bin/view/Main/WorkItemsWebDebugging
Comments
Uma venkata Lekkala
commented May 17 '15, 8:37 p.m.
The name is ListA and the id is lista. Should I use id or name?
Donald Nong
commented May 18 '15, 3:00 a.m.
Check the Wiki linked above.
This is how my code looks now. I modified an example script, Does any of this need to change SPECIFIC to my environment? If attribute id is lista, string attribute id should be lista or 'lista' or "lista"? dojo.provide("org.example.workitems.providers.listbaValueSet");
Donald Nong
commented May 22 '15, 12:38 a.m.
You can use either single quotes or double quotes, as they work the same way. But it is incorrect to use lista without quotes, as it is the variable that you just declare and its value is null.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.