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

RPE - printModuleBook - Skip attributes for headings

 Hi, 

New to RPE, in the printModuleBook template which comes with the publishing service, how can I modify the "-Content" section of the DTA to skip over the printing of attributes if the artifact type is a "Heading"? 

1

1 vote


Accepted answer

Permanent link
Hi Glyn,
printModuleBook template uses views data source schema and you will not find isHeading attribute. You should rather check if the div attribute value contains heading tag. Use an internal variable (_isHeading) and set its value to true or false based on this check.

For the table that shows the attributes, you can apply the following condition so that it will be skipped for headings:

showAttributes == "true"  && _isHeading == "false"

Glyn Costello selected this answer as the correct answer

0 votes


2 other answers

Permanent link
Hi Glyn,

Not sure about your template specifically but in general you should be looking for or creating a container with context:- datasource/artifact/moduleContext/contextBinding

You should be looking for a property in that context called 'isHeading' and setting a condition on that property to false to avoid heading artifacts in the loop



1 vote


Permanent link

 Glyn,


As Sean wrote, you shoud use isHeading attribute but it will only work for printModuleTable but wont work for printModuleBook.

You can filter using atrifact type artifact type in rpe report. 

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,019
× 7,495
× 1,325

Question asked: May 18 '20, 1:46 p.m.

Question was seen: 1,721 times

Last updated: May 19 '20, 1:24 p.m.

Confirmation Cancel Confirm