Getting an object from a different session with the Select widget [message #1850223] |
Tue, 22 February 2022 07:55  |
Simon Tulia Messages: 14 Registered: January 2022 |
Junior Member |
|
|
Hello all,
In my graphical model, I am able to create two kinds of items: ActualItem and PointerItem. The PointerItem has a reference to the ActualItem in my metamodel. When the user creates a PointerItem in the editor, a dialog box which includes a selection widget pops up. The user can select any ActualItem as a reference by using the selection widget. The user can also select an ActualItem from a model in a different Session (I will call these ActualItems as remote items from now on). I need to call a service function after selecting the ActualItem for a PointerItem. Until now, everything was OK, but the things started to be a bit complicated during the execution of the service function. I want to save the Session information of the remote item in somewhere in Java code. However, I cannot do it by using the reference attribute of the PointerItem, because it is a clone of the actual object. So, the session information is the information about the current session, not the external one. In short, I cannot access any data about the external Session. I tried to access the remote item by adding operations to the select widget in my .odesign file, but it did not work. Is there any solution or trick that can help me to figure out this problem.
Thanks in advance.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01707 seconds