Home » Developer & Programmer » Forms » Show that a process is running (Forms 6i, Windows)
Show that a process is running [message #447344] Sat, 13 March 2010 15:14 Go to next message
Amine
Messages: 376
Registered: March 2010
Senior Member

Hi All,
What am trying to accomplish is simple :
Say we have a form with one button "but1" and a text element "mess".

When we click on "but1", something will be preocessed.

What am trying to do is to put in "mess", at the begining of the process, something like "Processing..."

The PL/SQL code of the trigger "WHEN-BUTTON-PRESSED" looks like :

:mess := 'Processing...';

/*
	The process..
*/

:mess := 'Done !';


But when the button is pressed, the form is freezed and the message 'Processing...' is not displayed. Only 'Done !' is displayed at the end of the process.

Any Ideas ?

Thank you.
Re: Show that a process is running [message #447348 is a reply to message #447344] Sat, 13 March 2010 15:58 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
Try
:mess := 'Processing...';
synchronize;
Re: Show that a process is running [message #448141 is a reply to message #447348] Fri, 19 March 2010 14:14 Go to previous messageGo to next message
Amine
Messages: 376
Registered: March 2010
Senior Member

it works !

Thanks
Re: Show that a process is running [message #448249 is a reply to message #447348] Mon, 22 March 2010 05:21 Go to previous messageGo to next message
arif_chief
Messages: 4
Registered: February 2010
Junior Member
Hello Bro,

Will u send me the full code how to show the processing... message while pressing button?
I am using Oracle DS 10g and Database 10g also.

Arif
Re: Show that a process is running [message #448252 is a reply to message #447344] Mon, 22 March 2010 05:28 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
The full code is in this thread already.
Re: Show that a process is running [message #448256 is a reply to message #448252] Mon, 22 March 2010 06:19 Go to previous messageGo to next message
arif_chief
Messages: 4
Registered: February 2010
Junior Member
Hi,

I have tried with the code ----

:mess := 'Processing...';
synchronize;

against a button but not works ! Pls give me the full code
or guide me how to proceed.

Arif
Re: Show that a process is running [message #448261 is a reply to message #447344] Mon, 22 March 2010 06:52 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
Define doesn't work. Do you get an error message?
Re: Show that a process is running [message #448263 is a reply to message #448261] Mon, 22 March 2010 07:02 Go to previous messageGo to next message
arif_chief
Messages: 4
Registered: February 2010
Junior Member
Hello,

It doesn't compile also and if i declare the mess as variable and remove the colon sign i.e


declare

mess varchar2(100);

begin
:mess := 'Processing...';
synchronize;

end;

then i can compile but doesn't show any kinds of message or errors.
Please help me to sort out the problem.

Arif
Re: Show that a process is running [message #448264 is a reply to message #447344] Mon, 22 March 2010 07:04 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
mess needs to be a datablock item on the canvas.
Re: Show that a process is running [message #448267 is a reply to message #448264] Mon, 22 March 2010 07:13 Go to previous messageGo to next message
arif_chief
Messages: 4
Registered: February 2010
Junior Member
Thanks a lot its working fine.

Can u help me a little more abt that i want to show the completion message also as "Done" or something like that after complete.

For example i want to see the message while running a report from menu and during the processing the message shows "Processing..."
as it works and after completion of that report it should show "Done".

Thanks

Arif

Re: Show that a process is running [message #448273 is a reply to message #447344] Mon, 22 March 2010 08:07 Go to previous message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
So set the item to 'Done' at the end.
Previous Topic: Oracle Forms Timeout
Next Topic: Code for PRE INSERT (merged by CM)
Goto Forum:
  


Current Time: Fri Sep 20 10:42:46 CDT 2024