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.
2 answers
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
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.
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.