I have simple DS dataSource I am try to do CRUD opperation to. I can insert an item just item. However, I select the item again on my grid and try to do an update. I am getting this error?
Do I need to manually set the primary key?
[ERROR] [apt] - 16:24:26.413:XRP3:WARN:RPCManager:Criteria received from the client for update operation is missing the following required unique and/or primary fields: [id]. Either provide all primary key fields or set allowMultiUpdate on the OperationBinding, response: {operationId: "esd_version_lk_update",
clientContext: Obj,
context: Obj,
transactionNum: 24,
httpResponseCode: 200,
httpResponseText: "//isc_RPCResponseStart-->[{queueStatus:-..."[331],
xmlHttpRequest: Obj,
transport: "xmlHttpRequest",
status: -9,
clientOnly: undef,
httpHeaders: Obj,
isStructured: true,
callbackArgs: null,
results: Obj,
queueStatus: -1,
isDSResponse: true,
invalidateCache: false,
data: "Criteria received from the client for up..."[210],
startRow: 0,
endRow: 0,
totalRows: 0}
<DataSource ID="esd_version_lk" serverType="sql" tableName="esd_version_lk">
<fields>
<field name="id" type="sequence" primaryKey="true" sequenceName="ESD_SEQ" hidden="true" />
<field name="version" type="text" required="true" length="30" title="Version"/>
<field name="description" type="text" required="true" length="100" title="Description"/>
<field name="status" type="enum" title="Status" required="true"
length="1">
<valueMap>
<value ID="A">Active</value>
<value ID="I">Inactive</value>
</valueMap>
</field>
<field name="user_added" type="text" length="30" hidden="true" />
<field name="user_added_date" type="datetime" hidden="true" />
<field name="user_modified" type="text" length="30"/>
<field name="user_modified_date" type="date" title="Modified Date" />
</fields>
<schema>ESD</schema>
<dbName></dbName>
</DataSource>
Do I need to manually set the primary key?
[ERROR] [apt] - 16:24:26.413:XRP3:WARN:RPCManager:Criteria received from the client for update operation is missing the following required unique and/or primary fields: [id]. Either provide all primary key fields or set allowMultiUpdate on the OperationBinding, response: {operationId: "esd_version_lk_update",
clientContext: Obj,
context: Obj,
transactionNum: 24,
httpResponseCode: 200,
httpResponseText: "//isc_RPCResponseStart-->[{queueStatus:-..."[331],
xmlHttpRequest: Obj,
transport: "xmlHttpRequest",
status: -9,
clientOnly: undef,
httpHeaders: Obj,
isStructured: true,
callbackArgs: null,
results: Obj,
queueStatus: -1,
isDSResponse: true,
invalidateCache: false,
data: "Criteria received from the client for up..."[210],
startRow: 0,
endRow: 0,
totalRows: 0}
<DataSource ID="esd_version_lk" serverType="sql" tableName="esd_version_lk">
<fields>
<field name="id" type="sequence" primaryKey="true" sequenceName="ESD_SEQ" hidden="true" />
<field name="version" type="text" required="true" length="30" title="Version"/>
<field name="description" type="text" required="true" length="100" title="Description"/>
<field name="status" type="enum" title="Status" required="true"
length="1">
<valueMap>
<value ID="A">Active</value>
<value ID="I">Inactive</value>
</valueMap>
</field>
<field name="user_added" type="text" length="30" hidden="true" />
<field name="user_added_date" type="datetime" hidden="true" />
<field name="user_modified" type="text" length="30"/>
<field name="user_modified_date" type="date" title="Modified Date" />
</fields>
<schema>ESD</schema>
<dbName></dbName>
</DataSource>
Comment