Subject RE: [IBO] Sync an inserted record with ID provided by a SP, any trick?
Author Brian K. Woods
Marco,

> I've solved the probelm with a fake field in the select, and an
> additional parameter (IN_INSERT) in the SP.
> I've tried something like your solution, thinking that passing a
> negative ID (I just invert the sign of the returned id) to the SP
> could have meant "hei, this is the id, and it's negative since I'm
> inserting, revert to positive and do the insert", but does not work,
> since then IBO tries to locate the record with the negative ID, and
> changing the Buffer in AfterPost does not work (seems that the ID does
> not change).
> In any case, thanks a lot for your reply.

DOH! *laugh* Of course, what I proposed wouldn't work, because IBO still
wouldn't know what the key was... I jumped on the NULL vs something non-null
idea and didn't think it all the way through. However, apparently my
misguided suggestion got the wheels of ingenuity rolling for you, which was
my real intention in the first place. @;-O)

Brian