Use a Tag Value From SystemLink to Set the Value of a Control in G Web Development Software

Updated Oct 25, 2023

Reported In

Software

  • G Web Development Software

Issue Details

We have a requirement to populate the default values of several controls when a G Web application starts, using the values that are stored in System  Link tags, how can we achieve this?

Solution

You can get the value of the System Link tag and assign it to a control by following these steps below.
  1. Right-click your numeric control and select create reference.
explorer_w8cEqaRy86.png
  1. Then, right-click the reference output and select Property Node
​​​​​​​explorer_02QIHDox5S.png
  1. Click in the Property Node drop-down menu and select Value.
explorer_2Oj7IIbxYW.png
  1. Right-click in the value output and select change to write.
explorer_ZNgyldMLmC.png
  1. Finally, wire the value indicator output (from your tag) to the value property input. 
explorer_6AsZN7RPei.png

With the steps mentioned above, you will be able to set the value of your control, using the value obtained from your tag. Your code should see like this: 
explorer_k6Xbc5eRhk.png