How to..Show a wait dialog when data loads, then hide once data loads
Description: This code will have the SAP default wait dialog become visible when the page loads and hidden after the data is returned for the table.
1. Place this code within the head tags.
<head>
<SCRIPT Language="JavaScript">
function show_wait_dialog () {
document.body.style.cursor = "wait";
document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("display", "block", false);
document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("visibility", "visible", false);
document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("overflow", "auto", false);
document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("width", "255", false);
document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("left", document.body.offsetWidth/2-125, false); document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("top",
document.body.offsetHeight/2-38, false);
function hide_wait_dialog () {
document.body.style.cursor = "auto";
document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("display", "block", false);
document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("visibility", "hidden", false);
document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("overflow", "auto", false);
document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("width", "255", false);
document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("left", document.body.offsetWidth/2-125, false); document.getElementById("SAPBWProcessBoxSpan").style.setAttribute("top", document.body.offsetHeight/2-38, false);
</script>
</head>
2. Place this code right after the <body> tag.
<body>
<!-- New Code -->
<script>
show_wait_dialog()
</script>
3. Lastly, place this code below right after the Table Item and before the </body> tag. (in this case GR1Table)
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="GR1Table"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
<param name="DATA_PROVIDER" value="DP"/>
<param name="WIDTH" value="700"/>
<param name="BLOCK_SIZE" value="3000"/>
<param name="SHOW_PAGING_AREA_TOP" value="X"/>
<param name="HELP_SERVICE" value="ZPRINTING"/>
<param name="HELP_SERVICE_CLASS" value="Z_PRINTING_HELP_SERVICE"/>
ITEM: GR1Table
</object></P>
<P>
<!New code --
<script>
hide_wait_dialog ()
</script>
</body>
This is very helpful. Thanks.
Similar Messages
-
How to show/print waiting message when system is serving pdf to browser
Hi,
does anybody know how to print/show "please wait for your request to be completed..." message when they try to click GeneratePdf button for example
they way i do serving pdf to the browser is as below
response.reset();
response.setContentLength(contentLength);
response.setContentType("application/pdf");
response.setHeader("Content-disposition", "inline; filename=\""System.currentTimeMillis()+".pdf"+ "\"");
output = new BufferedOutputStream(response.getOutputStream());
while (contentLength-- > 0) {
output.write(input.read());
output.flush();and this is what was written in my popup jsp ( when user click GeneratePdf , the application will process it and at the end serve pdf file to the user using popup window )
<body> <h1>Please Wait for your request to be completed...........</h1> </body> </html>
<%
boolean redirect=false;
try{
PdfDispatcher.dispatchApplication(response,session);
}catch(Throwable t){
System.out.println("Application Dispatcher Exception ... "+t.getMessage());
System.out.println("Continue as per normal....");
redirect = true; // will redirect to other jsp output
if(redirect){
//go to other jsp
}The problem is my message above never got printed to the page ( i guess because the browser thinks that the response has not been completed )
by the time the response has been completed the whole page will be cover in pdf document
The reason i want to do this because my user complaining that they see blank page for long time when the system is slow to generate/server pdf to them.
and it would be better to show some "waiting message" when the system is processing the application and server pdf at the end of the operations.
anybody know how to workaround this?
Thanksjust_a_kid83 wrote:
does anybody know how to print/show "please wait for your request to be completed..." message when they try to click GeneratePdf button for exampleUse JavaScript+DOM. Add a <div> somewhere in the page where the message should be displayed and put the message and an animated 'loading' gif in it. Hide the <div> using the CSS 'display' property which is set to 'none'. Then add an onclick event to the button/link which downloads the PDF file which gets the <div> element by its ID and set its 'display' property to 'block'. -
Show an information dialog when data in a grid is loaded
Hi
I am currently working on an ADF 11.1.1.4 application and one of the use case requires to display some data in a grid. The page was designed with data binding and an iterator on a view object. There is no use of some application modules services to get those data.
I need to display a message to my user when the data is the number of data to displayed is supperior to a maximum number (in my case 1000 rows).
I try to find a way to implement it with no success.
Do someone know how to implement that?
By the way, is it possible to call an action on a backing bean when some data are loaded in a grid through the iterator? I have found no listener on the component.
Thanks for your helpIn general when you just do an EXECUTE_QUERY inthe WHEN-NEW-FORM-INSTANCE-trigger, forms fetches as many records as defined in the blocks property "Number of records fetched". If that property is 0, forms fetches as many records as defined in the block's property " Number of records displayed". so you should check these properties.
to fetch the next amount of records, but a NEXT_SET in your button's code. -
How to disable the reminding dialog when close the webi report viewer
Dear all
How to disable the reminding dialog when close the webi report viewer
Background
When user close the webi report viewer in inforview by click the button in the right-top of the webi report viewer frame. It always prompt a dialog to remind user that the modification will be lost without saving.
But customer need to disable this dialog, and can clost the report viewer directly.
So is there any ways to modify this?
I think it shoule modify some .js file under tomcat, but can not find the solution.
Thanks a lot, any information woulde be appreciated.
David ZhangI've had the same issue bugging me since installing Snow, er, lion, er, cat, er, cougar, er, Mountain Lion. Incredibly ANNOYING.
It's stupid stuff like this and reverse scrolling that really turn long-timer users off. I'm personally glad Forstall got fired for blunders such as these.
I'm serious peeved that turning off iCloud Documents & Data actually deletes documents and data locally. That's just incredibly stupid.
MANY thanks mende1 for the answer on how to fix it. -
How to popup a prompt dialog when closing IE?
Hello,every one
How to popup a prompt dialog when closing IE by clicking the "Cross"(close) of the left-up corner?
can you give me any suggestions?
Thnak you!
zhongboqinghi,everyone,
I am wrong. It should be:
How to popup a prompt dialog when closing IE by clicking the "Cross"(close) of the right-up corner?
thank you! -
How to read the pop-dialog window data in adf
HI All,
Using the jdev 11.1.1.6.
I have two questions here :
1) How to read the selected table row data from the Pop -dialog window .
2)hOw can i forward to another URL view/view after selecting the data on dialog window and then click 'ok".
NOte : One of the blog says ' we cant apply the action and actionListener on button ,if we apply showPopupbehavious ,SO how can i forard to another page/URL view ? ,
scenario:
Upon click of some button , infomration ll be displayed on pop-dialog window and then user will select the any one of the row and click "OK"
. based on some data check i should forward it to the view/urlView .
any hits highly appriciated
thanks1) How to read the selected table row data from the Pop -dialog window .simple . get the employeevo and jobvo with relationship(fk or association/viewlink) drop the employee vo as af:table. show a detail icons at the end of column. make popup with show popup behaviour with lazyuncached drop the af:dialog it wiil show the details in job of concern employee
2)hOw can i forward to another URL view/view after selecting the data on dialog window and then click 'ok".
NOte : One of the blog says ' we cant apply the action and actionListener on button ,if we apply showPopupbehavious ,SO how can i forard to another page/URL view ? ,can you show the blo url to me.
grasp things.
http://hazem-adf-tips.blogspot.in/
https://blogs.oracle.com/jdeveloperpm/entry/how-to_efficiently_redirect_to_an_adf_faces_view_using_adf_controller
http://adf-lk.blogspot.in/2011/06/oracle-adf-how-to-redirect-url-in-bean.html
http://adfdeveloper.blogspot.in/2011/07/adf-auto-redirect-while-still-passing.html
http://www.slideshare.net/baigsorcl/oracle-adf-task-flows-for-beginners
http://www.techartifact.com/blogs/2012/03/adf-jsf-some-handy-code-for-backing-beans.html -
How to show an dropdown menu when user click on one point on lineseries?
Hi all,
I am new in flex development.
I am showing line series on the chart, I'd like to give some interaction, when user click on the "point" on the line, I'd like to show a dropdown menu, and react to user's choice on the menu item.
Is it doable? Any sample or reference?
Thanks in advance.
/// JackCool, that definitely moving forward.
I saw two questions here:
1. I added mouseOver/mouseOut action to the LineSeries, it then react when I mouse over the line, instead of at the data point.
2. How do I know the dataPoint's position and locate popmenu in that place? on other words, how do I have dropdown menu. I tried to use "this" as DisplayObjectContainer and send to Menu.createMenu, but seems not working.
Here is the code pieces I am talking about:
[Bindable]public var myMenu:Menu;
// Create and display the Menu control.
private function createAndShow():void {
Menu.
myMenu = Menu.createMenu(holder, myMenuData, true);
myMenu = Menu.createMenu(null, myMenuData, false);
myMenu.labelField="@label";
myMenu.show(10, 10);
private function hideMenu():void {
myMenu.hide();
<mx:series>
<mx:LineSeries mouseOver="createAndShow()" mouseOut="hideMenu()" sortOnXField="true" xField="date1" yField="score1" displayName="Score1">
Thanks. -
How to Show a Model Dialog box in a JApplet
I have a JTable in a JApplet.
I need to display a JDialog box as a Model Dialog. The JDialog expects a Frame as parent. How do I create a Frame and show my own dialog box? without a parent Frame the dialog shows up as a Modeless dialog box.
Any help would be appreciated.I found the answer in
http://www.jguru.com/faq/view.jsp?EID=27423 -
How to show the content of a data object in listbox
Hello together,
i have created a service employee_srv for my data object "Employee". How can I show the content of this data object in a listbox in my view, for example DropDownByKey.
Regards
Waldemar SchakielHi,
An example to create a dynamic context in Webdynpro ABAP:
data:
rootnode_info TYPE REF TO if_wd_context_node_info,
dyn_node TYPE REF TO if_wd_context_node,
tabname_node TYPE REF TO if_wd_context_node,
tablename TYPE string.
rootnode_info = wd_context->get_node_info( ).
cl_wd_dynamic_tool=>create_nodeinfo_from_struct(
parent_info = rootnode_info
node_name = tablename " Data object Table name
structure_name = tablename
is_multiple = abap_true ).
***Bind data to Dynamic table:
DATA: stru_tab TYPE REF TO data.
FIELD-SYMBOLS:
<tab> TYPE table.
create internal table
CREATE DATA stru_tab TYPE TABLE OF (tablename).
ASSIGN stru_tab->* TO <tab>.
dyn_node = wd_context->get_child_node( name = tablename ).
Bind internal table to context node.
dyn_node->bind_table( <tab> ).
Shruthi -
Show the print dialog when running a report from an Oracle form.
I would like to be able to print an Oracle report from an Oracle form but
in addition show the print dialog. My PL/SQL code is shown at the bottom of this post.
I have set the 'printjob' system parameter to 'YES' in the
report and I can bring up a print dialog using the reports runtime.
However, as soon as I run it from my form I lose this capability. Setting
'printjob' to 'YES' in the code has no apparent effect.
Many thanks,
Ben
-- Launch a report
DECLARE
v_pl_Id paramlist; -- parameter list
BEGIN
-- add the parameters to the list.
v_pl_id := CREATE_PARAMETER_LIST ('summary');
ADD_PARAMETER (v_pl_id, 'destype', text_parameter, 'PRINTER');
ADD_PARAMETER (v_pl_id, 'printjob', text_parameter, 'YES');
-- run the report
RUN_PRODUCT (
reports
, 'C:\Test Reports\Test.rep'
, synchronous
, runtime
, filesystem
, v_pl_id
, NULL
END;At 10g not 9i using a bean area on my canvas implementing the following class ...
import java.awt.Frame;
import java.awt.JobAttributes;
import java.awt.PrintJob;
import java.awt.Toolkit;
import javax.swing.JPanel;
import java.io.*;
import oracle.forms.ui.VBean;
public class Select_Printer extends VBean {
public Select_Printer()
super();
public String getPrinterName()
String PrinterName=null;
JobAttributes jobAttributes;
try{
jobAttributes = new JobAttributes();
jobAttributes.setDialog(JobAttributes.DialogType.NATIVE);
Frame dummyFrame = new Frame();
PrintJob pJobDialog = Toolkit.getDefaultToolkit().getPrintJob(
dummyFrame, "Printtest", jobAttributes, null);
PrinterName = jobAttributes.getPrinter();
} catch (Exception e) {
System.out.println("Printer error!");
return PrinterName;
public static void main(String[] args)
Select_Printer select_Printer = new Select_Printer();
System.out.println(select_Printer.getPrinterName() );
} -
Javascript/AJAX - Show image whilst update is done and then hide it.
I want to do an update with AJAX but I want a "waiting" image to display before the update and then hide afterwards. That way, if there is a delay in the update or a row lock, the screen doesn't just freeze, it shows a "please wait" icon.
I am using code like this to save to the database when a field is de-selected (done for ease of testing):
<script type="text/javascript">
function deselect_field(f) {
f.disabled=true;
f.className=f.className + " saving";
var v=new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=SC_TEST',0);
v.add(f.name,f.value);
v.get()
f.className=f.className.replace("saving"," ");
f.disabled=false;
</script>The saving class sets the background. I have tested this without the un-setting and it works fine. I think the issue is the ajax call is made too quickly, ie before the screen has had chance to update.
SO - my question is, how can I have the image (moving gif) display whilst the AJAX call is processing and then hide it at the end?!
Rather not use JQuery if possible.
ThanksHi,
Thanks for the link. The issue I'm having now is that the process isn't firing (it's just updating a row in a table). Also, readyState of 4 never seems to get returned. I seem to get the call for readyState of 1 and then that's it. I've modified my code:
<script type="text/javascript">
var z;
function deselect_field(f) {
z=f;
var v=new htmldb_Get(null,&APP_ID.,'APPLICATION_PROCESS=SC_TEST',0);
v.add(f.name,f.value);
v.GetAsync(f_async);
v=null;
function f_async() { alert(p.readyState);
if (p.readyState==1) {
z.disabled=true;
z.className=z.className.replace("highlight_field"," ");
z.className=z.className + " saving";
else if (p.readyState==4) {
z.className=z.className.replace("saving"," ");
z.disabled=false;
</script>As you can see, I have a debugging alert message in there. This only pops up the once with a value of "1".
Any ideas?! Apart from using classes instead of displaying the HTML element, I can't see much else that is drastically different? Even so, I wouldn't have thought that would have any effect anyway?
Thanks, -
AppleScript: How to pass control to dialog when it is opened using do script
I am running the following AppleScript:
tell application "Adobe Acrobat Pro" to activate
tell application "Adobe Acrobat Pro"
do script "app.execMenuItem(\"GeneralPrefs\");"
delay 2
tell application "System Events"
tell process "Acrobat"
click button "OK" of window "Preferences"
end tell
end tell
end tell
This properly opens the Preferences dialog/window. This part does work. However, then, the script gets stuck and waits until the window closes for continuing. And then, it is no longer possible to click the OK button…
Am I missing something, and how can I get controls back to the AppleScript when the dialog window has opened?
Any advice is highly appreciated.
Max Wyss.I am running the following AppleScript:
tell application "Adobe Acrobat Pro" to activate
tell application "Adobe Acrobat Pro"
do script "app.execMenuItem(\"GeneralPrefs\");"
delay 2
tell application "System Events"
tell process "Acrobat"
click button "OK" of window "Preferences"
end tell
end tell
end tell
This properly opens the Preferences dialog/window. This part does work. However, then, the script gets stuck and waits until the window closes for continuing. And then, it is no longer possible to click the OK button…
Am I missing something, and how can I get controls back to the AppleScript when the dialog window has opened?
Any advice is highly appreciated.
Max Wyss. -
Print to PDF is very slow showing "save as" dialog when printing from Outlook 2013
Hello,
I'm having a problem with one of my users. The problem is intermittent. At first when I was looking at the issue, here is what I saw:
In Outlook 2013, I opened an e-mail. I then selected Print, selected the Adobe PDF printer, and hit the print button. There was over a 1 minute delay before the "save as" dialog appeared to ask me where to save the document and what to name it. I did this for several different e-mails with and without attachments and the problem was consistent. I saved the e-mail to a local e-mail file and the problem was the same. This process was over 30 or 40 minutes. I was pulled away for another issue and now the "save as" dialog pops up within seconds. The user is complaining that this happens regularly. I tried a repair, cleared temp files, and was going to try printing from other apps, but then it started temporarily behaving itself, so I can't tell you if the same delay existed in other apps. I didn't see anything obvious in the event viewer logs.
Has anyone else seen this? Anyone have an idea on how to troubleshoot this?
Thanks,
Jeffery SmithThank for your help Bill, but changing settings in the distiller did not seem to work. As my application prints directly to the default application without using anything specific to Acrobat, I was hoping there was a simple way forward. A colleague suggested copying registry entries from the account I logged on as to the S-1-5-18 entry, then rebooting. This had no effect as the prompt still comes up.
Aandi, I don't have the Acrobat SDK or any experience of it.
Also I'm not sure where any code/script would sit since the application is stable and so I would rather not change it.
If it amounts to a few lines of javascript sitting outside the application then that would be of interest. -
How to suppress Save As dialog when using the Close button on an editable pdf
Environment: Windows 7, SDK 9, Adobe Acrobat Pro X, Visual Studio 2010 Professional
Summary: when a document is opened for editing using automation, edited, then closed using the "Close" button, the confirmation dialog appears, "yes" is selected and then the "Save As" dialog appears. It should save without the "Save As" dialog in the same way it does were the document opened from Adobe Acrobat directly. My question is, is there any flag to set which governs whether the "Save As" dialog appears as part of the close document process. It is behaving as if the document is read-only upon close. (it isn't)
This is how the document is opened from C++:
if(SUCCEEDED(hr = ::CoCreateInstance(__uuidof(Adobe9::Acrobat::CAcroAVDoc), 0, CLSCTX_ALL, IID_IUnknown, (void**)&pUnk))){
hr = OleRun(pUnk);
if (SUCCEEDED(hr)){
if (SUCCEEDED(hr = pUnk->QueryInterface(&pAVDoc))){
hr = pAVDoc->Open((BSTR)CComBSTR(strPath), strDocName, &bRet);
Even when the plugin is removed from the plug_ins\AcrobatSDK directory, the behaviour is the same.
Another reproduction is running the BasicIacVC sample, commenting out all lines from gAcroPdDoc->Close(); in InitInstance() and returning TRUE. If an editable document is opened using the sample, edited then closed using the "X" button, the confirmation dialog is followed by a "Save As" dialog as if it were a read-only document which it is not.
Any suggestions would be appreciated.
Regards,
EvanYes, it does. (as long as the pdf has been opened via a COM interface)
-
How to show list of items when the user pressed tab key in an empty field
Hi all
i would like to know if there is a way to open a form with items list which will be shown to the user when he pressed the tab key within a field for instance "item code" field will present a search form with a table filled with item codes and their description.
i'm currently working in 2004 version. i know how to catch the event.
i'm creating a form with a matrix object binded to a datasource which is connected to the data base table which contains all the items.
what would like to know if there is a better way to this. maybe using buisness partner objects. and if so how
appriciate the help
YoavYou Should use Formatted Search in this case.
You must create and associate a query for your field.
click on the field you want items to be listed and press Shift + F2
catch the keydown event of this field and check pval.charpressed = 9 (tab key press)
then execute
SBO_Application.SendKeys("+")
Maybe you are looking for
-
How do I effectively join the Macs to the AD?
Hi. First, I must qualify that I am NOT a network individual. Some of the research I've done, I've managed to follow, but I don't have the technical know-how to fully understand it all. I desparately need help, please. I work in a medium-sized enviro
-
Speaker and notification problem on my iPod touch...?
Earlier today, I was listening to music on my ipod when it suddenly turned off. This confused me, so I just turned it back on- the only problem is that it didnt work. I pressed the play button, and it showed the song was playing, but it wasnt. I did
-
FI integration with MM,SD,PS,CO,HR
Hi FI integration with MM,SD,PS,CO,HR. Thanks keshavp.
-
Screen changes made through JavaScript are not rendered
Hello, What I have done first: 1) Download <a href="http://www.adobe.com/devnet/livecycle/articles/AddingRemovingTableRows.pdf">http://www.adobe.com/devnet/livecycle/articles/AddingRemovingTableRows.pdf</a> 2) Open it with Adobe Designer 3) Save as x
-
I've tried to open genius numerous times and I get the same error message. I llike to make playlists with songs from my library.What is the solution so I can use genius?