Subject | Insert and Post |
---|---|
Author | Riho-Rene Ellermaa |
Post date | 2001-02-20T08:12:18Z |
I noticed that when I press Insert button in ActionBar, my BeforePost()
method is also called. When I checked the IBO code there was indeed SysPost
function in Insert.
Procedure TIB_Dataset.SysInsert;
begin
if CanInsert and not FInsertPending then
begin
SysBeforeInsert;
FInsertPending := true;
FWasSearching := ( State = dssSearch ) or ( Active and FWasSearching );
try
SysPost( false, false );
MasterToChildAction( mcaPost );
...
Is this normal, or am I missing some parameters somewhere? In BeforePost I
do some data checking and now the user gets errormessage even before he has
chance to do anything.
Riho-Rene Ellermaa
senior programmer
Hansabank
method is also called. When I checked the IBO code there was indeed SysPost
function in Insert.
Procedure TIB_Dataset.SysInsert;
begin
if CanInsert and not FInsertPending then
begin
SysBeforeInsert;
FInsertPending := true;
FWasSearching := ( State = dssSearch ) or ( Active and FWasSearching );
try
SysPost( false, false );
MasterToChildAction( mcaPost );
...
Is this normal, or am I missing some parameters somewhere? In BeforePost I
do some data checking and now the user gets errormessage even before he has
chance to do anything.
Riho-Rene Ellermaa
senior programmer
Hansabank