acquireLock - last line fails -?

The last line returns false, but the others are okay.

The others are all direct relateds to the record being opened, where the selection is already established. But the last line is for a table that is twice removed.

What is incorrect?

Thank you,
Don

		var proceed1_B = databaseManager.acquireLock(foundset,0,lockName + "_1");  // just the current row
		var proceed2_B = databaseManager.acquireLock(forms.student_contact_incl.foundset,-1,lockName + "_2");  // lock all rows in fs
		var proceed3_B = databaseManager.acquireLock(forms.ethnicity_incl.foundset,-1,lockName + "_3"); // lock all rows in fs
		var proceed4_B = databaseManager.acquireLock(forms.disability_incl.foundset,-1,lockName + "_4"); // lock all rows in fs
		var proceed5_B = databaseManager.acquireLock(forms.calendar_stdnt_incl.foundset,-1,lockName + "_5"); // lock all rows in fs
		var proceed6_B = databaseManager.acquireLock(forms.student_service_stdnt_incl.foundset,-1,lockName + "_6"); // lock all rows in fs
		var proceed7_B = databaseManager.acquireLock(forms.transport_action_1_incl.foundset,-1,lockName + "_7"); // lock all rows in fs
		var proceed8_B = databaseManager.acquireLock(forms.transport_action_2_incl.foundset,-1,lockName + "_8"); // lock all rows in fs
		var proceed9_B = databaseManager.acquireLock(forms.transport_action_3_incl.foundset,-1,lockName + "_9"); // lock all rows in fs
		var proceed10_B = databaseManager.acquireLock(forms.drdp_incl.foundset,-1,lockName + "_10"); // lock all rows in fs
		// this one doesn't work -- var proceed11_B = databaseManager.acquireLock(forms.drdp_incl.drdp_to_drdp_rating,-1,lockName + "_11"); // lock all related ratings these drdps

It’s hard to say by just looking at the code. There could be many reasons for not being able to lock all related records in the foundset. Maybe one of them is allready locked or maybe the related records have already been deleted leaving no records to lock?

Thanks, Omar. I’ll probably just need to experiment more with it.

Don