No cursor or hourGlass cursor
hi,
I have a window which has a Viewport, Viewport has a gridField as it's
child. (There are other widgets, which are made invisible at runtime).
The way window does display using a Draw method, which in its simplified
form looks like:
<theGridField>.state = = FS_INVISIBLE;
localPanel : Panel = new;
localPanel.row = 1;
localPanel.column = 1;
// set other attributes of localPanel
localPanel.parent = <theGridField>;
localPicture : PictureGraphic = new (name = .. etc);
localPicture.parent = localPanel;
<theGridField>.State = FS_UPDATE;
The cursor becomes 'hourGlass' while 'Draw' is running and becomes
'pointer' at end. This is OK; but once in a while, we find cursor not
changing to 'pointer' (or totally disappearing) unless mouse is moved
out of the window and bring back Or move to menu bar and bring back.
This is a trouble for the automated tests, though not for the end users
as much.
We have 3.0.G.2. I have already tried Setting self.window.mouseCursor,
<theGridField>.mouseCursor and <theViewport>.mouseCursor to
MC_SYSTEMDEFAULT. It works for first 4-5 windows. (One can have as many
instances of the window as (s)he wants ).
Any suggestion is welcome. Thanks in advance.
-- Shriyal
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
It can be tuned and there are some things I can do to speed it up in certain cases, but the search is a people search so if they use % in part of the search string, it is bound to be slow.
So for those instances, I was hoping there was just some setting I was missing that would put up an hourglass while it searched.
I changed it so that if someone puts in a last name without the %, that it uses indexes and it comes right back in just a few seconds. But the other way is still slow.
Similar Messages
-
i want to change cursor to hourglass when a new servlet is loading. working of my program is that on click of submit,the present servlet unloads and a new servlet is loaded.this new servlet takes time. so i can't write the code in prevoius servlet for cursor and the new servlet which is being loaded changes cursor to hourglass only after fully loading. please help me in this regard
Write the javascript, flush the output stream, and the hourglass should be shown right away...
note: You should write some stuff before the javascript -- send some text maybe the top of the output page. IE has some internal buffer you have to fill up before server-side flushing works.
Again: You should make sure you send the javascript and flush before you start processing.
Also: You will not be able to do a send redirect if you use this approach. If this is not satisfactory, you could try using one of the "Please Wait" mechanisms described on this site (use the forum or google search for JSP "Please Wait" to find them) to do the job. -
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?
-
Does anybody have idea how to prevent hourglass cursor when using Ajax. Sometimes you need to have many server requests for small portion of data but frequently - let's say each 1 or 3 sec. In such case flickering of mouse cursor from from arrow to hourglass and back to arrow is not desired. Has anybody been able to do something about it? I know it's IE feature and so and so but still ...
I have done some search on this problem and found very little.
I have already tried document.body.style.cursor = "default"; doesn't seem to work.
Here is very good example of what I mean:
http://apex.oracle.com/pls/otn/f?p=25473:1
This page just uses Ajax to show the server time in a text box - notice the constant flickering of the mouse cursor ? This can be annoying especially if you are trying to implement something like instant messenger or some kind of game.
Any thoughts?
Georgefunction refreshReport() {
var get = new htmldb_Get(null,$x('pFlowId').value,'APPLICATION_PROCESS=date_refresh',3);
get.GetAsync(f_AsyncReturn);
get = null;
function f_AsyncReturn(){
if(p.readyState == 1){
}else if(p.readyState == 2){
}else if(p.readyState == 3){
}else if(p.readyState == 4){
$x('dateholder').innerHTML = p.responseText;
html_HideElement('AjaxLoading');
}else{return false;}
function startRefresh() {
g_interval = window.setInterval("refreshReport()", 1000);
function stopRefresh() {
window.clearInterval(g_interval);
} -
Problem in SQL with CURSOR( ) ,Why the CURSOR did not work?
hi All:
I have a problem in SQL with CURSOR.
The data is as the attachments.
Here is the SQL statement as follow:
SELECT A.WADCTO,A.WADOCO,B.IGCOST,CURSOR (SELECT X.IGLITM
FROM F3102 X
WHERE X.IGDOCO=A.WADOCO
AND X.IGCOST IN ('B1','D1','C3')) AS DETAIL
FROM F4801 A INNER JOIN F3102 B ON A.WADOCO=B.IGDOCO AND A.WADCTO=B.IGDCTO AND B.IGCOST>' '
WHERE A.WADOCO='10004'
The statement above returns records as follow:
WADC WADOCO IGCOST DETAIL
WO 10004 A1 CURSOR STATEMENT : 4
CURSOR STATEMENT : 4
IGLITM
1KV90CPG2
1KV90CPG2
1KV90CPG2
But, after I add one statement in the subquery, there is no record returned from CURSOR.
Here is the SQL statement:
SELECT A.WADCTO,A.WADOCO,B.IGCOST,CURSOR (SELECT X.IGLITM
FROM F3102 X
WHERE X.IGDOCO=A.WADOCO
AND X.IGCOST=B.IGCOST
AND X.IGCOST IN ('B1','D1','C3')) AS DETAIL
FROM F4801 A INNER JOIN F3102 B ON A.WADOCO=B.IGDOCO AND A.WADCTO=B.IGDCTO AND B.IGCOST>' '
WHERE A.WADOCO='10004'
The statement above returns records as follow:
WADC WADOCO IGCOST DETAIL
WO 10004 A1 CURSOR STATEMENT : 4
CURSOR STATEMENT : 4
no rows selected
Why the CURSOR did not work?
The database version is Oracle Database 10g Release 10.2.0.4.0 - 64bit Production.
F3102 DATA:
IGDOCO IGDCTO IGLITM IGCOST
10004 WO 1KV90CPG2 A1
10004 WO 1KV90CPG2 B1
10004 WO 1KV90CPG2 C3
10004 WO 1KV90CPG2 D1
F4801 DATA:
WADCTO WADOCO
WO 10004
Edited by: user2319139 on 2010/3/2 上午 1:17
Edited by: user2319139 on 2010/3/2 上午 1:20Why this structure and not a join?
The cursor() function returns a cursor handle that needs to be processed - in other words, the client needs to fetch data from it. The Oracle® Database SQL Reference+ (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/expressions005.htm#i1035107) describes it as being equivalent to a ref cursor handle.
Thus why are you creating ref cursor handles as a column in a SQL projection - where each row will have a "+nested+" ref cursor handle to process. What problem are you attempting to hack solve this way? -
Using a Cursor in another cursor
Hi Guys,
I have declared a cursor in one of my program unit in forms 6i form, like this:
Declare
Cursor C1 is select employee_id, emp_name from employees;
Begin
End;
Now i have to declare an other cursor that will be using the employee_id of the cursor C1.
for example :
Declare
Cursor C1 is select employee_id, emp_name from employees;
Cursor C2 is select C1.Employee_id, Employees.Age
from C1, employees;
Begin
End;
I dont think we can do this.... as it gives error in forms. What is the alternate how can i reference a cursor in another cursor??
Kindly Help Pliz, Imran BaigImran,
you can do this. The way you try to read from a cursor is not correct because you treat a cursor like a table which it isn't. You have to loop through the parent cursor and then within this loop, loop the second cursor. Please see the PLSQL documentation on OTN on how to do this (its not that big of a deal).
Frank -
How to Execute sql query in PL/SQL ( a variable) with out using Cursor or REF cursor
Hi
I am building a dynamic query based on some conditions
as an example
v_query varchar2(2000);
x1 varchar2(20);
y1 varchar2(20);
z1 varchar2(20);
v_query := ' Select x,y,z into x1,y1,z1 From ... ';
Is there any way to execute the query with out using cursor or ref cursor..
Thanks
ArunBoth Tod and Eric provided valid responses given the format of the queory you supplied. Howver, if you want to use dynamic sql in either way, you need to be absolutely certain that your query will always only return a single row (e.g. SELECT COUNT(*) FROM mytable), because if it retuns more than one, your procedure will break unless you have an exception handler to handle either TOO_MANY_ROWS or OTHERS.
If you want to pull in a lot of data without walking a cursor, you should look at the BULK COLLECT options. -
How can I create cursors within the cursor?
How can I create cursors within the cursor?
Table1 2001 - 2007 data
Account_no
Account_eff_dt
No_account_holder
Num
Seq_Num
Value1
Value2
Table2_Historical (doesn't have Num as a field) 1990 - 2000 data
Account_no
Account_eff_dt
No_account_holder
Seq_Num
Value1
Value2
Table3_06
Account_no
Account_eff_dt
No_account_holder
Num
My result table should be:
Table_result_06
Account_no
Account_eff_dt
No_account_holder
Num
Value1_min (the minimum value for the minimum of record_sequence)
Value2_max (the maximum value for the maximum of record_sequence)
I have to get data from Table1 and Table2_Historical. If one account was open in 1998 and is still effective, the minimum value of that account is in the Table2_Historical.
Let's say I open a cursor:
cursor_first is
select * from table3_06;
open csr_first
loop
fetch cursor_first into
v_Account_no
v_Account_eff_dt
v_No_account_holder
v_Num
EXIT WHEN csr_first%NOTFOUND;
How can I open a second cursor from here that will get the Seq_Num from Table1
csr_second
select Seq_Num from Table1 where
v_Account_no = Account_no
v_Account_eff_dt <= Account_eff_dt
v_No_account_holder=No_account_holder
v_Num = Num
How does it works???
Thanks a lotThanks so much for replying back. Here is what I am trying to do.
I have to create a table for each year 2002, 2003, 2004, 2005, 2006 that has all the account numbers that are active each year plus some other characteristics.
Let’s say I will create Table_result_06. This table will have the following fields. The account number, account effective date, Number of the account holder and the field Num (The primary key is a combination of all 4 fields), the beginning look of value 1 in 2006, the last look of value 1 in 2006.
Table_result_06
Account_no key
Account_eff_dt key
No_account_holder key
Num key
Value1_min (the minimum value for the minimum of record_sequence)
Value2_max (the maximum value for the maximum of record_sequence)
All the active account numbers with the Account_eff_dt, No_account_holder and Num are in the Table3. As such I can build a query that connects Table3 with table Table1 on all 4 fileds, Account_no, Account_eff_dt, No_account_holder, Num and find the Value1_min for the min of req_sequence in 2006 and Value1_max for the max of req_sequence in 2006. Here my problem starts.
Table 1 doesn’t have a new entry if nothing has changed in the account. So if this account was open in 1993 and nothing has changed I don’t have an entry in 2006 but this doesn’t mean that this account doesn’t exist in 2006. So to find the minimum value I have to go back in 1993 and find the max and min for that year and that will be max and min in 2006 as well.
As such I have to go to Table_2 historical and search for min and max. But this table doesn’t have the field NUM and if I match only on the Account_no, Account_eff_dt and No_account_holder I don’t get a unique record.
So how can I connect all three tables, Table 1 for max and min, if it doesn’t find anything will go to table 2 find the two values and populate Table_result_06.
Thanks so much again for your hep, -
Cursor within the cursor showing error
Hi,
I am using a cursor within the cursor to create a procedure.I am getting the below error while compiling this
15/7 PL/SQL: SQL Statement ignored
16/14 PL/SQL: ORA-00942: table or view does not exist
79/10 PL/SQL: Statement ignored
82/31 PLS-00364: loop index variable 'I' use is invalid
84/10 PL/SQL: Statement ignored
84/50 PLS-00364: loop index variable 'I' use is invalid
98/10 PL/SQL: Statement ignored
101/31 PLS-00364: loop index variable 'I' use is invalid
103/10 PL/SQL: Statement ignored
103/50 PLS-00364: loop index variable 'I' use is invalid
Am i using a wrong syntax,Could anyone help me on this..Please find my procedure code below
CREATE OR REPLACE PROCEDURE DM_EIS.YOY_PURGE_PRC
AS
VAR_TEMP NUMBER := 1;
VAR_TAB_NAME VARCHAR2(100);
VAR_TAB_OWNER VARCHAR2(100);
--For fetching table list to be processed
CURSOR CUR_ONE IS
SELECT OWNER,TABLE_NAME,FILTER_DATE,FILTER_VALUE
FROM DM_EIS.NONPART_PURGE_CTL WHERE NVL(STATUS,'NULL') <> 'COMPLETED'
AND PURGE_PREFERENCE='Y';
--For fetching indexs that are to be disabled
CURSOR CUR_IND IS
SELECT * FROM DBA_INDEXES WHERE TABLE_NAME = var_tab_name
AND OWNER = var_tab_owner
AND UNIQUENESS <> 'UNIQUE';
BEGIN
FOR C IN CUR_ONE
LOOP
--CHECK IF TEMP TABLE IS ALREADY PRESENT, IF SO DROP IT.
SELECT COUNT(*) INTO VAR_TEMP FROM ALL_TABLES WHERE TABLE_NAME = 'T_NOPART_PURGE';
IF VAR_TEMP = 1
THEN
EXECUTE IMMEDIATE 'DROP TABLE DM_EIS.T_NOPART_PURGE';
END IF;
---update the columns of Control table
UPDATE DM_EIS.NONPART_PURGE_CTL
SET STATUS = 'RUNNING'
WHERE TABLE_NAME = C.TABLE_NAME
AND OWNER = C.OWNER;
COMMIT;
UPDATE DM_EIS.NONPART_PURGE_CTL
SET START_TIME = SYSDATE
WHERE TABLE_NAME = C.TABLE_NAME
AND OWNER = C.OWNER;
COMMIT;
--Check whether the column value is date or year
IF C.FILTER_VALUE = 'YEAR' THEN
--Move data to temp table and truncate main table
execute immediate 'create table DM_EIS.T_NOPART_PURGE as select /*+ PARALLEL(ext,4) */ ext.* from '||c.owner||'.'|| c.table_name || ' ext where nvl(' || c.FILTER_DATE || ',''01-Feb-2009'') >= ''2009''';
DBMS_OUTPUT.PUT_LINE('Truncating the main table'||C.OWNER||'.'|| C.TABLE_NAME);
EXECUTE IMMEDIATE 'TRUNCATE TABLE ' ||C.OWNER||'.'|| C.TABLE_NAME;
else
--Move data to temp table and truncate main table
execute immediate 'create table DM_EIS.T_NOPART_PURGE as select /*+ PARALLEL(ext,4) */ ext.* from '||c.owner||'.'|| c.table_name || ' ext where nvl(' || c.FILTER_DATE || ',''01-Feb-2009'') >= ''01-Jan-2009''';
DBMS_OUTPUT.PUT_LINE('Truncating the main table'||C.OWNER||'.'|| C.TABLE_NAME);
EXECUTE IMMEDIATE 'TRUNCATE TABLE ' ||C.OWNER||'.'|| C.TABLE_NAME;
end if;
var_tab_name := c.table_name;
var_tab_owner := c.owner;
--Disable the indexes and load data back to main table,
for i in cur_ind
loop
execute immediate 'Alter index '||c.OWNER ||'.'|| i.index_name || ' unusable';
dbms_output.put_line(c.OWNER ||'.'|| i.index_name||' is unusable');
end loop;
---insert back the data into the table from temporary table
execute immediate 'insert /*Append*/ into '||c.OWNER ||'.'|| c.table_name || ' select /* PARALLEL(tmp,4) */ tmp.* from DM_EIS.T_NOPART_PURGE tmp';
commit;
--Rebuild the indexes
for i in cur_ind
loop
execute immediate 'Alter index '||c.OWNER ||'.'|| i.index_name || ' rebuild compute statistics';
dbms_output.put_line(c.OWNER ||'.'|| i.index_name||' is rebuilt');
end loop;
--Gather stats for the table
DBMS_STATS.GATHER_TABLE_STATS(OWNNAME=>c.OWNER,
TABNAME=>c.table_name,
CASCADE=>TRUE,
ESTIMATE_PERCENT=>dbms_stats.auto_sample_size
dbms_output.put_line(c.OWNER ||'.'|| c.table_name||' is analyzed');
---update the columns of Control table
update DM_EIS.NONPART_PURGE_CTL
set status = 'COMPLETED'
where TABLE_NAME = c.TABLE_NAME
AND OWNER = C.OWNER;
commit;
UPDATE DM_EIS.NONPART_PURGE_CTL
SET END_TIME = SYSDATE
WHERE TABLE_NAME = C.TABLE_NAME
AND OWNER = C.OWNER;
COMMIT;
UPDATE DM_EIS.NONPART_PURGE_CTL
SET ELAPSED_TIME =ROUND((END_TIME-START_TIME)*1440,2)
WHERE TABLE_NAME = C.TABLE_NAME
AND OWNER = C.OWNER;
COMMIT;
UPDATE DM_EIS.NONPART_PURGE_CTL
SET LAST_UPDATED_DT = SYSDATE
WHERE TABLE_NAME = C.TABLE_NAME
AND OWNER = C.OWNER;
COMMIT;
dbms_output.put_line('Data Purging is done for '||c.OWNER ||'.'|| c.table_name);
end loop;
EXCEPTION
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR(-20003,' ERROR IN DM_EIS.NONPART_PURGE_PRC'|| SQLCODE||'-'||SQLERRM);
End;
/Oracle is not a Microsoft product. What it appears you are doing is a phenomenally efficient way to bring your database to its knees whimpering and begging that you take a class from Oracle University.
Temporary tables in Oracle are permanent tables and that is the proper design for working with the product. Creating "temp" tables using dynamic SQL in a stored procedure is multiple layers of bad practice layered on top of each other. Something made more obvious by the fact that you appear to not have read that portion of the docs that explain the differences between explicit privilege grants and grants made via roles when it comes to PL/SQL.
My recommendation is that you throw this code away and read the docs. First on the security model, roles, and object privileges. Next on the use of Global Temporary Tables. -
Converting cursor to ref cursor in Report builder pl/sql
Hi,
I am trying to use dynamic sql in My report 's pl/sql code.
I can not use execute Immediate statement since this feature is not suppoerted at client side and i am doing the coding In my local mchine and running the report loaclly.......???
Another way to use dynamic sql is by using dbms_sql package.
Using dbms_sql to run a sql will give me a normal cursor as an output.
Since in report builder pl/sql only ref cursor is allowed as a return type from a function........the problem i m facing is conversion of the cursor to ref cursor......
in oracle 11g we have a built in function in dbms_sql package that can be used for the conversion....
i m using oracle 10 g where the above mentioned feature is not available............
Please give some way to resolve this issue............!!!!!!!!!!!!
Thanks in Advance.....!!!!!!!
AbhishantYou may use some stored procedures that will take full advantage of dynamic SQL. Make a stored proc that inserts rows in a global temporary table. You will call that stored proc in the afterpform trigger. And you will have the report querry select from the temporary table populated by the stored proc.
I did some things like that.
HTH -
Move the name of cursor (not the cursor itself) on the XY graph
I use cursor list property to overlay cursors on the XY graph, everything looks fine except that the name of the cursor and the cursor are at the same position, so it's hard to read the name of the cursor. Is there anyway to dynamically move the name of the cursor?
No, you cannot do this programatically, the cursor name position may only be moved manually when the Name is "Trackable" (when Allow Drag == TRUE). However, you can use cursors in pairs of two to accomplish this. Use the first one as a normal cursor and the second one only for the cursor name, making the line (Hair Style) and point (Point Style) invisible (=0). If you have multiple cursors, just treat them as pairs and multiple your index by two, when finding the index of the pair.
Good luck,
Jim
Attachments:
Cursors.vi 39 KB -
cannot get iTUNES 10.5 to run on PC w/ XP after upgrade. Window opens, but cursor stays as hourglass and I eventually get an error message saying it has encountered a problem and has to close. I've tried everything suggested on the Apple site, included complete uninstall several times.
Okay ... so it's not one of the cases of bodged up ACLs on the Apple folder in Common Files. (That's been underlying a few of the recalcitrant E7W5s.
Just in case, let's try the fixit from the following document:
Fix problems with programs that can't be installed or uninstalled -
HourGlass Cursor on top of Full Screen Video
When I run Quick Time video at full screen size, my cursor goes to an hourglass and stays on top of the video. How can I eliminate my cursor???
ThanksI made some changes (navto://), but yesterday my folio completely disappeared in Content Viewer (iPad) and can't get it back. I need to fix this first and will let you know if my buttons are working.
Edit: figured out why my folio disappeared. By accident I gave two articles the same name. No error message but it made the folio disappear completely. -
Help on HourGlass Cursor....
Hi Guys....
I was trying some code like..
<INPUT NAME="ok" TYPE="submit" CLASS="buttonAction" VALUE='Save' onClick="style=cursor:wait" >
and this does not work.. I want the hourglass to show up when someone clicks on the save button and while it goes to another page.. I also want to put it in a style sheet.. I tried many things, but no luck.. Any help will be really appreciated..Thanks in Advance....Here's what I've done when a form's submitted (this works in IE)
<form method="get" action="MyServlet" onsubmit="document.body.style.cursor='wait'"> -
Hourglass Cursor while processing
Does anyone know how to control the cursor in an ADF application?
I've notice that the default behavior differs between IE and Firefox.
When processing (logging in for example), Firefox displays an hourglass with the pointer to indicate to the user to wait. In IE, there is no change to the cursor. We'd like to be able to have IE change the cursor when busy but don't know if this is possible.
(10.1.3.3, IE6.0, Firefox 2.0)
Thanks.Javascript is not desirable. However, Oracle Support have provided me with a workaround which is to set the Blocking property of the af:commandButton to True. This forces the hourglass.
Maybe you are looking for
-
Need help on Installing Oracle 8.1.5 !!!
Hi, I was just exposed to a DBA's work. Please forgive me if my question sounds naive. Our company bought oracle 8.1.5 Standard Edition for Linux and the OUI gives three categories of choices for installation: Oracle 8i Enterprise Edition, Oracle8i C
-
IPhone locks up during update/sync
I have synched my prior iPhone for several months so everything was set up fine, but it no longer will allow downloads. Last week, I tried to download the update for iPhone, and it locked up. When I disconnected, the iPhone was ruined, would only acc
-
I have to create an interactive PDF off of a client's InDesign document. I have included mp3's which function fine in Adobe Readers down to version 9. When I try to test in in Reader 8, I get this a warning that says: The plug-in required by this 'Ri
-
Hello Experts i create one master form which has three text box which is connected to master table and matrix connected to master row table i am also created object for it but when i click on add button for data adding it gives ERROR like "C
-
How to Fit iTunes to my screen
I recently purchased my first iPod. When I open the preferences window, I make all the selections I want; however, the window is bigger than my screen and I cannot click the "Ok" or "accept" button at the bottom. I've tried right click for properties