I am trying to come up with a way that I can pass an attribute name via an external variable. And then be able to access that attribute in the template, without first running schema discovery.
The problem is we have built a standard template, but we want the users to be able to customize it a little bit via external variables, but I can't find any way that I can take an attribute name via the variable and access it using a script.
If this is impossible for RPE Studio to do, is it possible to do it via Java? Or maybe even by editing the dxl that RPE runs to retrieve the data?
Dragos.Cojocari 270001QUCG1647 Posts
Re: Dynamic Schema Generation2012-10-26T12:49:02ZThis is the accepted answer. This is the accepted answer.Hey,
this is not possible right now but we have plans to add it to RPE ( see RFE 6480. In the meantime you can achieve what you want using the DOORS/Object/Attribute collection and filtering it by name ( compare the attribute name with the one stored your external variable). The main disadvantage of this approach versus schema discovery is performance as RPE needs to pull all the attributes from DOORS.
oymsj001 270005EQG415 Posts
Re: Dynamic Schema Generation2012-11-06T05:46:22ZThis is the accepted answer. This is the accepted answer.
- Dragos.Cojocari 270001QUCG
Thanks so much Dragos. For anyone else who needs this I will attach an example template which pops up a message to ask what attribute name you want, and then for each object it will print out the value of that attribute, unless it is blank then it prints "null".