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.2k33646)

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=""> 
   <property key="labelVisible" value="true"/> 

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!"/>

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.2k33646) | answered Aug 09 '12, 1:34 a.m.
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)

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.