Announcement

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

    Question on BatchUploader

    We are using the latest SmartGWT EE release, and have a question re. the BatchUploader. It seems like in the visual builder that there is a "partial commit" attribute which can be set to alter the behavior to prompt or prevent upload of data where the certain rows have validation errors.

    Is there any way to set or use this feature on the Java side? There does not seem to be native method like setPartialCommit() or similar. We would like to prevent the upload of data unless all validation errors are resolved, instead of the default "partial" setting.

    Thanks.

    #2
    This is a supported attribute and you can see it's documentation in SmartClient. You can use it via setAttribute() for now, we'll add the SmartGWT wrapper soon.

    Comment


      #3
      Jay here had a similar issue elsewhere, and recommended this approach, which worked:

      batchUploader.getOrCreateJsObj();
      batchUploader.setProperty("partialCommit", "prevent");

      Only gotcha was that it required clearing the browser cache for the fix to kick in.

      Comment

      Working...
      X