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

How to Print NA if a table not printing in RPE

I am blocked to find a logic to write ,where there is   a table should print in report if its not printing it should show NA or NIL value.Can  anyone help me to get the solution

0 votes


Accepted answer

Permanent link
Hi Sreenath,
Is the table included in template or part of the XML/XHTML data?
sreenath v selected this answer as the correct answer

0 votes


4 other answers

Permanent link

It is inisde the RPE template...i am trying to  pull data into a table format .So if data is not present it should print NA. As of now the assignmnet hasformal-true and all done .Not working. SO i think if table not present it should print NA.

0 votes


Permanent link

Right. So you need to use the same query twice - once to assign ("true" or "false) value to _hasFormal variable and again for printing the data within the table. Use the condition _hasFormal=="true" on the table element and condition _hasFormal=="false" on the text element (that prints "NA").

0 votes

Comments

Here if argument is not there for rhapsody operation that query itself is not working.Suppose the argument for operation is given then it will print true as i gave assignment but if argument not there it is not executing.That query itself will get ignore.


Permanent link
i have done that...Here i am trying to print operations from rhapsody classes. So operation argument if not present should print NA and if it is there table will generate with values. So here what i observed that if any of the operation have argument and table print then the condition hasformal != "true" not working.


(Note: I cannt comment on you answer ie i am answering like this)

0 votes


Permanent link

  the condition _hasFormal=="true" on the table element and condition _hasFormal=="false" on the text element (that prints "NA"). 


The above conditon is given. But if formal parameter are empty, NA is not prinitng. Only true condition is working.


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

Question asked: May 20 '20, 4:55 a.m.

Question was seen: 1,508 times

Last updated: May 28 '20, 3:13 a.m.

Confirmation Cancel Confirm