It's all about the answers!

Ask a question

DataAsXML script to generate tables?


Pablo K (291312) | asked Nov 29 '17, 5:55 a.m.

 Hi,

following this blog entry: https://jazz.net/blog/index.php/2017/06/08/rpe-templates-for-reporting-on-harmony-models-in-rhapsody/

I got the RPE templates from here  (http://merlinscave.info/Merlins_Cave/Models/Entries/2017/5/26_RPE_Templates_for_Reporting_on_Harmony_Models_files/Reporting%20On%20Harmony%20Models.zip)

I found that in template "All Requirements Tables.dta"  the in-built script expression Atttribute "DataAsXML" is used for table, and this automatically generates a table with all header and content without any additional formatting or template adjustment, which is very handy.

however I don't find any additional information about that and currently we observe that this doesn't work in Linux, as there we get the following query result:

<rhp:DataAsXML>Error Reading table data</rhp:DataAsXML>

while in Windows for the same:

<rhp:DataAsXML>
<table><tr><th style="width:266px;">ID</th><th style="width:266px;">Name</th><th style="width:266px;">Specification</th></tr><tr><td>&nbsp;</td><td>diagramCreation</td>

...

 

<rhp:DataAsXML>
 

 

can somebody provide more information?

thanks in advance,

Pablo


Comments
Kumaraswamy Gowda commented Jan 17 '18, 5:41 a.m.

Hi Pablo,

Could you share RPE log information? I want to check if the Rhapsody data source is providing the right data or not.
you could also verify it yourself following the steps from https://rpeactual.com/2013/11/22/how-to-get-the-xml-data-used-by-rpe/

Thanks,
Kumar


Pablo K commented Mar 05 '18, 5:51 p.m.

Hi Kumar,
sorry for very late reply, but finally I can continue working with RPE.

I looked on the link you provided but dont use "Generic XML" as Data source, but Rhapsody via its webserver. can I get a log from other ways?

I looked on the xml from http://localhost:27463/Rational/Rhapsody/ and the table seems to be ok. see below.

NOTE: I replaced internal naming by xxx.. the double slash "//" is there in original XML.

Thanks and Regards, Pablo

 <rhp:NestedElements><rhp:ModelElement xsi:type="rhp:TableView" href="http://localhost:27463/Rational/Rhapsody//xxx/GUID859312d0-ccdb-4603-9868-cc8d4cf9c4f9"><rhp:id>GUID 859312d0-ccdb-4603-9868-cc8d4cf9c4f9</rhp:id><rhp:name>Glossary</rhp:name></rhp:ModelElement>

<rhp:ModelElement xsi:type="rhp:Requirement" href="http://localhost:27463/Rational/Rhapsody//xxx/GUID
9b5f7dc0-873c-45c2-a8b3-a380a906f2b4"><rhp:id>GUID 9b5f7dc0-873c-45c2-a8b3-a380a906f2b4</rhp:id><rhp:name>abc</rhp:name></rhp:ModelElement>
...


Kumaraswamy Gowda commented Mar 06 '18, 3:54 a.m.

Hi Pablo,

I wanted to ask for xml, but typed logs.

>>>  <rhp:DataAsXML>Error Reading table data</rhp:DataAsXML>
Does the above return correct in preview? on Linux?

Thanks,
Kumar


Pablo K commented Mar 06 '18, 5:03 a.m.

Hi Kumar,
somehow Data > Rhapsody > Right Click " Preview Data"  doesnt work on my linux (no new windows appear).

and in Properties  of Data Rhapsody I have instead of "URI" only "Default URI" and it is empty.

so I dont know what can I do now?

Best Regards,

Pablo

Be the first one to answer this question!


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.