Conditions for failure of loadRecords

Hi

I am using forms.dialogFormName.foundset.loadRecords(foundset) to load the current foundset to the dialog form.
But the loadRecords() is returning false at some point.

I am not sure about the condition. The dialog form inherits the comTransactionDialogBase form of servoyCommons module.
Can any body please explain some common conditions where loadRecords(foundset) might fail.

Thanks in advance

Hi,

Does the form reference the same server/table as the foundset you pass to it ?

Yes both the forms are referencing to same server and table. Only difference is the form in which I am doing loadRecords is displayed as a dialog and is transactional. Also both the forms are using the same foundset.

Are you sure they use the same shared foundset ? Because then it doesn’t make much sense to load the foundset into the other form.
Anyway, what might be the cause is unsaved records that can’t be saved. Try fetching the failed records after the loadRecords() returns false.

Hope this helps.