Subject | RE: [IBO] Duplicating rows |
---|---|
Author | Helen Borrie (TeamIBO) |
Post date | 2002-03-04T15:22:37Z |
At 04:59 PM 04-03-02 +0200, you wrote:
dataset at all. SetGeneratorLinks calls Gen_ID() anyway. Just make
certain you do the calls to Gen_ID() in your BeforePost event. I suggest
that you move the DuplicateRow action into a separate procedure so that you
can put some very simple conditioning into your BeforePost to get the other
fields filled before it moves on to the generator-grabbing code.
Oh, btw, there was an element missing in the Gen_ID() syntax I gave you -
it's actually a method of either the IB_Connection or of the IB_Statement
class. You can call either, but you'll need to include the object-identifier.
regards,
Helen Borrie (TeamIBO Support)
** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at
www.ibobjects.com
>Ok, I can do that, but what about normal record inserting - when will theYes, don't do anything different - just don't use GeneratorLinks on this
>generator be called then?
>(feeling very stupid and confused :)
dataset at all. SetGeneratorLinks calls Gen_ID() anyway. Just make
certain you do the calls to Gen_ID() in your BeforePost event. I suggest
that you move the DuplicateRow action into a separate procedure so that you
can put some very simple conditioning into your BeforePost to get the other
fields filled before it moves on to the generator-grabbing code.
Oh, btw, there was an element missing in the Gen_ID() syntax I gave you -
it's actually a method of either the IB_Connection or of the IB_Statement
class. You can call either, but you'll need to include the object-identifier.
regards,
Helen Borrie (TeamIBO Support)
** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at
www.ibobjects.com