It's all about the answers!

Ask a question

Is it possible to create UI extension for RTC web client?


Julia Ballos (1835) | asked Aug 30 '12, 7:22 a.m.

Lets say I woud like to add a new menuitem to one af the RTC web client menues (like Work Items menu or Source Control menu) or add a button to one of the webpages that will execute some custom logic.

In case it is possible where I can find some samples?

Accepted answer


permanent link
Nick Edgar (6.5k711) | answered Aug 31 '12, 2:45 p.m.
JAZZ DEVELOPER
edited Aug 31 '12, 2:45 p.m.
 Yes, these are contributed as extensions.  For example, Build's contribution, in the com.ibm.team.build.webui plug-in, is:

<extension point="net.jazz.ajax.pages">

<page

        componentMenuWidget="com.ibm.team.build.web.ui.internal.BuildComponentMenu"

        defaultAction="com.ibm.team.build.viewDefault"

        id="com.ibm.team.build"

        name="%page.build"

        widget="com.ibm.team.build.web.ui.internal.BuildPage">

<action id="com.ibm.team.build.viewDefault"/>

<action id="com.ibm.team.build.viewDefinitionList"/>

<action id="com.ibm.team.build.viewDefinition"/>

<action id="com.ibm.team.build.viewResult"/>

<action id="com.ibm.team.build.viewBuildQueue"/>

<action id="com.ibm.team.build.viewBuildEngines"/>

<action id="com.ibm.team.build.requestBuild"/>

    <action

          id="com.ibm.team.build.viewEngineResults">

    </action>

    <action

          id="com.ibm.team.build.editDefinition">

    </action>

    <action

          id="com.ibm.team.build.editEngine">

    </action>

</page>

</extension>


This contributes the Builds component "page" and its menu contribution, and also declares the actions the page supports.  You see these in the URLs as you navigate the web UI.

The following is also needed, to declare that the plug-in contributes to the web UI, and that files under its 'resources' folder should be accessible via .../web/<plugin id>, i.e. for JS, images, etc.

<!-- Web bundle marker -->

<extension point="net.jazz.ajax.webBundles">

</extension>


For more info, see the WebUIBook wiki.

As for contributing to an existing page, most of them are not open-ended, but Build's is.  That is, you can contribute overview summaries and tabs to the build result page, and similarly for build definitions and engines.

Julia Ballos selected this answer as the correct answer

Comments
1
Prasun Roy commented Sep 13 '12, 4:34 p.m.

Can Web UI extensions be developed for RQM as well. We are using RQM 4.0 and need to develop custom functionality for post-conditions that will execute when a Test artifact is saved. How is the extension deployed on the RQM server which is a production server in our case.


Nick Edgar commented Sep 13 '12, 7:38 p.m.
JAZZ DEVELOPER

Prasun, probably best to post this as a new top-level question, so RQM folks can see it.

One other answer



permanent link
he zhang (11) | answered Feb 07 '17, 4:27 a.m.

please,how extension the custom menu in componentMenuWidget,thank you


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.