It's all about the answers!

Ask a question

How to read Editor Presentation properties from DOJO?


Nils Müller-Sheffer (1136) | asked Aug 08 '12, 4:42 p.m.
edited Aug 09 '12, 12:00 a.m. by Ralph Schoon (63.1k33645)

Workitem Editors can be parameterized with a set of default key/value pairs such as labelVisible, hideIfEmpty etc. How can these values be read from the dojo script that is deployed with the custom editor presentation?

If you check how this represented in the process source it is very simple and very generic:

<presentation attributeId="someid" description="somedesc" kind="com.ibm.team.workitem.kind.contributor"> 
   <property key="labelVisible" value="true"/> 
</presentation>

I have written a custom workitem editor and that works just fine. Now I want to parameterize this with my own key/value pairs, like so:

<presentation attributeId="someotherid" description="somedesc" kind="my.own.wi.editor"> 
   <property key="labelVisible" value="true"/>  
   <property key="myprop" value="hello world!"/>
</presentation>

How can I read the built-in props from DOJO and would I be able to use that for arbitrary (non-boolean) values of my own design like shown above?

Any help would be greatly appreciated!

Thanks, Nils

One answer



permanent link
Ralph Schoon (63.1k33645) | answered Aug 09 '12, 1:34 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Nils,

what you could try is looking into how the UI does it.

Use Firebug to inspect and debug extensions to the Web UI
–Add ?debug=true in front of the # or to the end of the URL in case there is no # „...projects/P1?debug=true#action....“ to disable code compression

Interesting links (maybe)
- https://jazz.net/wiki/bin/view/Main/HiJazzWebTutorial
- https://jazz.net/library/LearnItem.jsp?href=content/docs/web-ui-programming/index.html
- https://jazz.net/wiki/bin/view/Main/ContributingAttributePresentationsV2


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.