Uniqueness problem when saving to two datasets

LabKey Support Forum (Inactive)
Uniqueness problem when saving to two datasets Ben Bimber  2011-04-21 11:23
Status: Closed
 
hi jen,

so i'm wondering if everything is executing in the proper order. successCallback from the first insertRows is going to be called asynchonously, so I wonder if often your second submitConsent function just isnt getting called. have a look at the attached modification. i made onSuccess from the first insertRows call the second one directly. i think seqNum should be in scope to both.

I didnt try any of this, so there may be typos.

-ben