Javascript Viewer - Extended Properties

2984
2
Jump to solution
03-18-2016 08:40 AM
KOliver
New Contributor II

We are currently using the 10.3.1 ArcGIS Workflow Manager Javascript viewer. 

I have enabled "Extended Properties" for the Job Type, however, when completing the extended properties via the web viewer, they details as entered by the user are saving and then being replaced by the default values. 

Please note that the extended properties populate and save as expected on the desktop version of workflow manager for the same Job Type, user, etc.

From the Workflow Manager Administrator, the Job Type, Extended Properties settings:

From the Workflow Manager viewer, Extended Properties before update:

From the Workflow Manager viewer, Extended Properties after update.  Details are completed and "Update" is clicked:

Click off of the Extended Properties tab (back onto Workflow tab)

Click back onto the Extended Properties tab and all of the details as entered above are replaced by the default values (with the exception of the "Contact Name":

The value within the Extended Properties table within Oracle reflect the same information as above:

0 Kudos
1 Solution

Accepted Solutions
KOliver
New Contributor II

We have determined that this was a bug in the current version of the wmx viewer we were using (10.2.2).  It appears to have been fixed at 10.3.1.  The line in red is what we needed to add in order to have the Extended Properties saved when entering them through the javascript viewer for Workflow Manager.

In the ExtendedPropertiesItem.js, the line in red (line 284) was added.

getUpdateItem: function () {

//returns the data if its changed, null other wise

//also handles required flagging and invalid flagging

var field = this.field;

var data;

switch (this.displayType) {

case Enum.ExtendedPropertyDisplayType.TABLE_LIST:

case Enum.ExtendedPropertyDisplayType.DOMAIN:

data = field.get('item');

break;

default:

data = field.get('value');;

}

View solution in original post

0 Kudos
2 Replies
by Anonymous User
Not applicable

Hi K Oliver,

I will try to reproduce your issue this week.

Thanks,

Michael

0 Kudos
KOliver
New Contributor II

We have determined that this was a bug in the current version of the wmx viewer we were using (10.2.2).  It appears to have been fixed at 10.3.1.  The line in red is what we needed to add in order to have the Extended Properties saved when entering them through the javascript viewer for Workflow Manager.

In the ExtendedPropertiesItem.js, the line in red (line 284) was added.

getUpdateItem: function () {

//returns the data if its changed, null other wise

//also handles required flagging and invalid flagging

var field = this.field;

var data;

switch (this.displayType) {

case Enum.ExtendedPropertyDisplayType.TABLE_LIST:

case Enum.ExtendedPropertyDisplayType.DOMAIN:

data = field.get('item');

break;

default:

data = field.get('value');;

}

0 Kudos