Calling a supergenie from another supergenie

Hello,

I created a genie that open (when I click on it) a popup page where I programmed some stations and when I click on a particular station I need to open one more popup with the related settings.

In the genie I pass every tags with the Genie Sobstitutions. For example:

Station1 : Name = PS1 Value = %PressureStation1% - Name = SS1 Value = %SpeedStation1% - Name = TS1 Value = %TemperatureStation1%

Station2 : Name = PS2 Value = %PressureStation2% - Name = SS2 Value = %SpeedStation2% - Name = TS2 Value = %TemperatureStation2%

Station3 . Name = PS3 Value = %PressureStation3% - Name = SS3 Value = %SpeedStation3% - Name = TS3 Value = %TemperatureStation3%

etc

The first popup is configured with the below dynamic association:

Station 1 : ?PS1? - ?SS1? - ?TS1?

Station 2 : ?PS2? - ?SS2? - ?TS2?

Station 3 : ?PS3? - ?SS3? - ?TS3?

Now I need to open another popup by clicking on each station and shows on it the related data.

How can create another dynamic association in order to open the same popup dynamically linked to the proper station?

Thank you

Marco

Parents
  • You can use AssChain() or one of the related functions to transfer all the associations from the main Super Genie to the station popup. However, the station popup would have to figure out which set of station tags to use. Another option is to write a Cicode function to call AssGetProperty() to read what tag name or constant is associated with each of the station tags on the main SG and associate them with the next popup using the Ass() command.

    If you have structured tag names, you should be able to just associate the station ID or the beginning of the tagnames with the station popup.  That's known as a partial association. Then in the station popup, you use the associations like: ?StationID?_Pressure, ?StationID?_Speed, and ?StationID?_Temp (assuming your tags are named like Station1_Temp, Station1_Pressure, Station2_Temp, etc). Another option is to just associate the equipment name with the popup if you are using Equipment definitions in your project. See the help page: Graphics Builder > Dynamic Associations > Define Dynamic Associations

Reply
  • You can use AssChain() or one of the related functions to transfer all the associations from the main Super Genie to the station popup. However, the station popup would have to figure out which set of station tags to use. Another option is to write a Cicode function to call AssGetProperty() to read what tag name or constant is associated with each of the station tags on the main SG and associate them with the next popup using the Ass() command.

    If you have structured tag names, you should be able to just associate the station ID or the beginning of the tagnames with the station popup.  That's known as a partial association. Then in the station popup, you use the associations like: ?StationID?_Pressure, ?StationID?_Speed, and ?StationID?_Temp (assuming your tags are named like Station1_Temp, Station1_Pressure, Station2_Temp, etc). Another option is to just associate the equipment name with the popup if you are using Equipment definitions in your project. See the help page: Graphics Builder > Dynamic Associations > Define Dynamic Associations

Children
No Data