Want to show a "Please Wait" message while processing
Hi,
I'm developing an image-processing tutorial applet where the user selects an image and then sets some parameters before pressing an update button which will run a JPEG compression on the image and show the compressed image.
The compression takes a few seconds, so I want the program to show an image saying "Please wait" in the position that the compressed image will appear while the compression is done.
Here is the relevant code:
public void paint (Graphics g) {
if (updating) {
updating = false;
g.setColor(getBackground ());
g.fillRect(575, 370, 250, 250); //clear the area where the image will appear
g.setColor(Color.white);
g.drawImage(updatingImg, 575, 370, 250, 250, this); //updatingImg just displays a "Please Wait" message
doImage = true;
if (doImage) {
doImage = false;
//perform the compression to get the new image and then show it
newImg = imagetest.compressImage(origImg, quantizationMat);
g.setColor(getBackground ());
g.fillRect(575, 370, 250, 250);
g.setColor(Color.white);
g.drawImage(newImg, 575, 370, 250, 250, this);
public void actionPerformed(ActionEvent evt) {
if (evt.getSource() == update){
//perform some error checking
if (errorFound == false){
updating = true;
repaint();
}The problem is that the "Please wait" image never gets shown.. while the compression is carried out that part of the screen remains blank and then the new image is shown.
Can anyone tell me how to fix this?
Thanks.
Never mind, I've figured it out.. needed to put the time consuming code in a new thread.
Similar Messages
-
I need a code that allows me to show a "Please Wait" Dialog while performing a lengthy operation
Hi,
I have very basic knowledge of C++ and I don't understand completely how this works. I have been trying to use pthreads in order to be able to show a "Please Wait" Dialog while performing a lengthy operation. The problem is that the dialog
box is showing up with a blank box where the label should go. Could you please modify the following code so that the program does what I am looking for? (note that I have pasted the sections of the program I think are useful for someone to provide an answer).
void *run_optimization( void *ptr );
void *run_optimization( void *ptr )
Solution x = Optimizer(); // Lengthy operation
const int * const SolArray = x.getDiscreteSolution();
return 0;
namespace RCM {
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
Processing^ Proc = gcnew Processing();
Proc->Show(); // this is the "Please Wait" Dialog
pthread_t thread1;
int ret1;
ret1 = pthread_create( &thread1, NULL, run_optimization, NULL);
pthread_join( thread1, NULL);
Thank you!!
EDIT:
I have tried the following:
void *run_optimization( void ^ptr );
void *run_optimization( void ^ptr )
Processing^ Proc = (Processing ^)ptr;
Solution x = Optimizer(); // Lengthy operation
const int * const SolArray = x.getDiscreteSolution();
Proc->Close();
return 0;
namespace RCM {
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
Processing^ Proc = gcnew Processing();
pthread_t thread1;
int ret1;
ret1 = pthread_create( &thread1, NULL, run_optimization, (void *)Proc);
Proc->Show(); // this is the "Please Wait" Dialog
But I am getting the following error:
error C2440: 'type cast' : cannot convert from 'RCM::Processing ^' to 'void *'Hi Shu!
It runs in windows. I am using Visual Studio 2010 (and I can't use another version) which still doesn't have the threads integrated as I have read. So I am using POSIX threads for windows.
Regarding the other question, I don't really know what either of those (.net framework library or native API) mean. I am sorry but I am really new at this and really don't know much but I am doing my best because I have to get this done.
I only know basic C++ but had to use C++/CLI windows forms because of a code I integrated in my program for running macros in excel and it was in C++/CLI.
Thank you for your help!
You cannot pass a managed handle to void* (as you have discovered).
If you really want to use Posix threads, you probably need to make your Processing class a normal C++ class, not a C++/CLI ref class.
But the .NET way to do this would be to use a BackgroundWorker:
https://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker%28v=vs.110%29.aspx
David Wilkinson | Visual C++ MVP -
Display ("Please Wait") message WHILE the page loads
Hello All,
I have adf/jsf application. How to add message " Please Wait While Page Loads" WHILE+* the page is loading ?
I am thinking of Window.confirm(" Please Wait While The Page Loads") Is there a better (More Modern) way to do this?_
Many Thanks,John, when I type <af:statusIndicator and ctrl + space, JDev does not show statusIndicator as one of the choices. I tried adding code but it seems it does not recognize statusIndicator as one of the tags. I am using other jsf and adf tags on the same page :(
Thanks, -
Question about Page Builder behavior - how to get a "please wait message" ?
Hi all together,
I got a question about Portal Framework / Page Buider handling iView Integration.
We are working with a lot of App Integrator iViews and often the pages includes with app integrator are loading longer than the rest of the portal. So there is the idea to put in a "please wait while loading message" for the enduser.
I analysed the html code, the page builder is generating and foud out 3 diffrent approaches how the page buider is rendering the IFRAME with the integrated application configured with an app integrator iView.
My question is how can I influence this behavior to put a "please wait while loading message"?
Different types of iView integration in the client I have seen:
a) direct loading of the content in the IFRAME (<iframe id="" ... scr="/mysource">)
b) Filling the iframe with 'about:blank' and loading the content later by filling a form with JS
( <iframe id="" .... scr="about:blank">and after the iframe <form id="" action="mysource" ...>
c) Filling the iframe with a html file from the portal layout and loading the content later by filling a form with JS (similar to b)
( <iframe id=""" ....scr="/irj/portalapps/com.sap.test.mylayout/html/blank.html>
I checked that variant b) is getting generated when loading a page with different components on the side (not only the app integrator iview) and variant c) is generated when just one app integrator iView is positioned (no portal page).
Goal: To get the "please wait picture" I want to know how to get variant c) in cases of different elements on one page
So I would be able to put this picture on the HTML-Page in the Portal layout (blank.html)
Hope, someone with a deep portal / page builder know-how can help me out!
Another way: Does anybody knows another way how to put a "please wait message" while app integrator application is not loaded yet?
Thanks in Advance and kind regards,
Jens
Edited by: Jens Kohne on Nov 24, 2010 9:08 AMHi Jens,
there are several reasons why you don't get the loading animation:
Web Dynpro ABAP: https://service.sap.com/sap/support/notes/1432358 -> missing configuration
Wrong height size for iView: https://service.sap.com/sap/support/notes/1358494 -> alter configuration of the iFrame height (loading animation gets displayed, but is hidden)
FPN, BSP, BEx: https://service.sap.com/sap/support/notes/1290995 -> AI isn't showing the animation because of performance considerations. I guess that is your case. Depending on your portal version this is a simple service configuration or involves some customization.
br,
Tobias -
OT: How can I manage a "Please Wait" message with this scenario?
I have a page which allows you to paste in a potentially
large list of zip
codes.
When you submit this page, the list is de-duped, and then
checked against a
table of ~22,000 zips for matches.
Where and how in this process could I bring up a "Please
Wait" message while
the transaction is being completed?
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================> you could also just use the PVII script on body load to
show the
> appropriate div - you could change the name in the" with
the appropriate
> switch statement.
Ew. Double ew.
I'm going to let it ride as is, until someone complains.
Thanks for the
neurons, though. Do you need them back? Or I should say, "you
DO need them
back"!
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"crash" <[email protected]> wrote in message
news:[email protected]...
> you could also just use the PVII script on body load to
show the
> appropriate div - you could change the name in the" with
the appropriate
> switch statement.
>
> It's my belief that some of your html elements will be
able to show while
> others are still being built. I guess I could be wrong
on this, but I
> think practically I'm right (ie, you can see elements on
my page building
> before the page is completely done).
>
> HTH,
>
> Jon
>
> "crash" <[email protected]> wrote in message
> news:[email protected]...
>> summation:
>> In your SQL, at the bottom of the statement, you
should be able to put a
>> javascript call that will re-structure the
visibility of the elements
>> according to the variabels returned by the SQL. One
page, reloaded once.
>>
>> My switch statement got a little convoluted. You
should be able to just
>> set one variable, or set one number and go from
there (ie, if $v=3, hide
>> other two), but i've not had any coffee or caffinne
yet.
>>
>>
===========================================================
>> Is the code in the third message on this post from
the originating page?
>> I took that it was, that it had a form, that form
reloaded the same page?
>>
>> If so, you should be able to put a switch in there:
>>
>> switch($stage){
>> case "upload":
>> #this should be once the form has been completed
>> $status=1; //status equal one, two or threee is one
method you could
>> use.
>> break;
>> case "complete"://you could aalso set a variable for
each section, i
>> think the one above is better, but this one made
more sense right now,
>> lol.
>> #show the results,
>> $resultsState="show";
>> $formState="hide";
>> $waitState="hide";
>> break;
>> case default:
>> #empty, or first state, show the form to upload the
data
>> $live="form";
>> break;
>> }
>>
>> then, below:
>>
>> <div id="form" class="<?php echo $formState
?>">
>> <form>
>> whatever
>> </form>
>> </div>
>>
>> <div id="wait" class="<?php echo $waitState
?>">
>> <img src="img/wait.gif" />
>> </div>
>>
>> <div id="results" class="<?php echo
$resultsState ?>">
>> <h1>Results</h1>
>> <p>stuff here</p>
>> </div>
>>
>>
>>
>>
>>
>>
>> "Murray *ACE*"
<[email protected]> wrote in message
>> news:[email protected]...
>>>I can do that. I'm worried about passing the zips
array (which has been
>>>exploded from the input) to the process page. How
would I best do that?
>>>
>>> --
>>> Murray --- ICQ 71997575
>>> Adobe Community Expert
>>> (If you *MUST* email me, don't LAUGH when you do
so!)
>>> ==================
>>>
http://www.dreamweavermx-templates.com
- Template Triage!
>>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>>>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
>>> ==================
>>>
>>>
>>> "crash" <[email protected]> wrote in
message
>>> news:[email protected]...
>>>> THis is how I see the process, I guess I
might not be following you:
>>>>
>>>> 1. User goes to form page, to submit zips.
>>>> 2. User completes form, hits upload
>>>> 3. Page refreshes itself, publishes please
wait message (ie, could you
>>>> not put an if [form submit] is true, echo
this image, then begin the
>>>> sql calculations)
>>>> 4. As the calculations are finished, toggle
visibility of image off,
>>>> toggle div with results on.
>>>>
>>>> If that doesn't work, sorry, I completely
misunderstand and will leave
>>>> you be.
>>>>
>>>> "Murray *ACE*"
<[email protected]> wrote in message
>>>> news:[email protected]...
>>>>> But then there's no opportunity to slam
the waiting message up
>>>>> there....
>>>>>
>>>>> --
>>>>> Murray --- ICQ 71997575
>>>>> Adobe Community Expert
>>>>> (If you *MUST* email me, don't LAUGH
when you do so!)
>>>>> ==================
>>>>>
http://www.dreamweavermx-templates.com
- Template Triage!
>>>>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>>>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>>>>>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
>>>>> ==================
>>>>>
>>>>>
>>>>> "crash" <[email protected]>
wrote in message
>>>>>
news:[email protected]...
>>>>>> couldn't you just have it reload the
same page (isn't it anyway?).
>>>>>>
>>>>>>
>>>>>> "Murray *ACE*"
<[email protected]> wrote in message
>>>>>>
news:[email protected]...
>>>>>>> Thanks, Joe. This troubles my
mind, either way!
>>>>>>>
>>>>>>> --
>>>>>>> Murray --- ICQ 71997575
>>>>>>> Adobe Community Expert
>>>>>>> (If you *MUST* email me, don't
LAUGH when you do so!)
>>>>>>> ==================
>>>>>>>
http://www.dreamweavermx-templates.com
- Template Triage!
>>>>>>>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>>>>>>>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>>>>>>>
http://www.macromedia.com/support/search/
- Macromedia (MM)
>>>>>>> Technotes
>>>>>>> ==================
>>>>>>>
>>>>>>>
>>>>>>> "Joe Makowiec"
<[email protected]> wrote in message
>>>>>>>
news:[email protected]...
>>>>>>>> On 23 Oct 2006 in
macromedia.dreamweaver.appdev, Murray *ACE*
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> LOL - OK, see, I was
hoping to avoid breaking it into separate
>>>>>>>>> pages
>>>>>>>>> like that, but that way
looks like it'll work....
>>>>>>>>
>>>>>>>> You can just re-call the
page which processes the form data, and
>>>>>>>> check
>>>>>>>> whether or not the
processing has been done:
>>>>>>>>
>>>>>>>> <?php
>>>>>>>> if ($dataWasProcessed) {
>>>>>>>> echo '<h1>Thank you
for using Murray's Data Processing</h1>';
>>>>>>>> } else {
>>>>>>>> // Code to process form goes
here
>>>>>>>> // Code to re-call page with
$dataWasProcessed set goes here
>>>>>>>> // How to set that var left
as an exercise for the reader
>>>>>>>> }
>>>>>>>>
>>>>>>>> Personally, I find that it
troubles my mind less to do such things
>>>>>>>> in
>>>>>>>> separate files.
>>>>>>>>
>>>>>>>> --
>>>>>>>> Joe Makowiec
>>>>>>>>
http://makowiec.net/
>>>>>>>> Email:
http://makowiec.net/email.php
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
> -
Please wait message when opening form created by Adobe LiveCycle Designer ES 9.0
Problem
Please wait message when opening form created by Adobe LiveCycle Designer ES 9.0
Full message
Please wait... If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document. You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by visiting http://www.adobe.com/products/acrobat/readstep2.html. For more assistance with Adobe Reader visit http://www.adobe.com/support/products/ acrreader.html. Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Mac is a trademark of Apple Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the U.S
Actions
Updated Windows RT 8 to 8.1
Uninstaled Adobe Reader Touch 1.3 and instaled 2.0 Build 84770
Additional Information
The form was created 10 or 11 months ago, and we are pretty sure that we were able to open it a while back
The same PDF file opens just fine in Windows 8.1 using Adober Reader XI 11,0.06, it is only the app that is affected.
The document cannot be opened by any other mobile app that we have tried or on another mobile OS (iOS)
Any ideas?
Thanks & Regards
JimThe user's assertion is surprising to me, but perhaps I'm missing something important. I thought the correct position was from the conclusion of my earlier post "it can't be done". Adobe state their Reader Touch doesn't support XFA (http://blogs.adobe.com/readermobile/2012/12/13/adobe-reader-for-windows-8-tablets/). Unless (see that blog entry) you changed the type of form.
-
"Please Wait Message" Slider with cfgrid
Some of my cfgrid type=html results are taking a long time
and an impatient user will likely wander if they need to hit the
submit button again. I've seen how to implement a standard "Please
Wait Message" with flushing periodic results, but how do I do it in
this datagrid environment with an AJAX-based cfgrid with CF8.01? My
users all use IE 6.I believe I did. Here's the code. Functions without the line
"grid.loadMask = true;"
<HTML>
<HEAD>
<cfajaximport
tags="cfform,cfdiv,cftextarea,cflayout-tab,cflayout-border,cfinput-datefield,cfgrid"
/>
<script type="text/javascript" >
<cfajaxproxy cfc="#strcomponentpath#"
jsclassname="diaproxy" />
diaproxy = new diaproxy();
diaproxy.setCallbackHandler(handleResult);
function initDIA(){
//set page permissions
setstartuppermissions();
//the grid will be empty, but will have the default layout
customizeGrid();
// Set the focus to the first search field for those that
prefer to not use a mouse
setFocus();
function setFocus(){
var objFirstField = document.frmSearchGrid.strsearchdb[0];
objFirstField.focus();
<!--- this function is called when the Search button is
clicked --->
function submitSearch(){
//refresh grid with new parameters
setpermissions('test');
ColdFusion.Grid.refresh("searchGrid", true);
customizeGrid();
<!--- this function is called to refresh grid (hiding
columns and customizing grid footer) --->
function customizeGrid(){
<!--- Create a new paging tool bar in the grid footer and
display the record count in it. --->
// get the grid component
var grid = ColdFusion.Grid.getGridObject("searchGrid");
// Create a reference to the column model.
var cm = grid.getColumnModel();
// create a reference to the grid footer
var gridFoot = grid.getView().getFooterPanel(true);
// get the datasource
var ds = grid.getDataSource();
// add a new paging toolbar to the grid's footer
var paging = new Ext.PagingToolbar(gridFoot, ds, {
// this pageSize is the same value as in the cfgrid
pageSize: <cfoutput>#intShowRows#</cfoutput>,
displayInfo: true,
// this will display all the record information for you
displayMsg: 'Displaying records {0} - {1} of {2}',
emptyMsg: "No records to display"});
//returns true if the particular radio button is selected
var booDocumentImaging =
document.frmSearchGrid.strsearchdb[0].checked;
var booFilenet =
document.frmSearchGrid.strsearchdb[1].checked;
// Now show/hide grid columns and data details based on
default or user choice
if (booDocumentImaging) {
document.getElementById('divFilenetFields').style.display =
'none';
document.getElementById('divDocumentImagingFields').style.display =
'block';
//setHidden(colIndex, hidden)
cm.setHidden(18,true);
// If true then Filenet was selected
else if (booFilenet) {
document.getElementById('divFilenetFields').style.display =
'block';
document.getElementById('divDocumentImagingFields').style.display =
'none';
// Filenet does not need the ability to add an attachment
document.getElementById('btnaddAttachment').disabled='true';
//setHidden(colIndex, hidden)
cm.setHidden(18,false);
else {
// add a Please Wait Message on submittals
grid.loadMask = true;
grid.reconfigure(grid.getDataSource(),cm);
</script>
</HEAD>
<BODY class="bodyclass" onLoad="" onUnload="">
<cfform name="frmSearchGrid" id="frmSearchGrid"
format="html" method="post" >
<cfgrid name="searchGrid"
autowidth="false"
width="585"
format="html"
pagesize="#intShowRows#"
preservePageOnSort="true"
striperows="true"
striperowcolor="##e0e0e0"
sort="true"
sortascendingbutton="true"
sortdescendingbutton="true"
colheaderbold="true"
bindonload="false"
bind="cfc:#strcomponentpath#.readdiadocumentgrid({cfgridpage},{cfgridpagesize},{cfgridsor tcolumn},{cfgridsortdirection},{frmSearchGrid:strsearchdb@none},{frmSearchGrid:strsearchme tadata@none},{frmSearchGrid:dtedateRangeFrom@none},{frmSearchGrid:dtedateRangeTo@none},{fr mSearchGrid:strDocImageRights},{frmSearchGrid:strdoctype@none},{frmSearchGrid:strdocsubjec t@none})">
<cfgridcolumn name="diadocno" header="docno" width="70"
/>
<cfgridcolumn name="diadocumentdate" header="doc date"
width="75" />
</cfgrid>
</cfform>
<cfset ajaxOnLoad("initDIA") />
</BODY> -
I get a please wait message, and the pdf document never loads?
I get a Please Wait message, and the pdf document never loads. i have the latest version on my mac- no luck!
windows xp version x1 the latest. trying to open in gmail.
On Mon, Feb 17, 2014 at 1:23 PM, Claudio González -
Hello!
I´d like to know what´s the best way of creating a message box
with a "Please Wait" message that opens at some point and closes
automatically after a sequence code?
Thank you!
LuannaAre you having a pop up message box in mind??
my suggestion would be, keep a string indicator on front panel itself, make it appear and disappear like this
Attachments:
please wait.vi 22 KB -
i update ios 7 but it got sim loked and even i enter pin it is showing unlocking please wait but it is not getting opened
Turn your phone off and connect your cable to the computer, but not the device just yet. Start up iTunes. Now, hold down the home button on your phone and plug it in to the cable - don't let go of the button until iTunes tells you it's detected a phone in recovery mode. Now you can restore to factory settings.
-
Showing a "Please wait..." window / Changing mouse cursor to hourglass
Can one of the following be done using javascript:
1) Show a "Please wait" window (when using synchronous SOAP requests) with the ability to "hide" it
2) Change the mouse cursor to hourglass
I went over the JS API and found nothing, any ideas?Was the PDF opened within a web browser and was the PDF on a web server?
-
Hi,
We use FMS 4.5.1 for streaming MP4 (H264/AAC) live streams to flash clients and iPads. Occassionally iPad viewers get error messages indicating that the video cannot be played. On these occasions we see error messages like this in our Apache logs:
mod_hlshttp [500]: Invalid timestamp found in the message while processing /hls-live/streams/rd-mp4/events/noordoostpolder_1/liveevent/livestreamNum4390.ts
Strangely enough this error message cannot be found anywhere in Adobe's documentation or anywhere else on the net (or perhaps I haven't searched well enough...)
Has anyone else here encountered this problem and/or does anyone have an idea as to what causes these messages and this problem?
Message was edited by: GRO-NIC: Does anyone have any idea? And/or can someone from Adobe respond? We are still receiving complaints from several of our customers about this.Hi,
We use FMS 4.5.1 for streaming MP4 (H264/AAC) live streams to flash clients and iPads. Occassionally iPad viewers get error messages indicating that the video cannot be played. On these occasions we see error messages like this in our Apache logs:
mod_hlshttp [500]: Invalid timestamp found in the message while processing /hls-live/streams/rd-mp4/events/noordoostpolder_1/liveevent/livestreamNum4390.ts
Strangely enough this error message cannot be found anywhere in Adobe's documentation or anywhere else on the net (or perhaps I haven't searched well enough...)
Has anyone else here encountered this problem and/or does anyone have an idea as to what causes these messages and this problem?
Message was edited by: GRO-NIC: Does anyone have any idea? And/or can someone from Adobe respond? We are still receiving complaints from several of our customers about this. -
Good afternoon,
I have setup the javascript to display a clock icon with "...Working..." displayed while long processes are running when a button is pressed. What I need to do now is to define a link in a report column, initializing values from columns within the report and still display that "Please Wait" icon & message.
How do I get the "Please Wait" to work and still pass multiple parameters to my linked page that are values from the report, not within variables in the page?
Thanks,
Don.Good morning,
I have managed to figure this out for myself. Here is the solution (in case someone else wants to do this):
1. Creating the whole "PLEASE_WAIT" process using the following information that I found here in the APEX Forum:
A.) Add this text to the Page HTML Header (or create a shortcut like I did):
<script type="text/javascript">
<!--
function html_Submit_Progress(pThis){
$x_Show('AjaxLoading');
window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 100);
doSubmit('SUBMIT');
function submit_HideAll(pThis){
$x_Hide('wwvFlowForm');
doSubmit('SUBMIT');
function submit_ButtonRegion(pThis){
$x_Hide('button_region');
doSubmit('SUBMIT');
//-->
</script>
B.) Add this text to the PAGE FOOTER for each page you wish to use the "Please Wait" pop-up.
<style> #AjaxLoading{padding:5px;font-size:18px;width:100px;text-align:center;left:50%;top:50%;position:absolute;border:2px solid #666;background-color:#FFF;}
</style>
<div id="AjaxLoading" style="display:none;">..Working..
<img src="#WORKSPACE_IMAGES#clock.gif" id="wait" /></div>
C.) Add this to the BUTTON (or URL) you wish to activate the "Please Wait" pop-up.
D.) Be sure to have a default branch back to the page containing the "Please Wait" pop-up; if you are adding this to page 5, have an unconditional branch to Page 5.
To add it to a url, add the following text to the Page HTML Header:
<script type="text/javascript">
function open2(url){
window.location = url;
</script>
Then, in the "Column Link" section of the report item definition, provide your link as follows:
javascript:javascript:html_Submit_Progress(this);open2('f?p=&APP_ID.&APP_PAGE.:&SESSION.::&DEBUG.::P19_Variable:#P18_VALUE#);
Substituting the P19_VARIABLE and #P18_VALUE# with the appropriate variable name and value. You can have multiple variables assigning each a value, simply separate the varible names with a comma and do the same for the variable.
If this is all too confusing, write to me and I'll try to explain it better. I'm not a JAVA person myself, so this might not be the optimum solution - but it is a solution that works.
Thanks,
Don. -
Display a "Please wait " message
Is there any way a message can be displayed to advise the user
"Please wait - program running...."
while the macro actually executes.
Function such as MSGBOX just stop executing - I am looking for something that will alert the user to be wait while the program runs.
many thanks
PeterReshma,
The MsgBox will block the thread and the program (macro) stops running until you close the message box.
Peter,
You need to run another thread to get things working as you need. Typically the job is launched on another thread while the user sees the message box with a progress bar or just a text message like you want. You need to develop an Office add-in
for that, see
Walkthrough: Creating Your First Application-Level Add-in for Excel for more information. The
BackgroundWorker component can be used for that. -
Message Manager "Please Wait" Message.
Hi Experts,
referring to "Display PDF in Popup / How to do this?
I'm developing a WebDynpro where the user can convert its output into PDF and display/download it. The Converting Process is started via a button. Once the user klicks the button, there's quite a lot of stuff happening in the background, It'll take about 10-15secs. I'm afraid that some users might start hammering on F5 once nothing appears on screen after 3 secs or so, thus I want to display a message "Please Wait until..." etc once the user clicks on that button. I thought I could just do that at the beginning of my Event Handler of the Button. But the message is displayed as recently as the complete method has run through...
How can I immediately display a message once a user klicks on that button?
best regards,
LukasHi,
You can write your message handling code before your actual code, i.e. at starting, first it will execute and display message.
OR
You better display popup confirmation message saying that "Please wait 15 Sec.. Processing" Like that.
Check Below code..
data lo_window_manager type ref to if_wd_window_manager.
data lo_api_component type ref to if_wd_component.
data lo_window type ref to if_wd_window.
data lo_view_controller type ref to if_wd_view_controller.
data : lt_text TYPE string_table,
ls_text TYPE string.
ls_text = ' Please WAit 15 Sec...Processing..'.
INSERT ls_text INTO TABLE lt_text.
Get Window manager
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_popup_to_confirm( text = lt_text
button_kind = if_wd_window=>CO_BUTTONS_OK
message_type = if_wd_window=>CO_MSG_TYPE_WARNING
window_title = 'Information to Confirm...'
window_position = if_wd_window=>co_center ).
lo_view_controller = wd_this->wd_get_api( ).
creating ok button
lo_window->subscribe_to_button_event(
button = if_wd_window=>co_button_ok
action_name = 'OK' // Createonce action of name OK.
action_view = lo_view_controller
is_default_button = abap_false ).
Set the height and width here
lo_window->set_window_size( width = '40%' height = '5%' ).
lo_window->open( ).
Cheers,
Kris.
Maybe you are looking for
-
Can't update iPhone 6 calendar
I'm completely mystified by my iPhone 6 calendar syncing behavior. I've read all the posts I could find on calendar syncing and most don't apply. Before iPhone 6/IOS8, I could put entires on my iCal calendar on my Mac (including iCal entries dragged
-
Why are some of my movies not syncing while others are? All of my movies are in m4v form, and some of them sync but some of them don't. Also, when i try to play my movies on my mac AND ipod, some of my movies just randomly freeze and wont let me cont
-
Hi, I'm new to Photoshop CS5. I've used it for about a week and liked how I could use Camera Raw to do editing like noise reduction and sharpening and then save the images as JPEGs or TIFFs or open them in Photoshop for further editing. I did this a
-
Having some trouble installing this patch. Have not found anything that helps. Here is what I am getting: Utility used to install the update failed with exit code 5. Checking installed patches...Executing prepatch script...Verifying sufficient filesy
-
User-Exits for Notification & Order
Hi all. Notification with order --> IW51 transaction for eg. i am creating notification in iw51 with some 5 items. ven i am click the sales orders button which is @ iw51. what are the items found in notification is not copied to order, so i am again