How to replace links/indexes in fuctions called from substituted screens?

How to replace links/indexes in fuctions called from substituted screens?

Hi @all, I have created a screen (s1) containing screen elements related to variables. This screen is opened by a function (f1) with an indexed configuration. This function is called by a navigation context with a parameter for substitution. I have created a second screen (s2) with additional information related to the same variables set as in the first screen. Evenly this screen is also opened by another function (f2) with an indexed configuration. There is a button control in screen s1 linked with the function f2 for open the second screen. But using this button no substitution for variables are made. Example: Screen s1 contains an element using a variable named "Pump1". Function f1 replaces "Pump1" with {PARAM}. From a navigation the function f1 is called with parameter for substitution "Pump2", "Pump3" etc. So the screen s1 is showing information from Pump2 etc. (instead from Pump1) Screen s1 contains a button control which calls function f2 to open screen s2 and has a substitution parameter. Screen s2 contains an element using a variable named "Pump1". Function f2 replaces "Pump1" with {PARAM} in the same way as of f1 done. [what probably is the wrong point] By pressing the button on screen s1 (calling function f2) the screen s2 is opened without substituted variables for "Pump2" ("Pump1" variable is used instead). How to this task? I can sketch a draw if you cannot imagine what I have meant by description. Thank you for any input! Kindly Jens

This is a migrated post! Originally posted on 28.11.2018 by user jensramlow. Please be aware that information can be outdated.

    Disclaimer

    This document governs the use of our Community Forum. By registering and using the platform, you accept these conditions.

    The COPA-DATA Community Forum serves to encourage the exchange of information and experience about the zenon software between forum users respectively zenon users.

    Please mind that any published information on the Community Forum is the subjective opinion and view based on the experience and the level of knowledge of the author. COPA-DATA does not overtake any responsibility for the content and the accuracy of the shared information.

    Users of the Community Forum are encouraged to share only well-founded experiences and to point out any risks associated with the implementation of proposed solutions to problems. COPA-DATA at its absolute discretion, reserves the right to moderate the forum. In this connection COPA-DATA may remove any information containing false facts, potentially dangerous solutions, bad language or content that may insult, degrade or discriminate others. COPA-DATA may block a non-complying user from forum access if the user violated this provision.

    COPA-DATA reserves the right to change this document from time to time at own discretion.


    Ing. Punzenberger COPA-DATA GmbH
    Karolingerstraße 7b · 5020 Salzburg · Austria
    www.copadata.com