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

How to import DNG module images into RPE

I am having trouble getting images within requirements (format = text) to show up when I import a module into RPE.
I used dataSource/artifact/content within RPE. This makes all text show up, but images do not show up. Tables are also not formatted properly.

My data source is a DNG module and the URL I use to import the information from DNG is https://[server:port]/rm/publish/text?moduleURI=[URI of the module I want to import]

Any help would be greatly appreciated.

0 votes



5 answers

Permanent link

You can try adding maximiseEmbeds=true parameter to the datasource URL so that graphic is shown in the output. To print the diagram, you can Insert the Diagram artifact into a Text artifact and then GET the Text artifact (https://server:port/rm/publish/text?resourceURI=UUID&maximiseEmbeds=true).

https://jazz.net/forum/questions/231407/get-diagram-picture-in-dng-into-rpe-report

0 votes

Comments

Hi Subramanya,


I am not trying to print a diagram, but a jpeg image. I created a test artifact with only a jpeg image in it. It still says the format is text though. When I try using resource instead of module, nothing prints out. maximiseEmbeds doesn't seem to do anything. When I used DNG text as my data source schema rather than DNG module, it printed everything out correctly because it had a richtext sub folder. DNG module doesn't have such a folder so images don't seem to be able to show up.

Do you have any other suggestions?


Permanent link

You should be using dataSource/artifact/content/text/richTextBody/div in the template. This will contain the formatted text along with images.

0 votes

Comments
I switched from using DNG Module to DNG Text as my data source schema. This allows me to use richTextBody/div. 

However, I want to use a DNG module as my data source. I tested my template with a simple requirement, but I want to be able to use this template with all of the requirements within the module. How would I do that without crashing RPE?

Here is my current issue:


When using DNG Text as the Schema, I have access to the images. However, I cannot use a module as my data source because RPE throws an error and aborts creating my document.

When using DNG Module as the Schema, I don't have access to the images. However, I can use a module as my data source.

How can I still have access to the images and tables in the artifacts while using a DNG Module as my data source?


Permanent link

You also need to add text schema in the template. Using Data Source Configuration element, you can reconfigure the URL for each text artifact within the module and then print dataSource/artifact/content/text/richTextBody/div. You can refer the sample template - use module URL (https://server:port/publish/modules?resourceURI=xxxxx) to configure "module" data source and generate document.

0 votes


Permanent link
I have a problem in printing the image.

 printing dataSource/artifact/content/text/richTextBody/div directly from the query container is printing image.

storing the module data in an array & printing the array does not print the image. container that starts the print is not under the context of any data source.

0 votes


Permanent link

dataSource/artifact/content/text/richTextBody/div will contain link to the image.If you are printing the variable outside the query context, you will not have authentication for the image. In that case, try setting "Inherited data configuration" property for the Text element.

0 votes

Your answer

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
× 12,021

Question asked: Jun 15 '17, 10:22 a.m.

Question was seen: 4,112 times

Last updated: Feb 26 '20, 4:28 a.m.

Confirmation Cancel Confirm