Announcement

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

    12.0p BatchUploader and bug with canRemoveRecords: true

    Hi Isomorphic,

    we have a problem with BatchUploader. We used Hilite + ValidationContext.setResultingValue() to create "warnings" via Hilite for possible duplicates.
    The user can then decide not to import the leads via canRemoveRecords: true.

    Here are two problems, one with canRemoveRecords (this thread), one with the default-enabled deferRemoval.

    Please see here (v12.0p_2019-12-14) in mode "Retain" that the wrong records are displayed after "Commit" (none are expected):
    Code:
    isc.BatchUploader.create({
        ID:"uploader",
        height: 700,
        width: "100%",
        uploadDataSource: supplyItemCustom,
        uploadFormProperties: {
            titleWidth: 110
        },
        gridProperties: {
            height: 400,
            deferRemoval: false,
            canRemoveRecords: true
        }
    });
    
    isc.DynamicForm.create({
        ID: "partialCommitsForm",
        items: [
            {
                name:"partialCommits", 
                wrapTitle: false,
                title:"Partial Commit Mode", 
                type:"select", 
                defaultValue: "prompt",
                valueMap:{
                    allow: "Allow", 
                    prevent: "Prevent", 
                    prompt: "Prompt",
                    retain: "Retain"
                },
                changed : function(form, item, value) {
                    uploader.partialCommit = value;
                }
            }
        ]
    });
    
    isc.VStack.create({
        width:"100%",
        layoutMargin:10,
        membersMargin: 10,
        members:[
            partialCommitsForm,
            uploader
        ]
    });
    Steps:
    • Run sample
    • Upload demo file
    • Remove 3 entries with validation error
    • Commit 4 entries without validation error
    • Expected: No records left
    • Result: Random records (with and without validation error) left

    After upload and remove:
    Click image for larger version

Name:	1-After_Upload_And_Remove.PNG
Views:	145
Size:	28.8 KB
ID:	260490

    After commit:
    Click image for larger version

Name:	2-After_Commit.PNG
Views:	80
Size:	26.4 KB
ID:	260491


    Best regards
    Blama

    #2
    This is the related thread.

    Comment


      #3
      This is fixed and available for download in nightly builds since Jan 16.

      Comment


        #4
        Hi Isomorphic,

        this is behaving exactly as before for the steps in #1 using v12.0p_2020-01-17.

        Best regards
        Blama

        Comment


          #5
          Apologies for the incomplete fix, please try Jan 18 build and let us know how it worked for you.

          Comment


            #6
            Hi Isomorphic,

            to me it looks like it is working as expected in the online showcase using v12.0p_2020-01-18.

            Thank you & Best regards
            Blama

            Comment

            Working...
            X