We have an editable ListGrid where one field's editor gets values from a valueMap and is thus a picklist. After upgrading from version 5.5b2 to 5.5.1, the picklist doesn't display the new value after the value is changed; it reverts to the old value even though the update happened successfully on the server. I checked the behavior under 5.5rc1 and saw the same problem as in 5.5.1.
The entire ListGrid definition is a bit long to include here; below is a representative RPC update request payload, the corresponding response text, the XML datasource definition and the related ListGridField definition. The primary key field is 'compositeID' and the field we're updating in the request is 'overrideRightCode,' Let me know what other information would be helpful.
Thanks, Chris
Request payload:
Response Text:
Datasource definition:
ListGridField
The entire ListGrid definition is a bit long to include here; below is a representative RPC update request payload, the corresponding response text, the XML datasource definition and the related ListGridField definition. The primary key field is 'compositeID' and the field we're updating in the request is 'overrideRightCode,' Let me know what other information would be helpful.
Thanks, Chris
Request payload:
Code:
payload: { values:{ compositeID:"PermissionInstance|10000234|0|0|10000033", overrideRightCode:"G" }, operationConfig:{ dataSource:"IscDsPermission", operationType:"update" }, appID:"builtinApplication", operation:"IscDsPermission_update", oldValues:{ publicationCollectionID:0, compositeID:"PermissionInstance|10000234|0|0|10000033", overrideRightCode:"C", inheritedRightCode:"UNDEFINED", agreementID:10000234, typeOfUseID:10000033, overrideRightID:11238207, typeOfUseDescription:"EMAIL INTERNAL", publicationID:0, _selection_9:true }, criteria:{ compositeID:"PermissionInstance|10000234|0|0|10000033" } }
Code:
"//isc_RPCResponseStart-->[{"invalidateCache":false,"data":[{"publicationCollectionID":0,"compositeID":"PermissionInstance|10000234|0|0|10000033","overrideRightCode":"G","inheritedRightCode":"UNDEFINED","agreementID":10000234,"typeOfUseID":10000033,"overrideRightID":11238207,"typeOfUseDescription":"EMAIL INTERNAL","publicationID":0}],"endRow":0,"status":0,"isDSResponse":true,"totalRows":0,"startRow":0}]//isc_RPCResponseEnd"
Code:
<DataSource ID="IscDsPermission" serverType="generic"> <fields> <field name="compositeID" type="text" primaryKey="true" /> <field name="typeOfUseID" type="integer" /> <field name="overrideRightID" type="integer" /> <field name="agreementID" type="integer" /> <field name="publicationID" type="integer" /> <field name="publicationCollectionID" type="integer" /> <field name="overrideRightCode" type="text" /> <field name="inheritedRightCode" type="text" /> <field name="typeOfUseDescription" type="text" /> </fields> <serverObject lookupType="new" className="naples.web.isc.datasource.IscDsPermission" /> </DataSource>
Code:
this.overrideRightField = { name:"overrideRightCode", ID:"overrideRightField", title:"Assigned Right", editorValueMap:RightsEditor.getEditorMap(), editorType:"select", canEdit:true, modalEditing:true, sortNormalizer:"return recordObject.compositeID", editorProperties:{ controlStyle:"naplesRightPickerControl", textBoxStyle:"naplesRightPickerTextBox", editorEnter:"this.showPickList()", height:22, pickButtonHeight:18, showOver:true, pickListProperties:{ cellHeight:25 }, pickValue : function (arguments ) { this.Super("pickValue", arguments); this.grid.endEditing(); } } };
Comment