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

#RPE #DNG How can I access an empty attribute and replace it with "-"?

Hi,
some values of my custom attribute are empty. I want to print for a blank attribute this: "-". But I have noticed that RPE skips or doesn't notice blank attributes. As such checking whether the string is empty or using _sessionLogger.info to print the values is not working.
Basically, I've tried every suggestion from: https://jazz.net/forum/questions/249786/dng-rpe-how-to-print-something-if-a-custom-attribute-is-blank but none are working for me.
How can I access a blank attribute and replace it with "-"?

Thanks in advance!

0 votes



One answer

Permanent link

 You can simply assign the custom attribute value to a variable (to which value is initialized to "-") and print the variable. Here is the screenshot of the snippet that prints the value of custom attribute named SPAttr:

1 vote

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: Jun 04 '18, 8:12 a.m.

Question was seen: 2,582 times

Last updated: Jun 04 '18, 2:07 p.m.

Confirmation Cancel Confirm