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?
This topic has been locked.
2 replies Latest Post - 2012-11-06T05:46:22Z by oymsj001
Pinned topic Dynamic Schema Generation
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-11-06T05:46:22Z at 2012-11-06T05:46:22Z by oymsj001
Dragos.Cojocari 270001QUCG1604 PostsACCEPTED ANSWER
Re: Dynamic Schema Generation2012-10-26T12:49:02Z in response to oymsj001Hey,
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 PostsACCEPTED ANSWER
Re: Dynamic Schema Generation2012-11-06T05:46:22Z in response to Dragos.CojocariHi Dragos,
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".