<?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: JavaScript Viewer - how to define the fields the wmJobTask brings back in ArcGIS Workflow Manager Questions</title>
    <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/javascript-viewer-how-to-define-the-fields-the/m-p/104530#M200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We found that the All Open Jobs general query was returning the Job ID twice. So in order to fix this I went into Workflow Manager Administrator and modified the SQL Query behind the All open jobs query. What I did was remove the WMX.JTX_JOBS.JOB_ID from the select query. Now the correct fields seem to be populating the correct locations in the table.&amp;nbsp; See below for my final syntax. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/82666_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2015 18:59:41 GMT</pubDate>
    <dc:creator>AlisonGaiser1</dc:creator>
    <dc:date>2015-04-07T18:59:41Z</dc:date>
    <item>
      <title>JavaScript Viewer - how to define the fields the wmJobTask brings back</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/javascript-viewer-how-to-define-the-fields-the/m-p/104529#M199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are using the lastest version of the Workflow Manager JavaScript viewer with our recently migrated 10.2.2 WMX database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, we have noticed that the order of the fields presented in the table at the bottom are not lining up with the with the results set. &lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/81317_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see in this picture, the Assigned To field is showing the Job Name field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then noticed that the Job_Name field was toggled off in the viewer. &lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/81318_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;When I toggle this on, nothing happens. If I proceed to toggle off the Assigned To field, I see the field disappear from the viewer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We think that the root of the problem is caused by the fact that when our app performs its wmJobTask.searchJobs task (WorkflowManager.js, line 938), the server returns 6 Field Names, the first two of which are the same “&lt;SPAN style="font-size: 9.0pt; font-family: Consolas; color: #222222; background: white;"&gt;"WMX.JTX_JOBS.JOB_ID"&lt;/SPAN&gt;“ field, for some reason. I can see the same thing if I query the end point of the service.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/81319_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The duplication is what throws off the whole grid, it seems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;My question is how we define the fields that the wmJobTask brings back from the server; It seems like these are set server-side. Or could there be something wrong with our database after our upgrade?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alison&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 18:16:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/javascript-viewer-how-to-define-the-fields-the/m-p/104529#M199</guid>
      <dc:creator>AlisonGaiser1</dc:creator>
      <dc:date>2015-04-02T18:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: JavaScript Viewer - how to define the fields the wmJobTask brings back</title>
      <link>https://community.esri.com/t5/arcgis-workflow-manager-questions/javascript-viewer-how-to-define-the-fields-the/m-p/104530#M200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We found that the All Open Jobs general query was returning the Job ID twice. So in order to fix this I went into Workflow Manager Administrator and modified the SQL Query behind the All open jobs query. What I did was remove the WMX.JTX_JOBS.JOB_ID from the select query. Now the correct fields seem to be populating the correct locations in the table.&amp;nbsp; See below for my final syntax. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/82666_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alison&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 18:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workflow-manager-questions/javascript-viewer-how-to-define-the-fields-the/m-p/104530#M200</guid>
      <dc:creator>AlisonGaiser1</dc:creator>
      <dc:date>2015-04-07T18:59:41Z</dc:date>
    </item>
  </channel>
</rss>

