question

Jackie Ho avatar image
0 Likes"
Jackie Ho asked Adrian Haws edited

How to use the “Edit item” in Dashboard to control the row quantity in Table?

row-num.fsm

There is an Edit item in my model, and this Edit item is linked with a form that named as “control”.

I’d like to change the row qty. in Global table1 once click the Reset button, but the result appears the Model could changed the “node” in row of Global Table1, but there is no change in row of the Global Table1.

Kindly inform me how to amend this problem, thanks a lot!

FlexSim 7.7.4
global tabledashboardssettablesize
row-num.fsm (13.7 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Brandon Peterson avatar image
1 Like"
Brandon Peterson answered

Jackie,

Setting the rows variable of the global table will not accomplish what you are trying to do. Try changing this code:

setnodenum(node("/Tools/GlobalTables/GlobalTable1>variables/rows",model()),gettablenum("Control",1,1));

with this code:

settablesize("GlobalTable1", gettablenum("Control",1,1), gettablecols("GlobalTable1"));

I hope this helps,

Brandon

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.