How to Pass Strings from a Graphic Element to an Object Display using the Aspect View Invoker?
Hello,
I have a graphic element, which has a string input property "ip::D1String" with value "Auto". I've added an Aspect View Invoker to the element, and pointed it at an Object Display for the object type. This part works, and when I click on the graphic element on a page, it opens the Object Display in a popup window, and displays the correct name/description for the selected object.
Now I want to try to pass the string to the Object Display to be displayed in a text label.
On the Aspect View Invoker, I have set the "NumberOfNamedValues" property to 1, which created a new property on the Aspect View Invoker called "NamedValue1". This property has been set to "NamedValue("D1String", ip::D1String)".
Now I need to retrieve this parameter in the Object display that opens... however, creating an Input property called "D1String" on the Object Display does not load the value of ip::D1String from the graphic element (or at least, doesn't display it in the text label).
Does anyone know how to read the NamedValue in the newly opened graphic, so it can be used on that page?
Regards,
Energiser
Voted best answer
See the attached files for how to define a General Property with read/write permission. You could change the value from you graphic at runtime if needed, see the input field. You can use the value in your graphic in a simple text field or in the same way at your input property of your graphic element.
The main point is that the value is hosted at the object and not within the graphic!
/Erik
Answers
If I understand you right you try to transfer a input value from a graphic element to the object display. I don't think that it is possible this way. You need to host your value with the object. Try a "General Property" aspect at your object. You should be able to access a value in General Properties from your Object Display as well as from a graphics element.
/Erik
Go to your Object in the object structure. There you have an Aspect called "XXXX Type Definition". Go to Tap "Aspect Control". Unselect "Inherit to all instances" and Select "Copy to all Aspects"
In this way each instance of your object has its one general property and is no more inherited.
.

Add new comment