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
|
|||
|
|||
String as label of a flowitem
Hello,
I import data from an excel file to fill the schedule table in a source with the labels for the flowitems. Some of the data are stored as text in the excel file. I want to have them as text in the label of the flowitems too. I import these numbers as text and also the label of the flowitem is definded as text. The schedule of the source shows me the text correct. But after generating the flowitems the labels of the flowitems are changed to number cells and the value is 0.00 and no text values are stored as label. Why does this happen? |
#3
|
||||
|
||||
Hi Matthias,
This does happen because it is implemented this way in the source. In a sequence and a schedule it internally adds a numeric label when a flowitem is created. However, you can overwrite this again on for instance the OnExit trigger of your source. The string data is still in your source, you just have to substract is and overwrite your label. I've attached a simple model in which I've altered the OnExit of the source. Good luck! Martijn |
The Following 2 Users Say Thank You to Martijn van Oostenbrugge For This Useful Post: | ||
Matthias Hofmann (09-23-2008) |
Thread | Thread Starter | Forum | Replies | Last Post |
Flowitem Bin and Media Files | Martijn van Oostenbrugge | Q&A | 10 | 09-04-2008 09:13 AM |
IF with a String | Gavin Douglas | Q&A | 1 | 07-14-2008 12:36 PM |
Checking to see if a label exists | Paul Dowling | Q&A | 3 | 04-28-2008 11:03 PM |
Pay attention to flowitem references | Iulian Marin Ion | Q&A | 5 | 12-09-2007 04:06 PM |
Customizing Flowitem Attributes - a quest for the flowitem with the fewest attributes | Cliff King | Tips and Tricks | 0 | 11-22-2007 12:22 PM |