You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

getting max value in array in javascript not working

edited Jul 25, 2019 6:12PM in Visual Builder 3 comments

Summary

frustrating issue

Content

Hello,

First a little background.

I have an editable array with an "add row" button.  The button adds a single row that is in a business object specifically for that purpose.  As users enter data in the grid, they can add a row for additional data entry.  The entries require unique ids for the array to operate properly.  Each time a new row is added, the id will always be the number 1 since that is in the business object.  I need to iterate over the array to get the max id and then add 1 to it and update the additional row.  So far so

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!