change the GUI Table's content by press the button

change the GUI Table's content by press the button

s1125413
Enthusiast Enthusiast
137 Views
1 Reply
Message 1 of 2

change the GUI Table's content by press the button

s1125413
Enthusiast
Enthusiast

Hello @moehlmann_fe  and FlexSim community

I trying to change the GUI Table's content by press the button, but the Table only linked the one table

Is any way to implement this function ?

 

Thank you in advance.

 

s1125413_2-1755777880873.png

 

 

 

 

 

 

0 Likes
Accepted solutions (1)
138 Views
1 Reply
Reply (1)
Message 2 of 2

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

It works over an indirect method.

The treenode reference to a global table data node is a value of some kind of storage node: a label, a treenode, a variable

Attached examble uses a label at a basic fixed resource object (BasicFR).

I called "label1".

Page1 Button gets a OnPress code snippet

Object BFR = Model.find("BasicFR1"); 
BFR.label1 = Table("Page1").as(treenode);

Page2 Button gets a OnPress code snippet very smiliar:

Object BFR = Model.find("BasicFR1"); 
BFR.label1 = Table("Page2").as(treenode);

Dashboard Control here you insert for Link:

MODEL:/BasicFR1>labels/label1+

 The plus sign is important to read the label value and executes to the referenced value.