The tool tip indicates that this function generates a dataset, so I’m guessing that means,
var ds = databaseManager.createEmptyDataSet(0, 0);
ds.getLocks();
Suppose two users want to access the same record at the same time. One needs to be locked out. So when the second user tries to open the form, do I need to do something like,
for (var i = 1 ; i <= ds.getMaxRowIndex; i++) {
if((ds.getValue(i, 5) == fs.record_id) && (ds.getValue(i, 4) != globals.currentUser_id)) {
alert("This record is already in use by " + ds.getValue(i, 4) + ". ");
break;
}
}
If this is the case, suppose there are 1500 users on the system at a particular time. Wouldn’t this type of loop evaluation become very inefficient?
Thank you,
Don