How avoid Error 500: ... Unsupported/Unknown required feature: com.ibm.rdm.rm.api
Hello!
I'm developing Rational DOORs NG client extension with "OpenSocial Gadget" widget. It's a very simple custom script that shows a text only on the Minidashboard panel. And when I go to RM application, it works well. But when I go, for example, to Jazz Team Server Home, it shows me:
Error 500: The gadget cannot be rendered due to one or more errors: Unsupported/Unknown required feature: com.ibm.rdm.rm.apiI understand that the problem is in the text of main XML file:
<Require feature="com.ibm.rdm.rm.api"/>But I don't have understanding how I could fix it. May be I could hide the widget leaving the RM application, is it correct? Or may be there is another, more effective way. If somebody could give me an advice how to be with this annoying error, it could be perfect!
Thank you very much in advance!
2 answers
<Module specificationVersion="2.0">
<ModulePrefs title="DOORs_ID" height="700" scrolling="true">
<Optional feature="com.ibm.rdm.rm.api"/>
</ModulePrefs>
<Content type="html">
<![CDATA[
<html>
<head>
<script src="js/jquery-1.9.1.js"></script>
<script src="js/common.js"></script>
<link rel="stylesheet" type="text/css" href="css/common.css">
</head>
<body>
...
<p id="messages" class="info"></p>
...
</body>
</html>
]]>
</Content>
</Module>
if(window.location.href.search("/rm/") < 0) {
$("#messages").append("The script works in DOORs Next Generation only!");
}
else
{
RM.Event.subscribe(RM.Event.ARTIFACT_SAVED, function(saved) {
...
Maybe this sheds some light. https://rsjazz.wordpress.com/2016/03/02/alien-skies-peeking-into-doors-next-extensibility/
Comments
Sorry, but I can not find there how to avoid this message. Thank you for the link anyway!
Format? Encoding? So something is wrong in your file, I suppose.
Ralph, I'm sorry. Of course, I can be wrong, but may be the problem is related to main XML file of the client extension. The begining of that file is:
May be if I will go out of RM application then I will go out of the scope of this required library. And the error takes place! But may be simply I don't understand something here.
Again, read https://rsjazz.wordpress.com/2016/03/02/alien-skies-peeking-into-doors-next-extensibility/ carefully. Your code is for a open social gadget and not for a widget (as far as I can tell, because the data does not show correctly)
Carefully check with that article. The differences are subtle, but will mess you up.
Thank you! This was a problem not of RDNG itself but rather related to Google OpenSocial API. I solved it by a simple code modification as it's described below in my answer.