It's all about the answers!

Ask a question

"Custom Settings" wont work in RTC 5.0.1 JS/Dojo Widget Dev


Jonas Studer (207917) | asked Oct 01 '14, 4:22 a.m.
edited Oct 01 '14, 7:37 a.m.
Hy there fellas,

I've created some widgets in JS/Dojo under RTC 4.5
There I could always use the "custom settings" to define my own setting.

But in RTC 5.0.1 the settings-Panel won't load if I've added a preference-def in my plugin.xml which type is custom.
If I deactivate this preference-def the settings-Panel is loaded normally.

What can I do?

The error in Firebug:
_39.firstChild is null

One answer



permanent link
Jonas Studer (207917) | answered Oct 01 '14, 10:12 a.m.
edited Oct 02 '14, 3:17 a.m.
I found the solution myself.
But of course I gonna share it with you.

Problem:
Was in the Class " com.ibm.team.dashboard.web.ui.CustomPreferenceProvide".
Since RTC Version 5, you HAVE TO OVERWRITE it!
Because, he interprets the empty string as a null Object.

Solution:
Overwrite the function like this.
    getLabel: function(value){
        return "<emptydiv>";  //I can't write it normally. its just a div /div
    },

Et voila.. it work again.

Your answer


Register or to post 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.