Automate the global variable linking
I want to use global variable that will be use for all the project. can you please suggest how to write code for automatic linking of global variable.
We can create a separate file for list of global variables .
While writing , it shows the available suggestion of variable and link it.
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER May 23 '23, 2:21 a.m.This is not a question. Neither does it contain any actionable information.
Please carefully read: How should I ask a question in the Forum if I want to receive useful answers?
Then refine your statement above to a question that is understandable and explains what the question/intent is.
prabodh kumar shaw
May 23 '23, 9:14 a.m.How to use global variable in DNG? Example I have A , B , C project. Every project having temperature, speed etc values. How can I use one variable list that will contain the values of all the projects?
David Honey
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER May 23 '23, 9:53 a.m.I still don't understand what you are describing.
What do you mean "every project has temperature"?
Are you talking about a custom artifact attribute named temperature in multiple components or project areas?
Perhaps some screenshots showing what you're trying to do would make this clearer.
Or at least describe the dialogs where this data is currently defined.
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER May 23 '23, 10:06 a.m.DNG does not support anything like global variables. It is unclear what variable means in this context.
In addition it is very unlikely that there is only one speed, temperature, etc. Per project. So you would also not access them across projects.
DNG is a requirements management system. You have requirements, requirements have attributes, attributes are of a certain type and can contain certain values. Values might be discrete values or numbers, strings etc..
Each component has its own type system that defines this. Types in different components can be the same, or not.
So you have to explain what you want to achieve/solve and not assume an implementation concept.
prabodh kumar shaw
May 23 '23, 12:27 p.m.Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER May 23 '23, 10:11 a.m.You want to look into https://www.ibm.com/docs/en/elms/elm/7.0.2?topic=components-managing-project-component-properties to understand what the concepts are that might be involved.
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER May 23 '23, 10:17 a.m.See https://www.ibm.com/docs/en/elms/elm/7.0.2?topic=components-managing-project-component-properties to understand what the concepts are that might be involved.
A requirement type can have a temperature attribute of a temperature type that accepts numbers. However they are most likely not tied to a project area, but to a type system. The values will likely be number types so that they can be specified as desired.