Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

DataAsXML script to generate tables?

 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

1

0 votes

Comments

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

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>
...

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

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,132

Question asked: Nov 29 '17, 5:55 a.m.

Question was seen: 1,754 times

Last updated: Mar 06 '18, 5:03 a.m.

Confirmation Cancel Confirm