In case a service consists of different elements and also contains subservices, what is the best way to access and display parameter values from elements in the subservice? Taking into account that the subservices have elements with the same alias.
On the main service I want to display a parameter (e.g. parameter id 202) from "Antenna" for "Pre-encoded Service Site 1" but also for "Pre-Encoded Service Site 2".
I tried adding the ServiceContext Shape Data to the shape linked to "Antenna":
This seems to work when setting the service context to Pre-Encoded Service Site 1
but when changing it to Pre-Encoded Service Site 2 my shape is not displayed at all.
Not sure if this is the right approach to access parameters in subservices.
Suggestions welcome!
Made a replica of this setup and i'm not experiencing any problems on version 10.1.3.0.
Structure:
Visual Overview:
Can you identify what is different in your setup?
Edit:
After collaborating with Miguel, we have identified a the reason why this it's not working on your setup.
Child shapes have a concept of inheritance when placing them in a parent shape. If a parent shape is linked to an element, the child shape will implicitly have a reference to that element as well. However, the ServiceContext is lost when the child shape inherits the reference to the element causing it to point towards the wrong element. This can be considered a software issue and a task is created for this.
A workaround for this is to also set the ServiceContext shape data on the child shape (the one where the Parameter reference is configured).