<?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: Query problems for Pulling in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539365#M46515</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="33893-captura.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1504077i6B1BB3F85985C1D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="33893-captura.png" alt="33893-captura.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;So the code that I posted on the first post is not recognizing ítems' label on the query (?), because it is sending 46401 to different locations when it should be != to any processors (on the query at least is showing) with label already to be able to pull any item.&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 05 Nov 2020 06:51:07 GMT</pubDate>
    <dc:creator>ana_pc2</dc:creator>
    <dc:date>2020-11-05T06:51:07Z</dc:date>
    <item>
      <title>Query problems for Pulling</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539358#M46508</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.2.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello! How are you all?&lt;/P&gt;
 &lt;P&gt;I am trying to code a query but I think I am having some troubles with the format of the string since the label Name is a mix of numbers and letters (Example: 67HYK). And if I leave it with only numbers, the query works, so I am guessing thereis where my problema is. &lt;/P&gt;
 &lt;P&gt;The label Name is a concat of two other labels, for example: ítem.label1 = 67, and ítem.label2 = HYK, and then ítem.Name = 67HYK (ítem.label1 + ítem.label2)… just in case this could be the problem.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I am pulling from a list with label Name, and this is my idea of the code but I get an Invalid pull query error, so I guess the error could be on this line:&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt; string bname1 = Model.find("P1").Name;&lt;BR /&gt; string bname2 = Model.find("P2").Name;&lt;BR /&gt; string bname3 = Model.find("P3").Name;&lt;BR /&gt;&lt;BR /&gt; string queryStr = "WHERE Name !=" + bname1 + " AND Name !=" + bname2 + " AND Name !=" + bname3 + " ORDER BY age DESC";&lt;/P&gt;
 &lt;P&gt;... &lt;/P&gt;
 &lt;P&gt;pulled = list.pull(queryStr, 1, addToBackOrders ? 1 : 0, current, partitionId, (removeFromList ? 0 : LIST_DO_NOT_REMOVE) | LIST_RETURN_BACK_ORDER_IF_NOT_FULFILL);&lt;/P&gt;
 &lt;P&gt; &lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Any ideas to fix it??? Thanks! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt; &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Nov 2020 13:30:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539358#M46508</guid>
      <dc:creator>ana_pc2</dc:creator>
      <dc:date>2020-11-04T13:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Query problems for Pulling</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539359#M46509</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;The label Name is pushed to the list like this:&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Variant value = param(1);&lt;BR /&gt;Variant puller = param(2);&lt;BR /&gt;treenode entry = param(3);&lt;BR /&gt;double pushTime = param(4);&lt;/P&gt;
 &lt;P&gt;string final = value.label1+value.label2;&lt;/P&gt;
 &lt;P&gt;return /**/final/**direct*/;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Nov 2020 13:32:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539359#M46509</guid>
      <dc:creator>ana_pc2</dc:creator>
      <dc:date>2020-11-04T13:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Query problems for Pulling</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539360#M46510</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;And the label Name on Model.find("P1") comes from the same idea: Model.find("P1").label1 + Model.find("P1").label2 &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Nov 2020 13:37:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539360#M46510</guid>
      <dc:creator>ana_pc2</dc:creator>
      <dc:date>2020-11-04T13:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Query problems for Pulling</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539361#M46511</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/22797/anapc2.html" nodeid="22797"&gt;@ana.pc2,&lt;/A&gt; can you attach the model or an example model? I'm not sure if the problem is in the queryStr or in the pull code.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Nov 2020 14:49:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539361#M46511</guid>
      <dc:creator>aida_c2</dc:creator>
      <dc:date>2020-11-04T14:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Query problems for Pulling</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539362#M46512</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/22797/anapc2.html" nodeid="22797"&gt;@ana.pc2&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.&lt;/P&gt;&lt;P&gt;Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also &lt;A href="https://flexs.im/contact"&gt;contact your local FlexSim distributor&lt;/A&gt; for phone or email help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Nov 2020 15:54:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539362#M46512</guid>
      <dc:creator>jeff_nordgren</dc:creator>
      <dc:date>2020-11-04T15:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: Query problems for Pulling</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539363#M46513</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="33891-captura.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1504073iAF6CAA57A2D73293/image-size/large?v=v2&amp;amp;px=999" role="button" title="33891-captura.png" alt="33891-captura.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;So this query should be different for each processor… 46401 can only be in one (all same type goes to same location, not different:1_0a or 2_0a&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Nov 2020 06:42:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539363#M46513</guid>
      <dc:creator>ana_pc2</dc:creator>
      <dc:date>2020-11-05T06:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Query problems for Pulling</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539364#M46514</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;the query in this case will be : &lt;/P&gt;
 &lt;P&gt;string bname = current.label1 + current.label2;&lt;/P&gt;
 &lt;P&gt;string queryStr = /** \nQuery: *//***tag:query*//**/"WHERE B_P_Name == " + bname + " ORDER BY age DESC"/**/;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Nov 2020 06:45:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539364#M46514</guid>
      <dc:creator>ana_pc2</dc:creator>
      <dc:date>2020-11-05T06:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Query problems for Pulling</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539365#M46515</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="33893-captura.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1504077i6B1BB3F85985C1D7/image-size/large?v=v2&amp;amp;px=999" role="button" title="33893-captura.png" alt="33893-captura.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;So the code that I posted on the first post is not recognizing ítems' label on the query (?), because it is sending 46401 to different locations when it should be != to any processors (on the query at least is showing) with label already to be able to pull any item.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Nov 2020 06:51:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539365#M46515</guid>
      <dc:creator>ana_pc2</dc:creator>
      <dc:date>2020-11-05T06:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Query problems for Pulling</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539366#M46516</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Oh, I think I got it. In case someone need it, this is how I fixed it:&lt;/P&gt;
 &lt;P&gt;Basically I changed all labels to numbers and use Variant instead of string...&lt;/P&gt;
 &lt;P&gt;I still wonder why it doesn't work with a string (mix of letters and numbers).&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 05 Nov 2020 07:04:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539366#M46516</guid>
      <dc:creator>ana_pc2</dc:creator>
      <dc:date>2020-11-05T07:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Query problems for Pulling</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539367#M46517</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/22797/anapc2.html" nodeid="22797"&gt;@ana.pc2&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You don't want to use a string for a label that might be used as a lookup or in some other process/function.  Stings are a LOT slower than number are so it's better to use a number anyway.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 09 Nov 2020 17:34:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/query-problems-for-pulling/m-p/13539367#M46517</guid>
      <dc:creator>jeff_nordgren</dc:creator>
      <dc:date>2020-11-09T17:34:26Z</dc:date>
    </item>
  </channel>
</rss>

