AnsweredAssumed Answered

JavaScript Viewer - how to define the fields the wmJobTask brings back

Question asked by alison_ott on Apr 2, 2015
Latest reply on Apr 7, 2015 by alison_ott

We are using the lastest version of the Workflow Manager JavaScript viewer with our recently migrated 10.2.2 WMX database.

 

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.

 

As you can see in this picture, the Assigned To field is showing the Job Name field.

 

I then noticed that the Job_Name field was toggled off in the viewer.

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.

 

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 “"WMX.JTX_JOBS.JOB_ID"“ field, for some reason. I can see the same thing if I query the end point of the service.

 

The duplication is what throws off the whole grid, it seems.

 

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?

 

Thanks,

     Alison

Outcomes