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'">
Similar Messages
-
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);
} -
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 -
Need help with **** Invalid Cursor State ****
Hi,
can someone tell me why am i getting this error....
//******java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state
Any help is greatly appreciated.....
Thanks in advance.
//***********this is the output on servlet side**************//
Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
Starting service Tomcat-Apache
Apache Tomcat/4.0.3
init
DBServlet init: Start
DataAccessor init: Start
Accessor init: Loading Database Driver: sun.jdbc.odbc.JdbcOdbcDriver
DataAccessor init: Getting a connection to - jdbc:odbc:SCANODBC
username SYSDBA
password masterkey
DataAccessor init: Preparing searchPolicy
DataAccessor init: Prepared policySearch
DataAccessor init: Prepared ssnSearch
DataAccessor init: End
After the myDataAccessor
Database Connection...
in doGet(...)
SSSSSSSGetpolicynumber
In GetPolicyInformation
b05015195
Getting Policy Informaton for = b05015195
okay, building vector for policy
in GetPolicyInformation for = b05015195
starting query... policy Information
finishing query... Policy Information
Inside the while(next) loop
sun.jdbc.odbc.JdbcOdbcResultSet@4db06e
sun.jdbc.odbc.JdbcOdbcResultSet@4db06e
b05015195
policy information constructor with resultset
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6031)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188)
at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3266)
at sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:
5398)
at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:326)
at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:383)
at viewscreenappletservlet.policyinformation.<init>(policyinformation.ja
va:56)
at viewscreenappletservlet.DatabaseAccessor.getPolicyInformation(Databas
eAccessor.java:145)
at viewscreenappletservlet.Servlet.policyDisplay(Servlet.java:108)
at viewscreenappletservlet.Servlet.doGet(Servlet.java:91)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServl
et.java:446)
at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java
:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at filters.ExampleFilter.doFilter(ExampleFilter.java:149)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:190)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:475)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2343)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:180)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
468)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
r.java:1012)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
va:1107)
at java.lang.Thread.run(Thread.java:484)
result set closed
1
sending response
Sending policy vector to applet...
Data transmission complete.1) JDBC-ODBC driver is buggy
2) Some drivers (truly speaking most of them) doesn't
support cursors or supports them in a wrong way
Paul -
Hi,Anyone please help me in this code to rectify errors
Hi,
DECLARE
ERRBUF VARCHAR2(200);
RETCODE NUMBER;
P_FROMDATE DATE;
P_TODATE DATE;
X_RETURN_STATUS VARCHAR2(200);
X_MSG_COUNT NUMBER;
X_MSG_DATA VARCHAR2(200);
BEGIN
-- P_FROMDATE :='2010-02-01';
-- P_TODATE :='2010-03-20';
XXTNT_CSD_CREATEORDER.SUBMIT_CREATE_ORDER(
P_FROMDATE => '01-FEB-2010',
P_TODATE => '20-MAR-2010',
X_RETURN_STATUS => X_RETURN_STATUS,
X_MSG_COUNT => X_MSG_COUNT,
X_MSG_DATA => X_MSG_DATA
-- DBMS_OUTPUT.PUT_LINE('ERRBUF = ' || ERRBUF);
-- DBMS_OUTPUT.PUT_LINE('RETCODE = ' || RETCODE);
DBMS_OUTPUT.PUT_LINE('X_RETURN_STATUS = ' || X_RETURN_STATUS);
DBMS_OUTPUT.PUT_LINE('X_MSG_COUNT = ' || X_MSG_COUNT);
DBMS_OUTPUT.PUT_LINE('X_MSG_DATA = ' || X_MSG_DATA);
END;
before header query..
after header query..
X_RETURN_STATUS = S
X_MSG_COUNT =
X_MSG_DATA = why the code is executing up to that line
PROCEDURE submit_Create_order(--errbuf OUT VARCHAR2,
--retcode OUT NUMBER,
p_fromDate IN date,
p_toDate IN date,
x_return_status OUT NOCOPY VARCHAR2,
x_msg_count OUT NOCOPY NUMBER,
x_msg_data OUT NOCOPY VARCHAR2) as
CURSOR C_GET_HDR_DATA (p_fromDate IN date,p_toDate IN date)
IS
SELECT A.TRACKING_NUMBER,
B.CUST_ACCOUNT_ID,
B.PARTY_ID,
A.INCIDENT_NUMBER,
C.INCIDENT_ID,
A.CUST_PO_NUMBER,
A.SHIP_METHOD_CODE,
A.CARRIER_NAME,
A.CREATION_DATE
FROM XXTNT_CSD_INBOUND_TRACKING A,
HZ_CUST_ACCOUNTS B,
CS_INCIDENTS_ALL C
WHERE A.CREATION_DATE between to_date(p_fromDate,'DD-MON-YYYY')
AND to_date(p_toDate,'DD-MON-YYYY')
AND B.ACCOUNT_NUMBER(+) = A.ACCOUNT_NUMBER
--AND a.source='external'
AND A.INCIDENT_NUMBER = C.INCIDENT_NUMBER(+)
AND EXISTS
(SELECT 'x'
FROM xxtnt_csd_inbound_ord_lines_b C
WHERE C.TRACKING_NUMBER = a.tracking_number
AND repair_line_id IS NULL
l_hdr_rec ORDER_HDR_REC;
l_lines_Tbl ORDER_LINE_REC_TBL;
l_lines_tbl_tbl ORDER_LINE_REC_TBL_TBL;
l_index NUMBER;
l_ret_status VARCHAR2(10);
l_msg_count NUMBER;
l_incident_number VARCHAR2(64);
l_incident_id NUMBER;
l_msg_data VARCHAR2(2000);
l_api_name CONSTANT VARCHAR2(30) := 'submt_Create_order';
l_curr_po VARCHAR2(80);
l_prev_po VARCHAR2(80);
l_hdr_po VARCHAR2(80);
l_super_index NUMBER;
l_super_index1 NUMBER;
l_line_count NUMBER;
l_tracking_num varchar2(80);
TYPE c_Get_Line_data IS REF CURSOR;
r_Get_Line_data c_Get_Line_data;
BEGIN
SAVEPOINT submit_Create_Order;
x_return_status := FND_API.G_RET_STS_SUCCESS;
IF (fnd_log.level_procedure >= fnd_log.g_current_runtime_level) THEN
fnd_log.STRING (fnd_log.level_procedure, 'CSD.PLSQL.XXTNT_CSD_CREATEORDER.SUBMIT_CREATE_ORDER.BEGIN', 'Enter - Submit_Create_order');
END IF;
--mo_global.set_policy_context('S', 81);
dbms_output.put_line('before header query..');
OPEN C_GET_HDR_DATA (p_fromDate,p_toDate) ;
FETCH C_GET_HDR_DATA
INTO l_hdr_Rec.Tracking_number,
l_hdr_Rec.cust_account_id,
l_hdr_Rec.party_id,
l_hdr_Rec.incident_number,
l_hdr_Rec.incident_id,
l_hdr_rec.Customer_po_number,
l_hdr_rec.SHIP_METHOD_CODE,
l_hdr_Rec.CARRIER_NAME,
l_hdr_Rec.CREATION_DATE;
l_tracking_num :=l_hdr_Rec.Tracking_number;
*dbms_output.put_line('after header query..');*
CLOSE C_GET_HDR_DATA;
IF (fnd_log.level_procedure >= fnd_log.g_current_runtime_level) THEN
fnd_log.STRING (fnd_log.level_statement, 'CSD.PLSQL.XXTNT_CSD_CREATEORDER.SUBMIT_CREATE_ORDER', 'trackingnumber['||l_hdr_Rec.Tracking_number||']');
fnd_log.STRING (fnd_log.level_statement, 'CSD.PLSQL.XXTNT_CSD_CREATEORDER.SUBMIT_CREATE_ORDER', 'cust_account['||l_hdr_Rec.cust_account_id||']');
fnd_log.STRING (fnd_log.level_statement, 'CSD.PLSQL.XXTNT_CSD_CREATEORDER.SUBMIT_CREATE_ORDER', 'party_id['||l_hdr_Rec.party_id||']');
END IF;
IF( l_hdr_rec.tracking_number IS NOT NULL) THEN
l_index := 1;
l_super_index := 1;
l_prev_po := nvl(l_hdr_rec.customer_po_number,'0');
l_hdr_po := nvl(l_hdr_rec.customer_po_number,'0');
l_super_index1 := 1;
l_line_count := 0;
dbms_output.put_line('before line query loop..');
Open r_Get_Line_data for
SELECT A.ORDER_LINE_ID ORDER_LINE_ID, A.CUSTOMER_REF_NUMBER CUSTOMER_REF_NUMBER,
A.INVENTORY_ITEM_ID INVENTORY_ITEM_ID, A.SERIAL_NUMBER SERIAL_NUMBER,
A.UNIT_OF_MEASURE UNIT_OF_MEASURE,
A.repair_type_id repair_type_id, A.REPAIR_ORG_ID REPAIR_ORG_ID,
A.WARRANTY_FLAG WARRANTY_FLAG, A.WARRANTY_EXP_DATE WARRANTY_EXP_DATE,
A.VENDOR_WARRANTY_FLAG VENDOR_WARRANTY_FLAG, A.VENDOR_WARRANTY_EXP_DATE VENDOR_WARRANTY_EXP_DATE,
A.PRIMARY_VENDOR PRIMARY_VENDOR, A.SECONDARY_VENDOR SECONDARY_VENDOR,
A.NORTEL_WARRANTY_FLAG NORTEL_WARRANTY_FLAG, A.NORTEL_WARRANTY_EXP_DATE NORTEL_WARRANTY_EXP_DATE,
A.SCRAP_DEFECTIVE_ITEM SCRAP_DEFECTIVE_ITEM, A.INVENTORY_ORG_ID INVENTORY_ORG_ID,
A.SUB_INVENTORY SUB_INVENTORY, B.INCIDENT_ID INCIDENT_ID,
A.repair_quantity repair_quantity, a.problem_description problem_description,
a.same4same_flag, A.CTRACS_CONTRACT_FLAG CTRACS_CONTRACT_FLAG,
A.CONTRACT_LINE_ID CONTRACT_LINE_ID, nvl(A.CUST_PO_NUMBER, C.CUST_PO_NUMBER) CUST_PO_NUMBER,
A.REV_IN, A.WARRANTY_QUANTITY FROM xxtnt_csd_inbound_ord_lines_vl A,
CS_INCIDENTS_ALL B, XXTNT_CSD_INBOUND_TRACKING C
WHERE A.TRACKING_NUMBER = l_tracking_num
AND A.INCIDENT_NUMBER = B.INCIDENT_NUMBER(+)
AND A.REPAIR_LINE_ID is NULL AND nvl(A.DISCREP_FLAG,'N') != 'Y'
AND C.TRACKING_NUMBER = A.TRACKING_NUMBER ORDER BY CUST_PO_NUMBER;
LOOP
l_line_count := l_line_count + 1;
l_curr_po := nvl(l_lines_tbl_tbl(l_super_index)(l_super_index1).CUSTOMER_PO_NUMBER,l_hdr_po);
if(l_curr_po <> l_prev_po) then
if(l_super_index1 <> 1) then
l_super_index := l_super_index +1;
l_super_index1 := 1;
end if;
l_prev_po := l_curr_po;
end if;
FETCH r_Get_Line_data INTO
l_lines_tbl_tbl(l_super_index)(l_super_index1).LINE_ID,
l_lines_tbl_tbl(l_super_index)(l_super_index1).CUSTOMER_REF_NUMBER,
l_lines_tbl_tbl(l_super_index)(l_super_index1).INVENTORY_ITEM_ID,
l_lines_tbl_tbl(l_super_index)(l_super_index1).SERIAL_NUMBER,
l_lines_tbl_tbl(l_super_index)(l_super_index1).UNIT_OF_MEASURE,
l_lines_tbl_tbl(l_super_index)(l_super_index1).repair_type_id,
l_lines_tbl_tbl(l_super_index)(l_super_index1).REPAIR_ORG_ID,
l_lines_tbl_tbl(l_super_index)(l_super_index1).TELMAR_WARRANTY_FLAG,
l_lines_tbl_tbl(l_super_index)(l_super_index1).TELMAR_WARRANTY_EXP_DATE,
l_lines_tbl_tbl(l_super_index)(l_super_index1).VENDOR_WARRANTY_FLAG,
l_lines_tbl_tbl(l_super_index)(l_super_index1).VENDOR_WARRANTY_EXP_DATE,
l_lines_tbl_tbl(l_super_index)(l_super_index1).PRIMARY_VENDOR,
l_lines_tbl_tbl(l_super_index)(l_super_index1).SECONDARY_VENDOR,
l_lines_tbl_tbl(l_super_index)(l_super_index1).NORTEL_WARRANTY_FLAG,
l_lines_tbl_tbl(l_super_index)(l_super_index1).NORTEL_WARRANTY_EXP_DATE,
l_lines_tbl_tbl(l_super_index)(l_super_index1).SCRAP_DEFECTIVE_ITEM,
l_lines_tbl_tbl(l_super_index)(l_super_index1).INVENTORY_ORG_ID,
l_lines_tbl_tbl(l_super_index)(l_super_index1).SUB_INVENTORY,
l_lines_tbl_tbl(l_super_index)(l_super_index1).INCIDENT_ID,
l_lines_tbl_tbl(l_super_index)(l_super_index1).repair_quantity,
l_lines_tbl_tbl(l_super_index)(l_super_index1).problem_description,
l_lines_tbl_tbl(l_super_index)(l_super_index1).s4s_flag,
l_lines_tbl_tbl(l_super_index)(l_super_index1).CTRACS_CONTRACT_FLAG,
l_lines_tbl_tbl(l_super_index)(l_super_index1).CONTRACT_LINE_ID,
l_lines_tbl_tbl(l_super_index)(l_super_index1).CUSTOMER_PO_NUMBER,
l_lines_tbl_tbl(l_super_index)(l_super_index1).REV_IN,
l_lines_tbl_tbl(l_super_index)(l_super_index1).WARRANTY_QUANTITY;
l_super_index1 := l_super_index1 + 1;
END LOOP;
dbms_output.put_line('after line query loop..'); -
Need Help: Using Ref Cursor in ProC to call a function within a Package
I'm calling a function within a package that is returning a REF CURSOR.
As per the Oracle Pro*C Programmer's Guide, I did the following:
1) declared my cursor with a: EXEC SQL BEGIN DECLARE SECTION and declared the cursor as: SQL_CURSOR my_cursor;
2) I allocated the cursor as: EXEC SQL ALLOCATE :my_cursor;
3) Via a EXEC SQL.....END-EXEC begin block
I called the package function and assign the return value to my cursor
e.g. my_cursor := package.function(:host1, :host2);
Now, the only difference between my code and the example given in the Pro*C Programmer's Guide is that the example calls a PROCEDURE within a package that passes back the REF CURSOR as an OUT host variable.
Whereas, since I am calling a function, the function ASSIGNS the return REF CURSOR in the return value.
If I say my_cursor := package.function(:host1, :host2); I get a message stating, "PLS-00201: identifier MY_CURSOR" must be declared"
If I say :my_cursor := package.function(:host1, :host2); I get a message stating, "ORA-01480: trailing null missing from STR bind value"
I just want to call a package function and assign the return value to a REF CURSOR variable. There must be a way of doing this. I can do this easily in standard PL/SQL. How can this be done in Pro*C ???
Thanks for any help.Folks, I figured it out. For those who may face this problem in the future you may want to take note for future reference.
Oracle does not allow you to assign the return value of a REF CURSOR from a FUNCTION ( not Procedure - - there is a difference) directly to a host variable. This is the case even if that host variable is declared a CURSOR variable.
The trick is as follows: Declare the REF CURSOR within the PL/SQL BEGIN Block, using the TYPE statement, that will contain the call to the package function. On the call, you then assign the return REF CURSOR value that the function is returning to your REF CURSOR variable declared in the DECLARE section of the EXEC SQL .... END-EXEC PL/SQL Block.
THEN, assign the REF CURSOR variable that was populated from the function call to your HOST cursor varaible. Then fetch this HOST Cursor variable into your Host record structure variable. Then you can deference individual fields as need be within your C or C++ code.
I hope this will help someone facing a deadline crunch. Happy computing ! -
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. -
Search Help Exit and Cursor Position
I have created a new search help, which returns the selected value into the applicable screen field correctly. The problem is that there are multiple fields on the screen, and the first field keeps getting the cursor focus instead of the search help field. Is there any way to control the position of the cursor upon returning from the search help?
Implement this sample program. While the selection screen is displayed, keep hitting enter. Notice the cursor changing from field to field. Maybe you could use this type of coding.
report zrich_0001.
data: cursorfield(30) type c.
parameters: p_matnr type mara-matnr,
p_werks type marc-werks,
p_lgort type mard-lgort.
at selection-screen.
get cursor field cursorfield.
at selection-screen output.
case cursorfield.
when 'P_MATNR'.
set cursor field 'P_WERKS'.
when 'P_WERKS'.
set cursor field 'P_LGORT'.
when 'P_LGORT'.
set cursor field 'P_MATNR'.
endcase.
Regards,
Rich Heilman -
HELP! INVALID CURSOR STATE
i have this simple jsp page that will display a few data from an SQL Database... im just trying to check my connectivity. but everytime i view the page it says "[Microsoft][ODBC SQL Server Driver]Invalid
cursor state'"my JSP environment is
J2EE 1.2.1
JDK 1.3.0_02
BDK 1.1
TOMCAT 3.2.1
SQL Server 2000 Enterprise Edition
Running on Windows 2000 server
Heres my simple code:
<%@ page language = "java" import = "java.sql.*" %>
<html>
<body>
<%
Connection con = null;
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:testdsn:, "sa", "");
Statement stmt = con.createStatement();
Resultset rs = stmt.executeQuery("select * from testtable");
while(rs.next());
out.println(rs.getString(1));
out.println(rs.getString(2));
catch(Exception e)
out.println(e.toString());
%>
</body>
</html>
my testtable have 2 columns and 6 rows all in varchar datatype with values:
test 1 | a
test 2 | b
test 3 | c
test 4 | d
test 5 | e
test 6 | f
is there something wrong with the code? with my environment? please help im finishing a site for a school project but i cant seem to make jsp and sql workSee if using PreparedStatement works better for you than Statement. Sometimes it has better manners.
- Saish
"My karma ran over your dogma." - Anon -
Any help regarding Graph cursor?
Hi All,
I am working with a multi plot graph and i am using a single cursor associated with all the plots.
In my application ,from the 10 plots user can select and view selected no of plots
ie,after execution it displays 10 plots now the user use some on/off buttons to view the selected plots.
My problem occurs related to cursor.
Some plots coincide(say plot1 and plot2),so even when i am not viewing the plot1 and only viewing plot2
the cursor legend shows as plot1 at some points where plot2 is also having value.
And if i am not viewing plot3, but i move the cursor through that location it shows plot3.
Can anybody help me to soft this?
Thnks....Hi
taking a stab in the dark,as there no code to understand,
suggest you check in debug mode the cursor properties as your perform the selected operations.
apart from that its difficult to guess
xseadog -
Please HELP Lenovo G410 Cursor Problem
Please help, iam experiencing a very annoying problem with my new lenovo G410 cursor behavior. At some time my cursor always jumps to another arear. for example when iam typing, at some time the cursor go to another area of the screen, and this really disturbs and annoy. is there anybody who is experiencing this too.... is there any silution for this? thx vry mch...
Hai,
If you still have mouse pointer moving when typing, following tips may help from what i experiances before.
Some optical mouse required a mouse pad for it's working properly. it's depend on mouse quality, if u do not have mouse pad on your mouse, some mouse will detect motion error on your tables.
If you do not have mouse pad, pls use a white paper put under your mouse and try it.
Turn off your Touchpad, because when u typing, your hand may be disturb Touchpad area and its mouse point will moving. because touch pad is a sensetive part if something put under it. (Refer to your Fn key to turn on/off touchpad)
Nicholas K.H.Chai
Malaysia
YM: ckhown -
Need help about ref cursor using like table
Hi Guys...
I am devloping package function And i need help about cursor
One of my function return sys_refcursor. And the return cursor need to be
join another table in database . I don't have to fetch all rows in cursor
All i need to join ref cursor and another table in sql clause
like below
select a.aa , b.cc form ( ref_cursor ) A, table B
where A.dd = B.dd
I appeciate it in advanceMy understanding is that you have a function that returns a refcursor and is called by a java app.
Because this is a commonly used bit of code, you also want to reuse this cursor in other bits of sql and so you want to include it like table in a bit of sql and join that refcursor to other tables.
It's not as easy as you might hope but you can probably achieve this with pipelined functions.
Is it a direction that code should be going down? yes, eventually. I like the idea of pulling commonly used bits of code into a SQL statement especially into the WITH section, provided it could be used efficiently by the CBO.
Is it worth the effort given what you have to do currently to implement it? possibly not.
what else could you do? construct the sql statement independently of the thing that used it and reuse that sql statement rather than the refcursor it returns?
Message was edited by:
dombrooks -
I have a stored procedure that returns a weak REF CURSOR as an out parameter. I want to access the rows that are returned, in an OCI application. I want a sample OCI program that does this. The PL/SQL code is as follows
PACKAGE TEST_PACKAGE AS
TYPE RCT IS REF CURSOR;
END;
PROCEDURE TEST_PROCEDURE (R OUT TEST_PACKAGE.RCT)
AS
BEGIN
OPEN r FOR
SELECT * FROM XXX;
END;
THANKS.Hello,
I used in my application regular connections, I created
CallableStatement with these connections, later I got one cursor with:
mr = ((OracleCallableStatement)cstmt).getCursor(1)
where mr is ResultSet and cstmt is CallableStatement.
But, when I use the Commerce PoolConnection I get serialConnection
and it creates serialCallableStatement and the command:
mr = ((OracleCallableStatement)cstmt).getCursor(1)
get the next exception:
java.lang.ClassCastException:
weblogic.jdbc20.rmi.SerialCallableStatement at......
Are you working with Bea ConnectionPool
or regular Connections?
Thank you.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Matt Sivertson ([email protected]):
I'm having a very strange problem with some JDBC code. Basically, there is a StoredProcedure in the DB that we call through JDBC. One of the out parameters is a REF CURSOR. My user does not have select access to the table, but the stored procedure does. When I try and get the ResultSet corresponding to that RefCursor using the OracleCallableStatement.getCursor() method, and exception gets thrown saying it cannot find the table. We checked on the database, and it is actually performing a new select statement as My user, rather than as the StoredProcedure. If we open up the permissions on the table, everything works fine, but this defeats the whole purpose of what the DBA wants.
BTW, this same Stored Procedure works when fine when accesed through PL/SQL or SQL+. Only JDBC seems to have a problem with it. Any help is greatly appreciated.
Matt Sivertson
[email protected]<HR></BLOCKQUOTE>
null -
Need Help Fixing My Cursor!
My cursor is stuck on the righthand margin...can someone tell me how to get it back on the left and typing appropriate letters? Thx, R
Hi,
Do data will be lost: Pull the battery while the device is on, leave it out for 1 minute.
replace and let the device reboot 1-3 minutes.
See if the curser can function,
Thanks,
Please remember to resolve your thread. Put the check mark in the green box that contained your answer! Thanks
Click Accept as Solution for posts that have solved your issue(s)!
Be sure to click Like! for those who have helped you.
Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure. -
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.
Maybe you are looking for
-
iMac OSX 10.6.8. Getting freeze-ups, beach ball, nothing will work with mouse except pointer will move, but nothing happens clicking on an action. Happens usually with Safari. For instance, a link is clicked on, it starts making connection, I realize
-
How to use LightRoom with Premier Elements?
I have recently learned LightRoom 5 and feel fairly comfortable with it. I'm now in the process of working on movie editing starting with Premier Elements 11. I'm just starting to go through it and I see that it integrates with an organizer that seem
-
How to make a selected item in woodstock Basic's drop down list highlighted
I am trying to create a JSF web page and populate Woodstock Basic drop down with options from a MySql database and highlight some options that a user had selected from previous session. How do I make the selected items appear highlighted? I would app
-
Hi, i implemented a zbadi for iw32 ,that is for Creating new Purchase Requisition if Order contain item with Requisition- which is in released Status.now i am trying to add some code to give the pop-up message for existing entries that wont be modifi
-
Bug in 10.1: Moving projects to events
I converted a bunch of projects after installing 10.1, which now appear under Updated Projects. I am now trying to move each of the updated projects to its corresponding event, which appears to be the way that the new 10.1 libraries are meant to be o