ATTENTION

This FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices.


flexsim.com

Go Back   FlexSim Community Forum > FlexSim Software > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 07-07-2008
Xavier Jackson's Avatar
Xavier Jackson Xavier Jackson is offline
Flexsim User
 
Join Date: Jun 2008
Posts: 20
Downloads: 11
Uploads: 0
Thanks: 21
Thanked 4 Times in 3 Posts
Rep Power: 147
Xavier Jackson is on a distinguished road
Question Updating Tables With A GUI

I have a GUI with a coldlink to a table and the link updates the number of columns in the table but it does not update the table. The table shows that the number of columns has been set but not the correct actual number of columns. I need to open the table and "apply" the new number of columns and I am wondering if there is a way I can apply the number of columns without accessing the global tables from the top menu.
__________________
Each morning after drudging through his morning routine the mild-mannered Xavier Jackson arrives at work and when he sits down at his computer it powers up and he becomes the great

Flexavier Jacksim

Optimizer Extraordinaire
The Following User Says Thank You to Xavier Jackson For This Useful Post:
sophia yao (07-09-2008)
  #2  
Old 07-07-2008
Brandon Peterson's Avatar
Brandon Peterson Brandon Peterson is offline
The Flexsim Consultant
 
Join Date: Jul 2007
Location: Salt Lake City, Utah
Posts: 382
Downloads: 29
Uploads: 6
Thanks: 192
Thanked 516 Times in 235 Posts
Rep Power: 490
Brandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant futureBrandon Peterson has a brilliant future
Default

Xavier,

I'm not sure what you mean when you say that it updates the number of columns but the table doesn't change. Are you using the settablesize() command? This command is the one that you should be using to set the size of a table. Worst case scenario you can always look at how it's done by Flexsim. Open the edit GUI for a global table and rght click the gray area around the name field. Click "View" -> "Explore Structure" and you will get a tree view that contains the tree of the table edit GUI. From there you can see how the GUI was set up and the code used to adjust the table.

Good Luck,
Brandon
__________________
thats not normal.
The Following User Says Thank You to Brandon Peterson For This Useful Post:
Xavier Jackson (07-07-2008)
  #3  
Old 07-07-2008
Xavier Jackson's Avatar
Xavier Jackson Xavier Jackson is offline
Flexsim User
 
Join Date: Jun 2008
Posts: 20
Downloads: 11
Uploads: 0
Thanks: 21
Thanked 4 Times in 3 Posts
Rep Power: 147
Xavier Jackson is on a distinguished road
Default

Thanks Brandon, The settablesize() command works but when I set the table size (number of columns specifically) my model still does not write to all of the columns. If I needed 14 columns then 12 I will get the number I want in all twelve, but If I needed 14 and then 16 I will get the first fourteen but the last two columns are blank
__________________
Each morning after drudging through his morning routine the mild-mannered Xavier Jackson arrives at work and when he sits down at his computer it powers up and he becomes the great

Flexavier Jacksim

Optimizer Extraordinaire
  #4  
Old 07-08-2008
tobias.biemueller tobias.biemueller is offline
Flexsim User
 
Join Date: Aug 2007
Location: Bielefeld, Germany
Posts: 42
Downloads: 22
Uploads: 0
Thanks: 23
Thanked 18 Times in 16 Posts
Rep Power: 164
tobias.biemueller is on a distinguished road
Default

Hi Xavier,

maybe check the cells, are this string or number fields? I dont know if this is the solution, but i know, that i have sometimes trouble with it.

Tobias
  #5  
Old 07-08-2008
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 773
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

If, for the additional columns, you explicitly include the datatype as the fourth parameter in settablesize it should work. DATATYPE_NUMBER and DATATYPE_STRING are normally used (1 and 2 respectively).

It looks like something has happened to settablesize as using just 3 parameters previously set the type of new columns as numeric. I will check the dev list and add it if necessary.

Last edited by Jason Lightfoot; 07-08-2008 at 01:16 AM. Reason: grammar


Thread Thread Starter Forum Replies Last Post
Search box in Time Tables etc. Nico Zahn Gripes and Goodies 9 06-16-2008 09:57 AM
Updating Labels Alexandre Ouellet Q&A 2 04-02-2008 06:55 AM
Updating Labels Naresh Yamani Q&A 7 03-28-2008 11:28 PM
Excel and global tables Bill Nordgren Q&A 2 10-15-2007 04:36 AM
Create tables on the fly AlanZhang Tips and Tricks 0 08-24-2007 06:01 PM


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.