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

How to get nil value in RPE table

 How to print NIL value if the cell contain no value in RPE report

0 votes



4 answers

Permanent link

Assign the data attribute to a variable and print the variable. Make sure you reset the variable to "NIL" each time.

1 vote

Comments

If am using custom attribute and printing in a table , don't I want to write one code for that,to get Nil value when table is blank!? 


Permanent link

can you please share any sample template which prints Nil value when the cell contains no value while taking report

0 votes

Comments

I have tried giving

 if (title=="")
{
"Nil"
} but it's showing blank output


Permanent link
Hi Sreenath,

You should try the other way. That is, assign "Nil" to a variable first. Then assign the value of attribute to the variable. If attribute doesn't contain any value, variable will still have "Nil" value assigned, else the attribute value will be assigned. Print the variable.
Reset the variable to "Nil" every time so that "Nil" will be default value, that would be printed if attribute doesn't exist.

0 votes

Comments

Thanks subramanya prasad


Could you please help me to resolve the error with the URL configuration of datasource when it navigate to different tool from DNG.!I have posted this question in forum and error also while generating. 


Permanent link
About the NILvalue , i have created a variable and assigned default value NIL. After that i right clicked on the container Add assignments>>selected NIL and assigned workitem>workitem>children>id.After that on i selected Variable Nil.
Now i created a workitem in RTC and added 3 children workitem.it is printing all 3 workitem.But when i remove it,its is not showing nil. Is there anyhing i missed

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
× 6,125

Question asked: Nov 21 '18, 9:24 a.m.

Question was seen: 2,342 times

Last updated: Nov 28 '18, 5:50 a.m.

Confirmation Cancel Confirm