<?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 Re: The way to use item label in Combiner object... in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/the-way-to-use-item-label-in-combiner-object/m-p/13519614#M30811</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/1092/rod.d.html" nodeid="1092"&gt;@rod &lt;/A&gt;&lt;/P&gt;&lt;P&gt;Rod,&lt;/P&gt;&lt;P&gt;I modified the fields (and added one) in the OnEntry code of the Combiner to Set a Label.  This sets the tote labels to the same label values as the last flowitem to come in through port 2.  Is this what you were looking to do?&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/attachments/2331-rotomolding-2.fsm"&gt;rotomolding-2.fsm&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Sep 2016 18:09:43 GMT</pubDate>
    <dc:creator>jeff_nordgren</dc:creator>
    <dc:date>2016-09-09T18:09:43Z</dc:date>
    <item>
      <title>The way to use item label in Combiner object...</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/the-way-to-use-item-label-in-combiner-object/m-p/13519611#M30808</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 7.7.4 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;hi everyone, I want to set the label of the combined item of combiner to be dependent on the flow item from port 2. One palette comes from the port 1 and variable flow items (batch size) with same label name from port 2 and then they are packed. When the packed item palette exit, the label of the packed pallette should be set to be same with the flow items label from port 2. For example, if the label of flow items from port 2 is row_reference:1 running_number:2 , the label of the packed item should be row_reference: 1 running_number:2. I tried this function :&lt;/P&gt;
&lt;P&gt;setlabelnum(item,"labelName", getlabelnum(first(item),"labelName")) on combiner_entry but it doesn't return me a value.&lt;/P&gt;How can I control it?
&lt;A href="https://answers.flexsim.com/storage/attachments/2274-rotomolding-2.fsm"&gt;rotomolding-2.fsm&lt;/A&gt;</description>
      <pubDate>Wed, 07 Sep 2016 14:26:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/the-way-to-use-item-label-in-combiner-object/m-p/13519611#M30808</guid>
      <dc:creator>rod_dibanda</dc:creator>
      <dc:date>2016-09-07T14:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: The way to use item label in Combiner object...</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/the-way-to-use-item-label-in-combiner-object/m-p/13519612#M30809</link>
      <description>&lt;P&gt;Part of the problem is setlabelnum() as a function doesn't return anything, it DOES something.  (In this case it sets a label value)  If you want a function to RETURN the value of a label, use the getlabel() function.

I couldn't understand what you were trying to do with the increment of "Row_Reference" in the On Exit trigger.   But if you want the tote's label's values to be the same as on one of the items, then you'll set that in the On Exit trigger.  It will look something like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2278-combineronexit.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1494085i330F5668F7E6E13D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2278-combineronexit.png" alt="2278-combineronexit.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In this case I just had it grab the label of the first item in the packed tote (using the first() function)  But you could use rank() if you needed to grab a different item.  I reattached your model below.&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/temp/2279-2274-rotomolding-2.fsm"&gt;2274-rotomolding-2.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2016 15:54:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/the-way-to-use-item-label-in-combiner-object/m-p/13519612#M30809</guid>
      <dc:creator>sam_stubbsYXX86</dc:creator>
      <dc:date>2016-09-07T15:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: The way to use item label in Combiner object...</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/the-way-to-use-item-label-in-combiner-object/m-p/13519613#M30810</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;@ &lt;A rel="nofollow" href="https://answers.flexsim.com/users/614/samstubbs.html"&gt;Sam Stubbs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I want to go further, I would like a dynamic process. for example tote 1 will take label reference (Row_reference:1) from item flow 1 tote 2 will take label reference (Row_reference:2) from item flow 2 &lt;/P&gt;
&lt;P&gt;tote 3 will take label reference (Row_reference:3) from item flow 3 and so one. it's not possible to do this with the functions: first and rank. Both functions will give one &lt;/P&gt;
&lt;P&gt;item flow's label reference on all the totes&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2016 08:46:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/the-way-to-use-item-label-in-combiner-object/m-p/13519613#M30810</guid>
      <dc:creator>rod_dibanda</dc:creator>
      <dc:date>2016-09-08T08:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: The way to use item label in Combiner object...</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/the-way-to-use-item-label-in-combiner-object/m-p/13519614#M30811</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/1092/rod.d.html" nodeid="1092"&gt;@rod &lt;/A&gt;&lt;/P&gt;&lt;P&gt;Rod,&lt;/P&gt;&lt;P&gt;I modified the fields (and added one) in the OnEntry code of the Combiner to Set a Label.  This sets the tote labels to the same label values as the last flowitem to come in through port 2.  Is this what you were looking to do?&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/attachments/2331-rotomolding-2.fsm"&gt;rotomolding-2.fsm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 18:09:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/the-way-to-use-item-label-in-combiner-object/m-p/13519614#M30811</guid>
      <dc:creator>jeff_nordgren</dc:creator>
      <dc:date>2016-09-09T18:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: The way to use item label in Combiner object...</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/the-way-to-use-item-label-in-combiner-object/m-p/13519615#M30812</link>
      <description>&lt;P&gt;thanks, it's perfect as I wanted. The row_reference will be used in the next step of my model to get a value inside a table with a fix column. This value will be used as a process time.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Sep 2016 18:10:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/the-way-to-use-item-label-in-combiner-object/m-p/13519615#M30812</guid>
      <dc:creator>rod_dibanda</dc:creator>
      <dc:date>2016-09-09T18:10:43Z</dc:date>
    </item>
  </channel>
</rss>

