<?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 Quick Report Attribute Domain Sort Order resets to alphabetical in ArcGIS AppStudio Questions</title>
    <link>https://community.esri.com/t5/arcgis-appstudio-questions/quick-report-attribute-domain-sort-order-resets-to/m-p/878283#M3552</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using the quick report template, the add details page automatically sorts the attribute domain values alphabetically, rather than maintaining the order in the feature service. Also, the default values set for fields with attribute domains do not persist in the app. Any idea how to prevent the list from getting sorted and manually setting a default ("None")?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Feb 2018 21:53:59 GMT</pubDate>
    <dc:creator>WetherbeeDorshow</dc:creator>
    <dc:date>2018-02-02T21:53:59Z</dc:date>
    <item>
      <title>Quick Report Attribute Domain Sort Order resets to alphabetical</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/quick-report-attribute-domain-sort-order-resets-to/m-p/878283#M3552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using the quick report template, the add details page automatically sorts the attribute domain values alphabetically, rather than maintaining the order in the feature service. Also, the default values set for fields with attribute domains do not persist in the app. Any idea how to prevent the list from getting sorted and manually setting a default ("None")?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 21:53:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/quick-report-attribute-domain-sort-order-resets-to/m-p/878283#M3552</guid>
      <dc:creator>WetherbeeDorshow</dc:creator>
      <dc:date>2018-02-02T21:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Report Attribute Domain Sort Order resets to alphabetical</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/quick-report-attribute-domain-sort-order-resets-to/m-p/878284#M3553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can be done but requires some code changes at your end. Here are some steps (Pseudo code). Hope you find it useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Edit QR source code and Open quickreportapp.qml. Look for&amp;nbsp;&lt;/P&gt;&lt;P&gt;function initializeFeatureService(errorcode, errormessage, root, cacheName)&lt;BR /&gt;2) find&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;if(fields&lt;I&gt;.editable===true &amp;amp;&amp;amp; fields&lt;I&gt;.name!=root.typeIdField) {
 var f = fields&lt;I&gt;;
 app.fields.push(f);
 fieldsMassaged.push(f);
}&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;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/CODE&gt;&lt;I&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&amp;nbsp;In this code block,&lt;BR /&gt;read the var f, it should be something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;{
name: "opsstatus",
type: "esriFieldTypeString",
alias: "Operational Status",
domain: {
type: "codedValue",
name: "OperationalStatus",
codedValues: [
{
name: "Open",
code: "Open"
},
{
name: "Closed",
code: "Closed"
},
{
name: "Unknown",
code: "Unknown"
}
]
},
editable: true,
nullable: true,
length: 50
}&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;/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;P&gt;3)&amp;nbsp;Sort the codedvales in alphabetical order, put it back to this jsobject&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 11:02:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/quick-report-attribute-domain-sort-order-resets-to/m-p/878284#M3553</guid>
      <dc:creator>nakulmanocha</dc:creator>
      <dc:date>2021-12-12T11:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Report Attribute Domain Sort Order resets to alphabetical</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/quick-report-attribute-domain-sort-order-resets-to/m-p/878285#M3554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;we have introduced a new property,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;sortDomainByAlphabetical&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;in AppStudio 3.0 release&lt;SPAN style="background-color: #ffffff;"&gt;,&amp;nbsp;to give the ability to change the coded value domain in alphabetical order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can download the AppStudio 3.0 desktop from&lt;A href="http://doc.arcgis.com/en/appstudio/download/"&gt; here&lt;/A&gt;, creating a new Quick Report template, and c&lt;SPAN style="background-color: #ffffff;"&gt;lick on the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;Edit&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;icon to open Qt Creator when Quick Report app is selected, navigate to the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;appinfo.json&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;file, and change&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;sortDomainByAlphabetical&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; border: 0px; font-weight: bold;"&gt;&lt;STRONG&gt;true&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Tina&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 22:31:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/quick-report-attribute-domain-sort-order-resets-to/m-p/878285#M3554</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-04-24T22:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Report Attribute Domain Sort Order resets to alphabetical</title>
      <link>https://community.esri.com/t5/arcgis-appstudio-questions/quick-report-attribute-domain-sort-order-resets-to/m-p/878286#M3555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. We customized the form per Nakul's suggestion, but this will be handy!&lt;/P&gt;&lt;P&gt;Wetherbee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2018 19:51:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-appstudio-questions/quick-report-attribute-domain-sort-order-resets-to/m-p/878286#M3555</guid>
      <dc:creator>WetherbeeDorshow</dc:creator>
      <dc:date>2018-08-30T19:51:29Z</dc:date>
    </item>
  </channel>
</rss>

