How to extend RTC workitem UI with a custom modal dialog
2 answers
you CAN create a whole NEW attribute and implement your UI there (within limits).
See
contributing attribute presentations
Comments
Hi Sam, thanks for answer. It might be a possible solution.
Let's imagine that my custom attribute is a GUID, represented by a string type.
Can I leave a default presentation for an Eclipse client and just implement my own presentation for a web UI?
you must implement some UI for all clients. there is no 'default' UI.
you 'might' be able to copy the code for the base string type for the Eclipse presentation and implement something else for the web UI.
(I did this for another custom type, I had not yet implemented the web component).
the bad news for Eclipse is that u have to install the UI plugin in every client (ugh) that might see a workitem with you attribute in it.
and there are limits on what the data storage for the attribute can do. (ie you cannot makeup a new storage type currently)
what if I just skip implementation of Eclipse GUI - should a web browser client work anyways?
I don't know much about storage types. Can I use some predefined ones(strings) to guarantee that everything would be saved as expected.
sure... of course it won't work with the eclipse client. I think there are enough exception handlers to keep eclipse running..
you would HAVE to use some pre-existing storage type. my only comment is that things like dates stored in strings just add more work..
thanks, sam!
Comments
can u look at the ccm/log on the server (this is a server only plugin) and see if there are any reported issues?
I've found the problem: i renamed the eclipse project but didn't change names in plugin.xml. With default values it started well.
But I cannot select custom editor for "isStarred" custom attribute in Editor Presentations.
In eclipse plugin in this tutorial there was an additional parameter in extention point in plugin.xml:
<attributeType id="boolean">
the plugin.xml for WebUI doesn't have this declaration. Maybe it's the problem?
sorry, I don't know the answer to this. I am not very experienced with the web ui extensions.
Comments
Vikash Singh
Apr 30 '15, 1:22 p.m.Hi Aliaksei,
Did you got the solution for adding the button? Similar problem I have been also facing.