Function inside a super genie(Pop-up)

Hi.

I'm trying to figure out how to re-use the variables inside the PopUpPage.

Here's a link to the function im trying to use inside my popup.

proscada.ru/ctkbase.en/resources/attachments/q4572/exec-guid36c264eab1aa4e048470d7d23cdeb0c2.ci

This simple function works in the genie but not in a super genie.

//MouseButtonDown

ExecEx("%Drawing%")

I've tried replacing the % sign with ? and lots of other ways, with no success. (The function still works if I just type in a "direct" path to open a folder., but I want to use a variable, that I can edit)

FUNCTION

PopUpPage(INT X,INT Y,INT Mode, STRING Drawing)

WinNewAt("!PopUpPage",X,Y,Mode);
SleepMS(25);
WinTitle("TITLE");

Got any ideas?

Thanks in advance.

Robin

Parents
  • perhaps the knowledgebase can help you?

    https://softwaresupportsp.aveva.com/#/okmimarticle/docid/tn6855

    Passing a String when using SuperGenie Association
    LEGACY TECH NOTE #
    4651


    SUMMARY

    How can I pass a String of Text using Super Genie Association, without it treating the substituted value as a Citect tag, and trying to substitute the value of the tag.

    This is useful when:

    * Some functions require the Tag name, not the Tag value
    * Sometime I want to pass in the heading of a SuperGenie, without saving this value to a STRING tag.

    SITUATION

    CitectSCADA 6.xx and above
    CitectHMI 6.xx and above


    ACTION

    In order to pass an actual String of text (not the value of a STRING tag) to a SuperGenie, you need to use the following format:

    " ' This is my Text String ' "

    (The spaces above are just to illustrate the " and ', so when you use this, without spaces, it will look like:)
    "'This is my Text String'"

    And on your SuperGenie, the text object must be set to the String type, with the substitution expression ?STRING 1? in the String expression field.

    i.e. to use the AssPage() Command to pass a string (in this case, the Name of a Trend):

    AssPage("SG_trend","'trend1'")

    NOTE: It is important to note the syntax. the SG_Trend is the name of the page, and is surrounded by " marks.
    NOTE: The Trend1 etc. are surrounded by " marks AND ' marks. This will use SuperGenie substitution to parse a string instead of a Tag Value. i.e. "'Trend1'"
Reply
  • perhaps the knowledgebase can help you?

    https://softwaresupportsp.aveva.com/#/okmimarticle/docid/tn6855

    Passing a String when using SuperGenie Association
    LEGACY TECH NOTE #
    4651


    SUMMARY

    How can I pass a String of Text using Super Genie Association, without it treating the substituted value as a Citect tag, and trying to substitute the value of the tag.

    This is useful when:

    * Some functions require the Tag name, not the Tag value
    * Sometime I want to pass in the heading of a SuperGenie, without saving this value to a STRING tag.

    SITUATION

    CitectSCADA 6.xx and above
    CitectHMI 6.xx and above


    ACTION

    In order to pass an actual String of text (not the value of a STRING tag) to a SuperGenie, you need to use the following format:

    " ' This is my Text String ' "

    (The spaces above are just to illustrate the " and ', so when you use this, without spaces, it will look like:)
    "'This is my Text String'"

    And on your SuperGenie, the text object must be set to the String type, with the substitution expression ?STRING 1? in the String expression field.

    i.e. to use the AssPage() Command to pass a string (in this case, the Name of a Trend):

    AssPage("SG_trend","'trend1'")

    NOTE: It is important to note the syntax. the SG_Trend is the name of the page, and is surrounded by " marks.
    NOTE: The Trend1 etc. are surrounded by " marks AND ' marks. This will use SuperGenie substitution to parse a string instead of a Tag Value. i.e. "'Trend1'"
Children
No Data