| View previous topic :: View next topic |
| Author |
Message |
M.Sameer Guest
|
Posted: Sun Feb 22, 2004 6:32 pm Post subject: How can server ask for user responce or update interface? |
|
|
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
|
Posted: Tue Feb 24, 2004 9:25 pm Post subject: Re: How can server ask for user responce or update interface |
|
|
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
|
|
| Back to top |
|
 |
|