<?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: Initially populate Global List from database in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500836#M16074</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I appreciate a lot the efffort and the attention paying to this topic.&lt;BR /&gt;&lt;BR /&gt;The added code I have also try but I do not "arrive" to the labels, thats my problem.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30791-1594370367068.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1502920i1B805144A233B0B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="30791-1594370367068.png" alt="30791-1594370367068.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 10 Jul 2020 08:40:50 GMT</pubDate>
    <dc:creator>xabier_a</dc:creator>
    <dc:date>2020-07-10T08:40:50Z</dc:date>
    <item>
      <title>Initially populate Global List from database</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500826#M16064</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;My concern is how to populate a Global List with labels from the information of a database.&lt;BR /&gt;I have been able to do with a global table and also in a Global List with an itemflow element, but no way to add rows/lines in a Global List without creating an item. The problem is that the items appear in the model&lt;BR /&gt;Is there another way to populate (add rows/lines) a Global List without creating an item?&lt;BR /&gt;(Ah! I am also going to repopulate the Global List during the simulation)&lt;BR /&gt;Any help will be appreciated.&lt;BR /&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/30741-globallist.fsm" target="_blank"&gt;GlobalList.fsm&lt;/A&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Jul 2020 15:48:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500826#M16064</guid>
      <dc:creator>xabier_a</dc:creator>
      <dc:date>2020-07-09T15:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Initially populate Global List from database</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500827#M16065</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/23756/xabiera.html" nodeid="23756"&gt;@Xabier A&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;What kind of information are you storing in the list? I think lists are great for storing items, locations, etc., but in your case, you might be able to just store the information you need in a Global Table. Have you looked at that?&lt;/P&gt;&lt;P&gt;If you want to stick with the list, you could consider using the "Initial Content" to add things to the list at the beginning of the model. But again, these entries would generally be items or objects of sorts and not just information.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30728-initial-content-list.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1502911iC1586952A0A1EE3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="30728-initial-content-list.png" alt="30728-initial-content-list.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Jul 2020 16:13:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500827#M16065</guid>
      <dc:creator>tanner_p</dc:creator>
      <dc:date>2020-07-09T16:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Initially populate Global List from database</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500828#M16066</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;To answer your question about adding rows/lines without creating an item: you can use an On Reset trigger for the model. Just another idea.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30734-on-reset-model-trigger.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1502913iB2E31F26DF272201/image-size/large?v=v2&amp;amp;px=999" role="button" title="30734-on-reset-model-trigger.png" alt="30734-on-reset-model-trigger.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Jul 2020 16:15:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500828#M16066</guid>
      <dc:creator>tanner_p</dc:creator>
      <dc:date>2020-07-09T16:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Initially populate Global List from database</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500829#M16067</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thanks for the answer.&lt;/P&gt;
 &lt;P&gt;What I know to do in Flexsim is: create a source schedule with a table that I push to a list that is used by an operator to do the pickings from a rack (pull). The info is bay and level.&lt;/P&gt;
 &lt;P&gt;I know how to populate a global table with the info from a database.&lt;/P&gt;
 &lt;P&gt;My problem is, or I create a global list and populate it with the info of the database to use the rest of the code(my first question). Or another one that is how to do pickings with the info of a global table from a process flow.&lt;/P&gt;
 &lt;P&gt;Remember that I am going to repopulate the list during simulation.&lt;/P&gt;
 &lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Jul 2020 17:01:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500829#M16067</guid>
      <dc:creator>xabier_a</dc:creator>
      <dc:date>2020-07-09T17:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Initially populate Global List from database</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500830#M16068</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;This idea of order picking is commonly modeled using Process Flow.&lt;/P&gt;&lt;P&gt;I created an example that populates a list using Process Flow tokens. You can make this as elaborate as you want, assigning bay, level, slots, types, etc. to the items. The key is that the items are pushed to a list.&lt;/P&gt;&lt;P&gt;Then, the operator pulls the items from a list (you can pull based on certain bays, slots, etc. using the list query feature) and unloads them at a queue or other destination.&lt;/P&gt;&lt;P&gt;This is a basic model, but is this what you're after?&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/temp/30752-globallist-1-1.fsm" target="_blank"&gt;globallist (1)_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Jul 2020 17:35:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500830#M16068</guid>
      <dc:creator>tanner_p</dc:creator>
      <dc:date>2020-07-09T17:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: Initially populate Global List from database</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500831#M16069</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thanks for the effort.&lt;BR /&gt;&lt;BR /&gt;Sorry, this is the example I have already "coded" (something similar). I have already done this example, is what I have tried to explain previously.&lt;BR /&gt;&lt;BR /&gt;What I need is the first step: how to populate the list (the one you use in your example) with the information from a database. For this issue, in the model I have provided, I have tried to create a row/line to insert into a global list using flexsim in several ways but no one works properly. The only one that works is the one that creates an itemFlow, inswrts it in the list but draws it in the model. My problem to solve is:&lt;BR /&gt;&lt;BR /&gt;1.- How to insert a row/line into a global list with the information brought from a database using flexscript. (See the tries in the model). Remember that Iam going to populate it during simulation time.&lt;BR /&gt;2.- If the previous one doesn't work, I have successed populating a global table with the information of a database but I can't link it to a list (I have read that is not possible).&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Jul 2020 21:29:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500831#M16069</guid>
      <dc:creator>xabier_a</dc:creator>
      <dc:date>2020-07-09T21:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Initially populate Global List from database</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500832#M16070</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;If your list value is an item, you need an item in your model. Then you must create one. If your database has got an ID for every product, then you can push this ID as a value onto a list. But then this is not automatically an item. It is still an ID. If you want to get an item, then you create one in your model by this ID.     &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Jul 2020 06:43:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500832#M16070</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2020-07-10T06:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Initially populate Global List from database</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500833#M16071</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;"you can push this ID as a value ", I think that this is what Iam asking for, try to push "something" to a List but Iam not able.&lt;/P&gt;
 &lt;P&gt;Sorry for my lack of knowledge.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Jul 2020 06:50:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500833#M16071</guid>
      <dc:creator>xabier_a</dc:creator>
      <dc:date>2020-07-10T06:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Initially populate Global List from database</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500834#M16072</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;If you need additional fields then you should fill those as push arguments.&lt;/P&gt;&lt;P&gt;see method &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/20.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/List.html#Method-push" target="_blank"&gt;push&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and you can set those fields on the &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/20.0/Reference/Tools/GlobalLists/Fields/" target="_blank"&gt;fields tab&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Jul 2020 08:20:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500834#M16072</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2020-07-10T08:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Initially populate Global List from database</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500835#M16073</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;If you want a total independent list similar to a table, you can do this with push arguments. The value can be anything. A number is just fine.&lt;/P&gt;&lt;PRE&gt;List(“myList”).push(1,0,“aText“,2.345)&lt;/PRE&gt;&lt;P&gt;1 = the value, as standard you find often here item, but it can be anything&lt;/P&gt;&lt;P&gt;0 = partition ID&lt;/P&gt;&lt;P&gt;“aText” = first push argument as string&lt;/P&gt;&lt;P&gt;2.345 = second push argument as floating number&lt;/P&gt;&lt;P&gt;You need to &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/20.0/Reference/Tools/GlobalLists/Fields/#adding" target="_blank"&gt;Add Fields&lt;/A&gt; in your list as Push Arguments &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Jul 2020 08:30:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500835#M16073</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2020-07-10T08:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: Initially populate Global List from database</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500836#M16074</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I appreciate a lot the efffort and the attention paying to this topic.&lt;BR /&gt;&lt;BR /&gt;The added code I have also try but I do not "arrive" to the labels, thats my problem.&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30791-1594370367068.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1502920i1B805144A233B0B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="30791-1594370367068.png" alt="30791-1594370367068.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Jul 2020 08:40:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500836#M16074</guid>
      <dc:creator>xabier_a</dc:creator>
      <dc:date>2020-07-10T08:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Initially populate Global List from database</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500837#M16075</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;But there are different types of fields you can add:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30792-push-arguments.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1502921i39E08C2A555732BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="30792-push-arguments.png" alt="30792-push-arguments.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="30785-list-add-push-argument.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1502922iBEE5FAA03D920996/image-size/large?v=v2&amp;amp;px=999" role="button" title="30785-list-add-push-argument.png" alt="30785-list-add-push-argument.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But you won't be able to change the caracter of the list anymore - a push arguments stays a push argument and it won't be a label. &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Jul 2020 09:01:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500837#M16075</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2020-07-10T09:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Initially populate Global List from database</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500838#M16076</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Another approach consists of pushing tokens onto the list. Later if you have items in your model you can push items. The label structure is the same. &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Jul 2020 11:06:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/initially-populate-global-list-from-database/m-p/13500838#M16076</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2020-07-10T11:06:00Z</dc:date>
    </item>
  </channel>
</rss>

