Version: smartgwtee-eval-13.0d
I have specify to skipAudit for an update operation:
<operationBinding operationId="updateSameVendorRef" operationType="update" allowMultiUpdate="true" skipAudit="true">
<customSQL>UPDATE STYLE set SHAPE = $values.SHAPE, GOLD = $values.GOLD, TYPE = $values.TYPE, STYLE_GROUP = $values.STYLE_GROUP,
INITIAL = $values.INITIAL WHERE VENDOR_REFERENCE = $values.VENDOR_REFERENCE;</customSQL>
</operationBinding>
Criteria criteria = new Criteria();
criteria.setAttribute("VENDOR_REFERENCE", vendorRef);
criteria.setAttribute("TYPE", form.getValue("TYPE"));
criteria.setAttribute("GOLD", form.getValue("GOLD"));
criteria.setAttribute("SHAPE", form.getValue("SHAPE"));
criteria.setAttribute("INITIAL", form.getValue("INITIAL"));
criteria.setAttribute("STYLE_GROUP", form.getValue("STYLE_GROUP"));
DSRequest requestProperties = new DSRequest();
requestProperties.setOperationId("updateSameVendorRef");
requestProperties.setCriteria(criteria);
ds.updateData(new Record(), null, requestProperties1);
Because the SQL statement will update multiple records, so I set to skip the audit.
However auditing still happened and I got the error!
I have specify to skipAudit for an update operation:
<operationBinding operationId="updateSameVendorRef" operationType="update" allowMultiUpdate="true" skipAudit="true">
<customSQL>UPDATE STYLE set SHAPE = $values.SHAPE, GOLD = $values.GOLD, TYPE = $values.TYPE, STYLE_GROUP = $values.STYLE_GROUP,
INITIAL = $values.INITIAL WHERE VENDOR_REFERENCE = $values.VENDOR_REFERENCE;</customSQL>
</operationBinding>
Criteria criteria = new Criteria();
criteria.setAttribute("VENDOR_REFERENCE", vendorRef);
criteria.setAttribute("TYPE", form.getValue("TYPE"));
criteria.setAttribute("GOLD", form.getValue("GOLD"));
criteria.setAttribute("SHAPE", form.getValue("SHAPE"));
criteria.setAttribute("INITIAL", form.getValue("INITIAL"));
criteria.setAttribute("STYLE_GROUP", form.getValue("STYLE_GROUP"));
DSRequest requestProperties = new DSRequest();
requestProperties.setOperationId("updateSameVendorRef");
requestProperties.setCriteria(criteria);
ds.updateData(new Record(), null, requestProperties1);
Because the SQL statement will update multiple records, so I set to skip the audit.
However auditing still happened and I got the error!
Comment