BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

value in trigger needs refresh to appear

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (InterBase Express)
View previous topic :: View next topic  
Author Message
Moore
Guest





PostPosted: Thu Feb 08, 2007 10:09 pm    Post subject: value in trigger needs refresh to appear Reply with quote



i have a column in a master table which is the sum of another column in
a detail table, the calculation is done in the after
insert,update,delete trigger on the detail table,
the problem is that with IBX i need to refresh the master dataset to
show the new value when some detail row has changed value for that
column, is there a way to make the new value appear automatically?
Back to top
Bill Todd
Guest





PostPosted: Thu Feb 08, 2007 11:53 pm    Post subject: Re: value in trigger needs refresh to appear Reply with quote



Moore wrote:

Quote:
i have a column in a master table which is the sum of another column
in a detail table, the calculation is done in the after
insert,update,delete trigger on the detail table, the problem is that
with IBX i need to refresh the master dataset to show the new value
when some detail row has changed value for that column, is there a
way to make the new value appear automatically?

Refresh the master in the detail dataset's AfterPost event handler.

If you want to get fancy you could have the trigger fire an event and
have your app listen for the event and refresh the master.

--
Bill Todd (TeamB)
Back to top
Moore
Guest





PostPosted: Fri Feb 09, 2007 3:53 am    Post subject: Re: value in trigger needs refresh to appear Reply with quote



Bill Todd escribió:
Quote:
If you want to get fancy you could have the trigger fire an event and
have your app listen for the event and refresh the master.

How to do this???
Back to top
Bill Todd
Guest





PostPosted: Fri Feb 09, 2007 5:43 am    Post subject: Re: value in trigger needs refresh to appear Reply with quote

Moore wrote:

Quote:

How to do this???

See the paper at
http://support.borland.com/entry.jspa?externalID=2419&categoryID=157
for information on events from the InterBase side. In your program use
the IBX IBEvents component.

--
Bill Todd (TeamB)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (InterBase Express) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.