<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to change the color according to the batch ? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-the-color-according-to-the-batch/m-p/13507804#M21522</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.1.4 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: ;"&gt;Hi, please do advice. &lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: ;"&gt;I have selected &lt;SPAN style="color: rgb(51, 51, 51); font-family: ;"&gt;On Creation &amp;gt; visual &amp;gt; set colour by case at the Source1 but &lt;SPAN style="color: rgb(51, 51, 51); font-family: ;"&gt;I'm unable to separate box colour according to the ItemName. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1636676955995.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1508081iE799D114EC571281/image-size/large?v=v2&amp;amp;px=999" role="button" title="1636676955995.png" alt="1636676955995.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;I have selected port by case at Queue1 but the ItemName arrive at queue2 is mixed.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="45845-1636599955916.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1508082i802D835205A0B59D/image-size/large?v=v2&amp;amp;px=999" role="button" title="45845-1636599955916.png" alt="45845-1636599955916.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I want each queue2,3,4 and 5 have same batch colour according to the ItemName.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1636677084915.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1508083i3B7CC20305379415/image-size/large?v=v2&amp;amp;px=999" role="button" title="1636677084915.png" alt="1636677084915.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: ;"&gt;Please do advice how to change the color according to the batch and make the same batch in each queue.&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/45882-11-nov-autosave.fsm" target="_blank"&gt;11 nov_autosave.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 12 Nov 2021 00:38:14 GMT</pubDate>
    <dc:creator>arvinddayvaa</dc:creator>
    <dc:date>2021-11-12T00:38:14Z</dc:date>
    <item>
      <title>How to change the color according to the batch ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-the-color-according-to-the-batch/m-p/13507804#M21522</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.1.4 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: ;"&gt;Hi, please do advice. &lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: ;"&gt;I have selected &lt;SPAN style="color: rgb(51, 51, 51); font-family: ;"&gt;On Creation &amp;gt; visual &amp;gt; set colour by case at the Source1 but &lt;SPAN style="color: rgb(51, 51, 51); font-family: ;"&gt;I'm unable to separate box colour according to the ItemName. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1636676955995.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1508081iE799D114EC571281/image-size/large?v=v2&amp;amp;px=999" role="button" title="1636676955995.png" alt="1636676955995.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;I have selected port by case at Queue1 but the ItemName arrive at queue2 is mixed.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="45845-1636599955916.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1508082i802D835205A0B59D/image-size/large?v=v2&amp;amp;px=999" role="button" title="45845-1636599955916.png" alt="45845-1636599955916.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I want each queue2,3,4 and 5 have same batch colour according to the ItemName.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1636677084915.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1508083i3B7CC20305379415/image-size/large?v=v2&amp;amp;px=999" role="button" title="1636677084915.png" alt="1636677084915.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN style="color: rgb(51, 51, 51); font-family: ;"&gt;Please do advice how to change the color according to the batch and make the same batch in each queue.&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/45882-11-nov-autosave.fsm" target="_blank"&gt;11 nov_autosave.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Nov 2021 00:38:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-the-color-according-to-the-batch/m-p/13507804#M21522</guid>
      <dc:creator>arvinddayvaa</dc:creator>
      <dc:date>2021-11-12T00:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the color according to the batch ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-the-color-according-to-the-batch/m-p/13507805#M21523</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Please consider to add another number label in Arrival Schedule table (picture 1). Then you can easily set a color by case by this new number label.&lt;/P&gt;&lt;P&gt;You can translate a string into a number and use this number then color by case, but this is not anyway smarter than a new number label&lt;/P&gt;&lt;PRE&gt;Array myNames = [“4644”,”5555”,”1111”,”0000”];
int colorCase = myNames.&lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/21.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Array.html#Method-indexOf" target="_blank"&gt;indexOf&lt;/A&gt;(item.name);
// parse variable colorCase into &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/21.1/Reference/CodingInFlexSim/WritingLogic/#flow" target="_blank"&gt;logical switch statement&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;you can do a similar approach by global table in conjunction with the method &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/21.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Table.html#Method-getValueByKey" target="_blank"&gt;getValueByKey&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or you do it in a global list which you fill by push arguments. The 1st push argument is your name. The push value is just order number  (1, 2, 3,…). Then you can query for the order number by name Argument.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Nov 2021 06:00:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-the-color-according-to-the-batch/m-p/13507805#M21523</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2021-11-12T06:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the color according to the batch ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-the-color-according-to-the-batch/m-p/13507806#M21524</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Collect your batches in queue2 to queue5. You send the items by the new number label to port.&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Nov 2021 06:10:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-the-color-according-to-the-batch/m-p/13507806#M21524</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2021-11-12T06:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the color according to the batch ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-the-color-according-to-the-batch/m-p/13507807#M21525</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/461/joerg.v.html" nodeid="461"&gt;@Joerg Vogel&lt;/A&gt; ,in my case I have more than 700 datas. I'll include all the data at the ItemName and Quantity at the source1. &lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="45893-1636676955995.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1508080i1A651674B907180E/image-size/large?v=v2&amp;amp;px=999" role="button" title="45893-1636676955995.png" alt="45893-1636676955995.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;Would you mind to show me the steps? &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Nov 2021 06:53:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-the-color-according-to-the-batch/m-p/13507807#M21525</guid>
      <dc:creator>arvinddayvaa</dc:creator>
      <dc:date>2021-11-12T06:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the color according to the batch ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-the-color-according-to-the-batch/m-p/13507808#M21526</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;If Your arrivals exceed immense the number of item names, then you are better of with an indirect approach to set the color number value in a label by an On Exit event or trigger by look up a global table or global list.&lt;BR /&gt;The easiest way to get a number value would be to rename the &lt;EM&gt;row header name &lt;/EM&gt;of a global table to match with the item name. Then you can read the value.&lt;/P&gt;&lt;PRE&gt;yourGlobalTable[item.name][1]&lt;/PRE&gt;&lt;P&gt;You could parse this statement directly into Color by Case, too.&lt;/P&gt;&lt;P&gt;Edit: Otherwise set in picture 1 labels to 2 and fill the new column in each row with a number value. Exchange the name of the column perhaps to a more suitable name. &lt;BR /&gt;If you have 700 different products then you should think about to add an own color pallet. &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Nov 2021 07:40:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-change-the-color-according-to-the-batch/m-p/13507808#M21526</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2021-11-12T07:40:06Z</dc:date>
    </item>
  </channel>
</rss>

