Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    operationBinding skipAudit = true is not working

    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!

    Click image for larger version

Name:	error.jpg
Views:	116
Size:	523.3 KB
ID:	263163




    #2
    What this actually seems to show is a problem while automatically creating the audit table. Is automatic audit table creation working for you with other operations where you have not set skipAudit?

    Please post the rest of the stack trace (please never trim this information off), and let us know your complete version (including build date).

    Comment

    Working...
    X