<?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: How to convert datatype from array/bundle to string in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596703#M91321</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P id="isPasted"&gt;Thank you for your reply.&lt;/P&gt;
 &lt;P&gt;I tried JSON methods and found that ASCII characters can be converted to string as intended.&lt;/P&gt;
 &lt;P&gt;However, multibyte characters are converted to Unicode escape sequences.&lt;span class="lia-inline-image-display-wrapper" image-alt="image.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521673iFC3DA9353698BF9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.jpg" alt="image.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;I understand that it can be restored with JSON.parse(), but I would like the user to be able to understand the contents by just looking at the string.&lt;/P&gt;
 &lt;P&gt;If there is a way to convert multibyte characters to string, please let me know.&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 12 Jan 2024 06:00:24 GMT</pubDate>
    <dc:creator>KSugai</dc:creator>
    <dc:date>2024-01-12T06:00:24Z</dc:date>
    <item>
      <title>How to convert datatype from array/bundle to string</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596695#M91313</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.0.13 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I am trying to display the label value as a string.&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/77428-image.jpg" target="_blank"&gt;image.jpg&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;Please tell me how to convert an array which has pointers and arrays as elements to string .&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Dec 2023 04:20:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596695#M91313</guid>
      <dc:creator>KSugai</dc:creator>
      <dc:date>2023-12-26T04:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert datatype from array/bundle to string</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596696#M91314</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Let me add details to my previous question.&lt;/P&gt;
 &lt;P&gt;I want to output nodes whose contents are Array or Bundle as if they were viewed on a tree display screen.&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/77430-labelsetteing.jpg" target="_blank"&gt;LabelSetteing.jpg&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/77414-labeldisplayed.jpg" target="_blank"&gt;LabelDisplayed.jpg&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Dec 2023 07:02:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596696#M91314</guid>
      <dc:creator>KSugai</dc:creator>
      <dc:date>2023-12-26T07:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert datatype from array/bundle to string</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596697#M91315</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/42894/ksugai.html" nodeid="42894"&gt;@KSugai&lt;/A&gt;, where would you display those elements? A dashboard, a graphical user interface or by window pop up showing a part of a sub tree of nodes?&lt;/DIV&gt;</description>
      <pubDate>Wed, 27 Dec 2023 07:02:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596697#M91315</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2023-12-27T07:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert datatype from array/bundle to string</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596698#M91316</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I would like to store them in a bundle table node on the tree and display them on the GUI.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Dec 2023 09:18:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596698#M91316</guid>
      <dc:creator>KSugai</dc:creator>
      <dc:date>2023-12-28T09:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert datatype from array/bundle to string</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596699#M91317</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;You can point the table widget to the bundle table - doesn't that work for you?  Post an example if not, explaining in more detail what you've like to see, vs. what is shown.&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Dec 2023 14:44:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596699#M91317</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-12-28T14:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert datatype from array/bundle to string</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596700#M91318</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/42894/ksugai.html" nodeid="42894"&gt;@ksugai&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.&lt;/P&gt;&lt;P&gt;If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can &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;/DIV&gt;</description>
      <pubDate>Thu, 04 Jan 2024 16:43:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596700#M91318</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-01-04T16:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert datatype from array/bundle to string</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596701#M91319</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;/P&gt;
 &lt;P id="isPasted"&gt;Sorry for the late reply due to the company being closed during the year-end and New Year holidays.&lt;/P&gt;
 &lt;P&gt;What I really want to do is store Array or Table type information in a bundle cell.&lt;/P&gt;
 &lt;P&gt;I know that Array or Table type can be directly stored in a non-bundle table. However, I would like to store them somehow in a bundle table since the data table may contain hundreds of thousands of rows.&lt;/P&gt;
 &lt;P&gt;To do this, I am thinking of converting Array and Table to string and storing them in bundle cells in the format that is displayed when returning Array or Table in the script console.&lt;/P&gt;
 &lt;span class="lia-inline-image-display-wrapper" image-alt="image.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521671i5D8AB2C4EE9BA011/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.jpg" alt="image.jpg" /&gt;&lt;/span&gt;
 &lt;P&gt;&lt;/P&gt;
 &lt;P&gt;I would like to know if there is an easy way to convert data to string like this.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Jan 2024 08:41:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596701#M91319</guid>
      <dc:creator>KSugai</dc:creator>
      <dc:date>2024-01-10T08:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert datatype from array/bundle to string</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596702#M91320</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You can try using the &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/JSON.html" target="_blank"&gt;JSON methods&lt;/A&gt;:&lt;/P&gt;&lt;PRE&gt;Array test=[1,2,3];
return JSON.stringify(test);&lt;/PRE&gt;&lt;P&gt;and &lt;/P&gt;&lt;PRE&gt;string s="[1,2,3]";
return JSON.parse(s);&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Jan 2024 12:36:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596702#M91320</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-01-10T12:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert datatype from array/bundle to string</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596703#M91321</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P id="isPasted"&gt;Thank you for your reply.&lt;/P&gt;
 &lt;P&gt;I tried JSON methods and found that ASCII characters can be converted to string as intended.&lt;/P&gt;
 &lt;P&gt;However, multibyte characters are converted to Unicode escape sequences.&lt;span class="lia-inline-image-display-wrapper" image-alt="image.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1521673iFC3DA9353698BF9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.jpg" alt="image.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;I understand that it can be restored with JSON.parse(), but I would like the user to be able to understand the contents by just looking at the string.&lt;/P&gt;
 &lt;P&gt;If there is a way to convert multibyte characters to string, please let me know.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Jan 2024 06:00:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596703#M91321</guid>
      <dc:creator>KSugai</dc:creator>
      <dc:date>2024-01-12T06:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert datatype from array/bundle to string</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596704#M91322</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You could concatenate with a delimeter into a single string to store in the bundle&lt;/P&gt;&lt;PRE&gt;Array a=["a","b","c"];
return a.join(",");   //  "a,b,c"&lt;/PRE&gt;&lt;P&gt;and then when you need the array of values use the string method 'split' to generate the array.&lt;/P&gt;&lt;PRE&gt;string s="a,b,c";
return s.split(",");   //  ["a","b","c"]&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 12 Jan 2024 14:08:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596704#M91322</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-01-12T14:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert datatype from array/bundle to string</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596705#M91323</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thank you for your reply.&lt;/P&gt;
 &lt;P&gt;I was able to display the string as intended.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Jan 2024 10:05:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-convert-datatype-from-array-bundle-to-string/m-p/13596705#M91323</guid>
      <dc:creator>KSugai</dc:creator>
      <dc:date>2024-01-16T10:05:55Z</dc:date>
    </item>
  </channel>
</rss>

