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

How to read Editor Presentation properties from DOJO?

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

0 votes



One answer

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


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
× 10,936
× 6,121
× 34

Question asked: Aug 08 '12, 4:42 p.m.

Question was seen: 5,288 times

Last updated: Aug 09 '12, 1:34 a.m.

Confirmation Cancel Confirm