<?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 populate global variable in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/populate-global-variable/m-p/840407#M2526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working in the Quick report Template I can see how they are creating variables in the QuickReportApp.qml&lt;/P&gt;&lt;P&gt;These variables are set and reference through the application with &lt;SPAN style="color: #0000ff;"&gt;app&lt;/SPAN&gt;.&lt;EM&gt;somevariablename&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #800080;"&gt;App&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;id&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;app&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is sort of the opposite.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to set a variable inside UserCredentialsView.qml file and update the value back in the QuickReportApp.qml&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thus creating a GLOBAL variable that I can reference from Anywhere in my app.&lt;/P&gt;&lt;P&gt;My confusion is that all the Authentication qml files have the same ID so I can figure out how to call them individually&lt;/P&gt;&lt;P&gt;So this is why I am thinking of pushing the value back to the QuickReportApp.qml somehow...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I might be going about this wrong.&amp;nbsp; Anyone have better idea on how to create a global id that can be referenced by ANY qml file and that gets populated withing the UsercredentialsView.qml?????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Dec 2019 15:26:19 GMT</pubDate>
    <dc:creator>jaykapalczynski</dc:creator>
    <dc:date>2019-12-23T15:26:19Z</dc:date>
    <item>
      <title>populate global variable</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/populate-global-variable/m-p/840407#M2526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Working in the Quick report Template I can see how they are creating variables in the QuickReportApp.qml&lt;/P&gt;&lt;P&gt;These variables are set and reference through the application with &lt;SPAN style="color: #0000ff;"&gt;app&lt;/SPAN&gt;.&lt;EM&gt;somevariablename&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #800080;"&gt;App&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;{&lt;/PRE&gt;&lt;PRE&gt;&lt;SPAN style="color: #c0c0c0;"&gt;    &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;id&lt;/SPAN&gt;:&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN&gt;app&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is sort of the opposite.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to set a variable inside UserCredentialsView.qml file and update the value back in the QuickReportApp.qml&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thus creating a GLOBAL variable that I can reference from Anywhere in my app.&lt;/P&gt;&lt;P&gt;My confusion is that all the Authentication qml files have the same ID so I can figure out how to call them individually&lt;/P&gt;&lt;P&gt;So this is why I am thinking of pushing the value back to the QuickReportApp.qml somehow...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I might be going about this wrong.&amp;nbsp; Anyone have better idea on how to create a global id that can be referenced by ANY qml file and that gets populated withing the UsercredentialsView.qml?????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2019 15:26:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/populate-global-variable/m-p/840407#M2526</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2019-12-23T15:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: populate global variable</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/populate-global-variable/m-p/840408#M2527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;got it....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QuickReportApp.qml&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;    property string userCredentialsName&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On click of the Continue button I set this Public Variable in the UserCredentialsView.qml&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;            Button &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
                id&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; continueButton
                width&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;parent&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;width &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;2&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; displayScaleFactor&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                text&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;qsTr&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Continue"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

                onClicked&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;

                    &lt;SPAN class="comment token"&gt;// continue with the username and password&lt;/SPAN&gt;
                    &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;challenge&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                        challenge&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;continueWithUsernamePassword&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;usernameTextField&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;text&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; passwordTextField&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;text&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
                    rootUser&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;visible &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;false&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

                    app&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;userCredentialsName &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; usernameTextField&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;text&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

                &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
            &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:15:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/populate-global-variable/m-p/840408#M2527</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2021-12-12T10:15:20Z</dc:date>
    </item>
  </channel>
</rss>

