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

#RPE #DNG How can I access a custom attribute with a custom data type from DNG with RPE?

Hi,
I have created a custom attribute "Region of Markets" in DNG with a custom data type "t_region". Now I want to read out the values in RPE. I have tried to follow your last advise:  https://jazz.net/forum/questions/252825/rpe-dng-how-can-i-add-attributes-from-a-dng-module-to-the-data-source-schema-in-rpe . Unfortunately it did not work. I could not read out any of the content of my attribute "Region of Markets".

Thanks in advance!

0 votes

Comments

HI Emely,


Please do not open duplicate forum question but follow on the same thread:

This way context of your original question is lost and confuses everyone. If you follow link https://jazz.net/mystuff#tab=forum&page=questions, you can find all your forum questions. 


Accepted answer

Permanent link

The example provided works only for "String" data type. Depending on the attribute data type (t_region), you need to modify the data attribute used. What kind of value does "t_region" use? Is it Enumerated list of values? If so, you can use name (dataSource/artifact/collaboration/attributes/objectType/customAttribute/name) for filtering and literalName (dataSource/artifact/collaboration/attributes/objectType/customAttribute/literalName) for printing.

Emely Pi selected this answer as the correct answer

0 votes

Comments

t_region is defined as an enumerated list of values with base type integer from which one ore more values can be chosen. The labels of the values are printed in "Region of Markets". I need to read out these labels. So I would use as a condition itemId = "Region of Markets"?

I have tried your suggested solution but I still can't access the custom attributes. There is nothing printed into my word document.

I'm not sure how to get the itemID.

You can refer the screenshot - the URL is what you use for configuring the "resources" data source.

For getting the "customer" attribute, I can either use the condition name == "customer" or itemId == "_ptWl4FktEeiEhdvG67fFHQ"

Here is the screenshot of RPE template:

Thanks for the answer. Unfortunately filtering by name doesn't solve my problem. RPE still doesn't print my custom attribute into a word document.

I've done it exactly as you have in the above screenshot of a RPE template. RPE still doesn't print the custom attribute.

Ok, got it. I had to change the dsx file slightly. Thanks a lot!

Ok, got it. I had to change the dsx file slightly. Thanks a lot!

showing 5 of 8 show 3 more comments

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,025

Question asked: May 17 '18, 7:02 a.m.

Question was seen: 3,360 times

Last updated: May 24 '18, 11:43 a.m.

Confirmation Cancel Confirm