Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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

0 votes



One answer

Permanent link
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.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,074

Question asked: Oct 01 '14, 4:22 a.m.

Question was seen: 5,984 times

Last updated: Oct 02 '14, 3:17 a.m.

Confirmation Cancel Confirm