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 

How can server ask for user responce or update interface?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier)
View previous topic :: View next topic  
Author Message
M.Sameer
Guest





PostPosted: Sun Feb 22, 2004 6:32 pm    Post subject: How can server ask for user responce or update interface? Reply with quote



Hi everyone,

(Q1) Sometimes the business tier (App. Server) wants to ask some questions
to user to know what to do. This situation might rise in the business
objects attached to the interface or in objects that are updated from other
objects.

Examples:
( Ex1 ) BusinessObject_1 updates BusinessObject_2 which found some
noncritical inconsistency in data that might occur and it wants to warn the
user "This operation will result in blah blah blah. Do you want to
continue?" if Yes the transaction will continue and if No the transaction
will abort.

( Ex2 ) BusinessObject_1 updates BusinessObject_2 which needs to ask user
"Mr.X has violated some rules. Do you want to add Mr.X to black list?" if
Yes BusinessObject_2 update BusinessObject_3.

I know that business objects should not ask for user input in the middle of
a tranmsaction to prevent timeouts but how then these situations can be
solved?

(Q2) Sometimes the server is doing a long synchronous operation and the
interface need to show the progress using a progress bar or something.

How can this be done?

TIA
M.Sameer


Back to top
Marcelo
Guest





PostPosted: Tue Feb 24, 2004 9:25 pm    Post subject: Re: How can server ask for user responce or update interface Reply with quote



If you use TSocketConnection then you can use Callbacks
Salu2. Marcelo.

"M.Sameer" <_msameer1 (AT) hotmail (DOT) com_> escribió en el mensaje
news:4038f5c1 (AT) newsgroups (DOT) borland.com...
Quote:
Hi everyone,

(Q1) Sometimes the business tier (App. Server) wants to ask some questions
to user to know what to do. This situation might rise in the business
objects attached to the interface or in objects that are updated from
other
objects.

Examples:
( Ex1 ) BusinessObject_1 updates BusinessObject_2 which found some
noncritical inconsistency in data that might occur and it wants to warn
the
user "This operation will result in blah blah blah. Do you want to
continue?" if Yes the transaction will continue and if No the transaction
will abort.

( Ex2 ) BusinessObject_1 updates BusinessObject_2 which needs to ask user
"Mr.X has violated some rules. Do you want to add Mr.X to black list?" if
Yes BusinessObject_2 update BusinessObject_3.

I know that business objects should not ask for user input in the middle
of
a tranmsaction to prevent timeouts but how then these situations can be
solved?

(Q2) Sometimes the server is doing a long synchronous operation and the
interface need to show the progress using a progress bar or something.

How can this be done?

TIA
M.Sameer





Back to top
Dave Rowntree
Guest





PostPosted: Thu Feb 26, 2004 10:14 am    Post subject: Re: How can server ask for user responce or update interface Reply with quote



You could use Callbacks.

Have a look at:
http://community.borland.com/article/0,1410,29539,00.html

--
Dave Rowntree
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Multi-Tier) 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.