NON Cursor Select
Does anyone know how to prepare and execute a select statement w/out using a cursor. My query is only ever going to return one row and I do not want the overhead of a cursor. I tried a simple "SELECT * INTO :stRec WHERE key = :key1" but the execute does not understand the INTO clause. Thanks in advance.
A NONVURSOR SELECT WILL HAVE MORE OVERHEAD
WHEN COMPARED TO CURSOR SELECT BECAUSE
IT HAS TO IMPLICTLY CHECK WHETHER NUMBER
OF RETRIEVED < 2
null
Similar Messages
-
How can I count the number of pixels in a non-rectangular selection?
I need to know the exact number of pixels that I select for a size comparison. It's a non-rectangular selection similar to a cloud.
I'm using CS2 but could upgrade if needed.Thank You
Michael D. Sutton
(435) 723-3566
(435) 720-2878
[email protected] -
Print only cursor-selected area of a PDF in Acrobat Pro, just as it is psbl to do in a browser
Hi
I want to print only cursor-selected area of a PDF in Acrobat Pro. That could be both text and images, which are in my selection. Just as it is psbl to do in a browser. Is it possible in Acrobat PRO?
I am using the latest Acrobat Pro 11.0.9Thanks for your effort but this again clearly does NOT answer my question. I do see a particular problem and that is that I might want to select text and images over a range of multiple pages. In a doc of 20 pages I might want to make a single selection of the text starting PRECISELY at the MIDDLE of page 2 and then continue dragging my selection all the way to PRECISELY the MIDDLE of page 15, thereby selecting all text and images within the precise range of my selection. That is some 13 pages there and I want to print out ONLY THAT selection of text and images. And in that case I cannot use your suggestion with the marquee zoom. Do you get me?
-
DBMS_XMLQuery behavior when using stored function within cursor select
Consider the following SQL Statement
select t1.id
, t1.name
, cursor ( select t2.id
from tab t2
where t2.t1_id
= t1.id
and validate(t2.xyz,:bd1)
= 1
from tab t1
where t1.id = :bd2
DBMS_XMLQuery is used to create a context and to bind the appropriate values. In this case 'validate' is a stored function. I get the following error message upon execution:
ORA-29532: Java call terminated by uncaught Java exception:
java.sql.SQLException: Missing IN or OUT parameter at index:: 1
Issuing a similar statement in SQL*Plus works fine. I was wondering whether this is a known issue when using a stored function in the cursor select statement in the context of DBMS_XMLQuery or whether I'm doing something wrong.Hi Jan,
This problem has been identified and fixed. The fix should be available in the next release. Thank you for bringing this up to our attention.
visar -
Cursor selection not working-bu​g?
hi i've the following problem. if u can find out please try the same
created 3 cursors for an XY graph
select one or many cursors from the legend. try to move the cursors using the '' tool. repeat this again
the cursor selection is unpredictable!!
Renn
LV 12.0f1 (64 bit)
Kudos always welcome for helpful postsHi Dan,
i have selected Cursor 0
then i clicked near 7, then using the navigation button (on the right side), i've increased the Y value. Cursor 0 is selected but, the Y value of Cursor 2 is incremented.
Many Customers are having problem with this. Please help.
Thanks
RENN
Kudos always welcome for helpful posts
Attachments:
TestCursorLV2012.vi 8 KB
TestCursorLV8.0.vi 11 KB -
Reg. cursor-selection in module pool....have ur points.
Hi all,
Pleas. help me with a simple example of at cursor-selection in module pool programming.
with simple code & steps
<b>Have ur points.</b>
Regards,
[email protected]Hi Pradeep,
The Best explanation with example comes from our help.sap.com....
<i><b>http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm</b></i>
Also this might help...
<b>MODULE mod [ AT {EXIT-COMMAND|CURSOR-SELECTION} ]
[ ON {CHAIN-INPUT|CHAIN-REQUEST} ]
[ SWITCH switch ].
... AT CURSOR-SELECTION</b>
The AT CURSOR-SELECTION addition at the event PAI causes the module mod to be called only if
The function used to trigger event PAI has function code "CS" and function type "S"
The cursor is placed on a single input or output field of the screen at the moment of the user action
The call occurs within the usual PAI processing, meaning that the automatic input checks defined in the system or in the ABAP Dictionary are executed and the MODULE statement is called according to its position in the event block. You can use the addition in connection with the FIELD statement.
If the PAI event is triggered under the above circumstances, the function code is not passed to sy-ucomm and the OK field. They keep their previous values.
<b>Note</b>
The function type and function code of a function are determined in the Screen Painter or in the Menu Painter. We recommend to assign function code "CS" in the Menu Painter to function key F2 in order to simultaneously assign the double-click function of the mouse to it. This allows you to assign dialog modules to the selection of input or output fields.
<b><u>Refer thread:</u></b> <i><b>Re: MODULE REQUEST
Hope that helps!!
<i><b>*Reward useful answers*</b></i>
Regards,
Naveenan. -
Is it me, or has Pages lost it's ability to do a multiple non contiguous selection ?
Yes, it's just one of the many, many features that have been eliminated or changed. Leave feedback for the Pages team using the link in the Pages menu.
-
Using select cursor(select...) from ...
I am trying to use the following construction in the report region:
select
cursor(select * from employees) as "EMPs",
cursor(select * from departments) as "DEPTs"
from dual
It is failing with the following error:
report error:
ORA-00932: inconsistent datatypes: expected NUMBER got CURSER
Just wondering if I just cannot use such a construction, or it's a bug....OK,
My real query is much more complex then the one I specified above. I was just interested in using that specific syntaxis, as I use it a lot in my XSQL pages, and it works perfectly.
For a sake of an argument, lets say I want to see all the departments' attributes, alltogether with a list of all employees working for that specific department. Of course, I could have used an outer join to achieve this, but I want to use the following:
SELECT d.department_id,
d.department_name,
d.location_id,
CURSOR(SELECT e.first_name,
e.last_name
FROM employees e
WHERE e.department_id = d.department_id
) emps
FROM depatments dWhen I use similar syntaxis in my XSQL pages, it returns a pretty xml document like the following:
<ROW_SET>
<ROW id="1">
<department_id>1</department_id>
<department_name>Accounting</department_name>
<location_id>12</location_id>
<ROW_SET_EMPS>
<ROW id="1">
<first_name>John</first_name>
<last_name>Smith</last_name>
</ROW>
<ROW id="2">
<first_name>Smith</first_name>
<last_name>Johnson</last_name>
</ROW>
</ROW_SET_EMPS>
</ROW>
</ROW_SET>Then I just apply an XSLT over the returned XML, and I get a pretty HTML page displayed in the browser window...
I am specifically interested in this syntaxis, because I have A LOT of XSQL pages published to my intranet users, and I would like to just take those queries and publish them as reports in HTMLDB, since HTMLDB provides me with the session management, authentication, etc., etc., capabilities.
Thank you for all your replies. -
R : Fetch Cursor - Select Cursor
Scenario I
- use an OPEN Cursor, Fetch Cursor and specify the MAXROWS parameter as
200, FORTE returns me only 1 row.About Scenario I: you MUST surround your open-fetch-close cursor cycle by a
begin transaction - end transaction statement.
That is, your code should appear as follows:
begin transaction
open cursor...
fetch cursor...
do what you want...
close cursor...
end transaction.
Hope this helps.
Greetings.
Cristina Tomacelli - CSI Piemonte
Corso Unione Sovietica, 216 - 10134 TORINO - ITALY
E-mail address: [email protected]
Telephone Number: +39-11-4618387
Da: Bala Cuddalore
A: blunda; chiaberto; tamietti; tomacelli; forte-users
Oggetto: Fetch Cursor - Select Cursor
Data: gioved 13 marzo 1997 19.42
Hi Folks,
I am using a PREPARE to dynamically create a SELECT statement. when I
Scenario I
- use an OPEN Cursor, Fetch Cursor and specify the MAXROWS parameter as
200, FORTE returns me only 1 row.
Scenario II
- use a SELECT using the prepared select statment, the number of rows in
the Dataset returned by FORTE is 0.
Am I doing something wrong here ? missing any step? We are running
on ver 2.0.h.0.
Any help is greatly appreciated.
Thanks a bunch,
Bala Cuddalore
[email protected]
Sage Solutions
1360 Sacramento
Suite 1360
San Francisco CA 94111I had this problem and solved it by wrapping the OPEN, FETCH, & CLOSE
cursor statements in an explicit transaction. I'm sure this is related to
the dialog duration for the dbSession object you are using.
Dennis Wetzel
C/Soft, Inc
Carmel, IN
Hi Folks,
I am using a PREPARE to dynamically create a SELECT statement. when I
Scenario I
- use an OPEN Cursor, Fetch Cursor and specify the MAXROWS parameteras
200, FORTE returns me only 1 row.
Scenario II
- use a SELECT using the prepared select statment, the number of rowsin
the Dataset returned by FORTE is 0.
Am I doing something wrong here ? missing any step? We are running
on ver 2.0.h.0.
Any help is greatly appreciated.
Thanks a bunch,
Bala Cuddalore
[email protected]
Sage Solutions
1360 Sacramento
Suite 1360
San Francisco CA 94111 -
How to use at cursor selection
hi gurus,
can anyone tell wats the purpose of
'At cursor-selection' and how to use it in pai module?????
regards,
balaji.shi balaji,
The Best explanation with example comes from our help.sap.com....
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm
Also this might help...
MODULE mod CURSOR-SELECTION}
CHAIN-REQUEST}
SWITCH switch .
... AT CURSOR-SELECTION
The AT CURSOR-SELECTION addition at the event PAI causes the module mod to be called only if
The function used to trigger event PAI has function code "CS" and function type "S"
The cursor is placed on a single input or output field of the screen at the moment of the user action
The call occurs within the usual PAI processing, meaning that the automatic input checks defined in the system or in the ABAP Dictionary are executed and the MODULE statement is called according to its position in the event block. You can use the addition in connection with the FIELD statement.
If the PAI event is triggered under the above circumstances, the function code is not passed to sy-ucomm and the OK field. They keep their previous values.
Note
The function type and function code of a function are determined in the Screen Painter or in the Menu Painter. We recommend to assign function code "CS" in the Menu Painter to function key F2 in order to simultaneously assign the double-click function of the mouse to it. This allows you to assign dialog modules to the selection of input or output fields.
Link: [Re: MODULE REQUEST;
Thanks,
reward If Helpful. -
I used to move my cursor over an object and would see all the paths, now when I hover a small square appears next to the arrow but none of the lines preview. Whatever I did also doesn't allow me to transform an object's size without selecting the free transform option and it no longer shows me that objects are aligned. I am so confused and have no idea what I did but I have tried to reset the workspace and looked at my preferences and I don't see anything that seems like it would be the right item to change...
Has anyone ever had this issue and, if so, did you figure out how to go back?Thanks! I tried both and the bounding box option did help with the one issue. I think that I it must be something to do with the direct select tool because the cursor looks different when it hovers over objects and the "intersect" and "center" previews no longer display when I am trying to move objects or text on the page...
-
Cursor selection does not follow chapter order on sub-menu
I used iMovieHD6 to add chapter markers to my large DVD project. They "shared" very nicely into iDVD8 and the Chapter Selection sub-menus were created nicely.
The problem is that when I use the cursor arrows on the DVD remote (real or virtual, in or out of iDVD), the highlight jumps around the sub-menu items rather than moving in a logical order. For example, I have 4 sub-menus with 6 chapters in each. Let's use numbers for them starting with the upper left they are 1,2,3 and then at the lower left they begin 4,5,6. I am using the Reflection White theme. When I press the right remote cursor button it will move from 1 to 2 to 5 to 6 to 3 to 4 and back to 1. Note that this order is not the same for each sub-menu, but none of them go 1,2,3,4,5,6.
I don't know what might be wrong or how to correct it, but I have a really big project that is otherwise perfect and I'd really like to get it out, please help!
Thanks.I just wanted to add this before closing this topic.
After poking around with the Reflection theme I better understood what Len was talking about. It appears that there are no modifiable parameters in the theme itself that control the order of cursor's motion through the buttons. That I assume is hard-coded into iDVD and follows a pre-programmed logic.
The point of failure is the position and orientation of the buttons in the Reflection theme's sub-menus when added automatically. They are made to look to the viewer as though they are set on an angled surface and viewed at an angle from above. While our brains can process this effect nicely, iDVD's cursor logic doesn't fare as well.
The work-around is fairly simple: Realizing that iDVD treats all chapter buttons as though they are two-dimensional objects on a flat surface, you must re-arrange them so that from top-left to bottom-right they follow a logical order, with the first buttons higher and farther left than the later-selected buttons. You don't have to move them very far to get the desired result and it doesn't have to affect the overall appearance of the menu in a noticeable way.
A slight rearrangement in my case left the overall look of the chapter menu the same but yielded a zig-zag flow through the buttons as follows:
[1] [3] [5]
[2] [4] [6]
Pressing the right cursor key jumps from top left to bottom left to top center then bottom center then top right and finally bottom right before going back to the start. Granted this is not quite "right" in that if iDVD could "see" the menu the way my brain does it would go left to right across the upper row of buttons rather than zig-zagging, but I figure that as long as the user can understand how to get to the button they want it'll be fine.
If you really need your menu selection to move linearly left to right with those arrows and with the up/down arrow used to move it vertically, then you have to arrange the buttons on the menu in a rectangular pattern with the top of each row of buttons all in a nice horizontal line. Note that's not the same as the alignment line that Reflection provides for you, it's a true horizontal line in relation to the monitor screen.
I'd much prefer that iDVD revisit the logic of the cursor control code, perhaps adding the choice of allowing the numerical sequence of the chapters to dictate the order of the cursor's motion rather than their relative position on the screen, but since they don't call me for advice, the above will likely have to do. -
Need help with cursor selection in control panels
I can't get my cursor to work in the control panel at the top of the screen, for example, when I select text and want to change the font size, etc. It won't even select to change from font to paragraph mode. Other issues are trying to choose the selection tool, which I can only do with the "V" shortcut tool--escape doesn't work, nor does the cursor choose the icons. Help!
Windows? see InDesign tools and panels don't respond to mouse clicks (Windows 7/Vista)
-
Help with creating a cursor select form
Hey guys i need some help, I have a client who would like a menu on her website that allows users to select differnt cursors, I have never done anything like this before hand, Can anyone help out or point me in the direction of a tutorial for this sort of thing, thanks
Hi,
as I know, you can change your cursors by system software or/and browser. On the other hand you can use programs "outside" of your DW. I suggest to "Google" for them, as I did, and found for example this:
http://www.google.de/#hl=de&xhr=t&q=create+cursor&cp=13&pf=p&sclient=psy&site=&source=hp&a q=0&aqi=g2&aql=&oq=create+cursor&pbx=1&bav=on.2,or.r_gc.r_pw.&fp=e8c6fad3e718b799&biw=1280 &bih=785
or http://www.cursors-4u.com/ and while examining this website my cursor changed immediately.
Hans-Günter -
Number of records in cursor select statement
hi all,
with the cursor i am selecting set of select statement and writing into the .txt file.
its working file, but it should not open the file if the cursor returns nothing.
how to check for the number of records return by the select statement in the cursor.
pls help me.
Thanks..Hi,
You can use a Cursor for loop (you'll not enter in the loop if the SELECT is retrieving no rows):
begin
for recs in(select * from whatever) loop
null; -- Produce your file
end loop;
end;You can also use a bulk collect and check "yourcollection.count" attribute ... (but don't use it if you are processing a lot of records!)
Maybe you are looking for
-
I downloaded an app off the store which said it was free and part of the 5 year promotion. I've been charged for the app by the store. I don't want the app and there's no one to speak to about it. Who can I call? How can I get the app off my phone? H
-
How can I make a purchase from iTunes in Honduras!
iTunes is finally available in my country! However, even though I input all the information I was asked, Apple asks for a zip code. If Apple finally decided to open iTunes for Central America, it should know the fact, we do NOT use zip codes. How
-
FormsCentral is discarding dropdown export values when importing PDF form
I would like to disclose that I am fairly new to this process. I have created a pdf from a word document. After creating the form portion in Adobe Acrobat XI Pro and adding in javascript validations and calculations, sourced mainly from these communi
-
Problem when transform command is invoked in a dialog
Hi friends I´m having a problem with the script UI. I tried various things to correct but I´m not able to get sucess. The code in the script is correct. The problem is: when I run the script and click the "execute" button...Photoshop would need to ex
-
Problem with create_collection_from_query (bug?)
Hi all, I seem to be having a wierd problem with CREATE_COLLECTION_FROM_QUERY. I'm using LDAP (AD) Authentication, and I stole the ldap_query() function out of John Scott's book. I have an after authentication process where I query the LDAP to extrac