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

How to do calculated value in RDNG using any script.

 Hii,

I had a query that can we perform  calculated value in RDNG. I Will enter 2 numbers in artifact  and Now I need to get the automatically calculated value of that 2 number. I need to know is this possible  with any script. If possible can you please guide me what and all steps I need to follow.

Thank you,
Regards,
Pavan m.

0 votes



2 answers

Permanent link

 As far as I am aware, there is no way to implement this in DNG similar to EWM work item customization.


The Client API might be an option: https://jazz.net/wiki/bin/view/Main/RMExtensionsMain 

0 votes


Permanent link

 Hi Pavan - you can do this sort of thing using a DNG extension. These are documented here https://jazz.net/wiki/bin/view/Main/RMExtensionsMain


Find the link for the version you're running - in the examples available to download the ASIL Guidance extension might be a good one to study - I believe it reads some attribtes and can update another attribute based on a calcuation from these.


0 votes

Comments
As said above, you can do this pretty easily with a DNG extension. Couple of notes:

 - if you're doing calculations with attributes that are floating point numbers, I would recommend that you do NOT define them as type Float. From what I can tell they get mapped to 16 or 32 bit float data types in the database and the precision is terrible. I use a string, and then convert to 64 bit floats in code.

 - there is no concept of a calculated field like there is in DOORS Classic. Your code will have to fetch the required attributes, do the calculation, and then store the result in an attribute

 - the IBM RQA tool is a DNG extension, but they have actually done some cool tricks inside it to hack the DOM of the web page and add columns directly to the HTML output, which gives the effect of a calculated column. You could try that at your own peril!!! They also store data directly in attributes as well.

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: Aug 11 '21, 4:22 a.m.

Question was seen: 1,475 times

Last updated: Aug 15 '21, 7:26 p.m.

Confirmation Cancel Confirm