atLeastOneUploadCompleted

Hi,

How can I create an "atLeastOneUploadCompleted" for a File Array?

i dont wanna use something like:

return this.root.fileArray.items[0].uploadCompleted || this.root.fileArray.items[1].uploadCompleted ;  

because I don't know how many items I'll get.

the bottom line is I require a minimum of one upload in this case

in your solution, please avoid formulas 

Thanks

 
0

Didn't find what you were looking for?

New post

Comments

1 comment

  • Hi Erez Granot,

    You can try this validation - 

    for (let file of this.root.fileArray.items) {

    if (file.uploadCompleted) {

    return true;

    }

    }

    return false;

     

    for (let file of this.root.fileArray.items) {

    if (file.uploadCompleted) {

    return true;

    }

    }

    return false;

    Just make sure to adjust the paths to match yours.

    0

Please sign in to leave a comment.