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.
|
5 answers
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).
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?
|
You should be using dataSource/artifact/content/text/richTextBody/div in the template. This will contain the formatted text along with images.
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?
Sravan Balaji
commented Jun 15 '17, 1:54 p.m.
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?
|
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. |
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.
|
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.
|
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.