Hello Community,
I have encountered a problem of ArisData.getSelectedObjOccs();
No matter how many objects I choose at the beginning (Context is set to function), the length of the returned list is always zero. However if I use ArisData.getSelectedObjDefs(), the length of the returned list is exactly the number of objects I have chosen.
I would like to know if I have made some mistakes using this function.
Thank you!
Your described method behavior seems similar to what I've encountered in ARIS Connect in combination with ARIS 10 SR3. There I could write a report, execute it in an Architect/Designer client environment and get the behavior you'd expect (object occurrences to work with), and execute the same report in the ARIS Connect environment to get different results - the results you described above (no object occurrences, only object definitions).
I guess it's a bug.
Could you describe your environment a bit (used ARIS version, executing the Report in Connect or in the client,..., whatever else comes to mind)?
Just to get misunderstandings out of the way, you are opening a model, selecting one or more object occurrence(s) and starting a report from there, aren't you?
Wait. You opened the report (through the "Administration" tab > "Evaluations" > "Reports" > ...), run it by going to the "Debug" tab > "Run" and then picked objects? But that's picking objects from the explorer, of course those are object definitions you are getting.
In explorer-groups you'll mostly find models and object definitions (there are also shortcuts, matrix-models,..., but mostly you'll find models and object definitions). You can not pick object occurrences from the dialog that you open from within the report editor. An object occurrence can be imagined as anchor point within a model, it anchors the data that you store in an object definition (outside the model) to a specific point within your model.
Try the following: open a model (through the "Explorer" tab, log into a database and open a model), right click click on an object occurrence > "Evaluate" > "Start report...". Then pick your report from the list of reports, and run it.