<?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>Question Re: Way to pass an array to a global script function in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/way-to-pass-an-array-to-a-global-script-function/qaa-p/697589#M188680</link>
    <description>&lt;P&gt;To create a typed array, you must fill it with something - else the type system can't detect the type. Afterwards you can remote the unnecessary content:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var iconArray = [ICON_1]; // Initialize the array with dummy entry of correct type
iconArray.pop();

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The same trick works for all typed array - as long as you have at least one sample element.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2019 07:57:06 GMT</pubDate>
    <dc:creator>reiner_hille-doering</dc:creator>
    <dc:date>2019-08-27T07:57:06Z</dc:date>
    <item>
      <title>Way to pass an array to a global script function</title>
      <link>https://community.sap.com/t5/technology-q-a/way-to-pass-an-array-to-a-global-script-function/qaq-p/697583</link>
      <description>&lt;P&gt;Hi everybody,&lt;/P&gt;
  &lt;P&gt;Within Lumira designer I'm trying to pass an array to a global script function as an input parameter, but I don't find an possibility to set the parameter as an array.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;There are two workarounds I can think of: &lt;/P&gt;
  &lt;P&gt;1.) passing a string separated by comma and rebuilt it, but then I also have to create this string when calling the function. &lt;/P&gt;
  &lt;P&gt;2.) create a global variable as an array and adress it. But in my opinion this is not a good way to code.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Do you have any ideas on this?&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 08:43:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/way-to-pass-an-array-to-a-global-script-function/qaq-p/697583</guid>
      <dc:creator>marco_jehle</dc:creator>
      <dc:date>2018-07-03T08:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Way to pass an array to a global script function</title>
      <link>https://community.sap.com/t5/technology-q-a/way-to-pass-an-array-to-a-global-script-function/qaa-p/697584#M188675</link>
      <description>&lt;P&gt;Hi Marco,&lt;/P&gt;
  &lt;P&gt;What version of Lumira Designer are you running? In Lumira Designer 2.1 it is certainly possible to define array parameters for global script functions as shown in the screenshot below:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/168590-arrayparameters.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Mustafa.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 11:01:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/way-to-pass-an-array-to-a-global-script-function/qaa-p/697584#M188675</guid>
      <dc:creator>MustafaBensan</dc:creator>
      <dc:date>2018-07-03T11:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Way to pass an array to a global script function</title>
      <link>https://community.sap.com/t5/technology-q-a/way-to-pass-an-array-to-a-global-script-function/qaa-p/697585#M188676</link>
      <description>&lt;P&gt;Oh! *facepalm*&lt;/P&gt;
  &lt;P&gt;I was only looking at the variable typ, I missed the array column.&lt;/P&gt;
  &lt;P&gt;Thank you very much for your quick reply!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 11:19:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/way-to-pass-an-array-to-a-global-script-function/qaa-p/697585#M188676</guid>
      <dc:creator>marco_jehle</dc:creator>
      <dc:date>2018-07-03T11:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Way to pass an array to a global script function</title>
      <link>https://community.sap.com/t5/technology-q-a/way-to-pass-an-array-to-a-global-script-function/qaa-p/697586#M188677</link>
      <description>&lt;P&gt;You're welcome. I suspected that might be the case &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 11:22:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/way-to-pass-an-array-to-a-global-script-function/qaa-p/697586#M188677</guid>
      <dc:creator>MustafaBensan</dc:creator>
      <dc:date>2018-07-03T11:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Way to pass an array to a global script function</title>
      <link>https://community.sap.com/t5/technology-q-a/way-to-pass-an-array-to-a-global-script-function/qaa-p/697587#M188678</link>
      <description>&lt;P&gt;Hey Mustafa,&lt;/P&gt;
  &lt;P&gt;maybe you can help me again with this arrays.&lt;/P&gt;
  &lt;P&gt;I have function into which I pass an array of Icons and an icon to be removed from this array.&lt;/P&gt;
  &lt;P&gt;Return type of the function should be the "cleansed" Array. &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/165773-2018-07-03-14-24-11-edit-script-function.jpg" /&gt;&lt;/P&gt;How can I define the resultArray to be type of Icon?</description>
      <pubDate>Tue, 03 Jul 2018 12:26:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/way-to-pass-an-array-to-a-global-script-function/qaa-p/697587#M188678</guid>
      <dc:creator>marco_jehle</dc:creator>
      <dc:date>2018-07-03T12:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: Way to pass an array to a global script function</title>
      <link>https://community.sap.com/t5/technology-q-a/way-to-pass-an-array-to-a-global-script-function/qaa-p/697588#M188679</link>
      <description>&lt;P&gt;Did you found any solution for your problem?&lt;/P&gt;&lt;P&gt;Would be great to know, how to create typed arrays.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2019 15:40:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/way-to-pass-an-array-to-a-global-script-function/qaa-p/697588#M188679</guid>
      <dc:creator>former_member570782</dc:creator>
      <dc:date>2019-08-23T15:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Way to pass an array to a global script function</title>
      <link>https://community.sap.com/t5/technology-q-a/way-to-pass-an-array-to-a-global-script-function/qaa-p/697589#M188680</link>
      <description>&lt;P&gt;To create a typed array, you must fill it with something - else the type system can't detect the type. Afterwards you can remote the unnecessary content:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;var iconArray = [ICON_1]; // Initialize the array with dummy entry of correct type
iconArray.pop();

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The same trick works for all typed array - as long as you have at least one sample element.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 07:57:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/way-to-pass-an-array-to-a-global-script-function/qaa-p/697589#M188680</guid>
      <dc:creator>reiner_hille-doering</dc:creator>
      <dc:date>2019-08-27T07:57:06Z</dc:date>
    </item>
  </channel>
</rss>

