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

Using RPE template to export DNG module to Word - User Select Variable to print only certain artifacts

Hello,

I am using RPE to export modules to Word. I plan on uploading the templates to DNG so users can do this themselves. In some cases, I want the user to be able to select an attribute from an enumerated list, or drop-down menu, and only export those artifacts pertaining to that attribute. For example:

I have a requirement spec which has requirements specific to different customers. These artifacts have an enumerated list customer attribute. Say I want to only export requirements pertaining to Customer 1. When exporting to Word, I want to be able to select Customer 1 from an enumerated list (or even multiple customers).

I know I can have external variables in my document template, but I don't know how to have that variable reflect the enumerated list attribute. How can I set an external variable to reflect an enumerated list attribute?

Any assistance would be appreciated. Are there resources somewhere that I can read up on this?

Thanks

0 votes



One answer

Permanent link

For enumerated list of values, you need to use itemId and literalName. You can use itemId for filtering. Use a RPE variable (custValues) and append the literalName (dataSource/artifact/collaboration/attributes/objectType/customAttribute/literalName) returned for the artifact, check if the value of external variable is a substring of custValues.

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: May 15 '18, 12:49 p.m.

Question was seen: 2,651 times

Last updated: May 17 '18, 9:34 a.m.

Confirmation Cancel Confirm