ATTENTIONThis 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 |
#1
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
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
|
|||
|
|||
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
|
|||
|
|||
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 |