Urgent - DropDownbyIndex in Table
Hi,
I have an urgent requirement, where my scenario is - I have two table, 1) Master Tabel 2)InnerTable.
When i select any row in the master table (which contains order no, equipments and Quantity), multiple rows should be selected with the same orderno (as each order there may be any number of equipments), this is done, so now the multiple selected rows data should be send to the InnerTable, which contains a DropDownbyIndex UI - To display the equipments.
Now the data are transferred, but all the values in the DropDownbyIndex is pointing to the same value. For example, if i click first row in the Inner Table, all the row values are the same in the DropdownbyIndex. If I click the second row, then the Second Row value is displayed in all the row...
Pls guide how to get individual value in each dropdownbyindex...
Suggest some PDF - briefing some working examples, which will have DropDownByIndex UI in the table.
Regards,
Guru
Hi Kumara,
If you want to acheive DropDownByIndex indepent of row selection, do the following:
- Create another value node (eg: dropdown) with in the main node for which you will have DropDownByIndex and create the value attribute (ddvalue).
- In properties set the singleton to false for node dropdown.
- Create a supply function from property menu.
Now in implementation tab add the logic to generate DropDownByIndex values. Check the sample code..
public void supplyInternal(IPrivateTestWDAppsView.IInternalNode node, IPrivateTestWDAppsView.IMyTableElement parentElement)
//@@begin supplyInternal(IWDNode,IWDNodeElement)
IPrivateTestWDAppsView.IInternalElement ele4 = node.createInternalElement();
ele4.setIntValue("One");
parentElement.nodeInternal().addElement(ele4);
ele4 = node.createInternalElement();
ele4.setIntValue("TWO");
parentElement.nodeInternal().addElement(ele4);
ele4 = node.createInternalElement();
ele4.setIntValue("THREE");
parentElement.nodeInternal().addElement(ele4);
//@@end
Regards
Abhilash
Similar Messages
-
Help Required For DropDownByIndex and Table
Hi All,
Could anybody help me to solve my problem?
Actualy I am working with one DropDownByIndex and two
Tables.Where within one viewset DropDown
box and one Table(say Table1) are in one view and
another one table(say Table2) is in other view.
DropDown box is maped with one attribute suppose
countryName and and Table1 is maped with collageName
and locationName. So, when I will select the DropDown
with one countryName then the table1 will show all the
available collageName and locationName with multiple
row.
In other view I mean the Table2 is bind with
availableCourse and courseDuration this two
attributes. So whin I will click one row of Table1
that means one collegeName is selected then the
Table2 will show the availableCourse and
courseDuration for that particular college. When I
will select next row of Table1 then the value of
Table2 will be different.
Could anybody help me by sending the code and
details?
With Thanks and Regards
SudipOne way is to get lead selected of drop down index , then get lead selected of table1 and pass it via a method to wdDoInit in the 3rd view so that you know what has been clicked in table1 and then accordingly get the data in table2.
Another way you can do this is to map the tables and drop down index to value nodes and create them in the component controller and then map these value nodes to the respective views. Now when your table2 view is triggered you get the lead selected in the value node of the table1 and accordingly generate the table2. -
URGENT : Regarding External Table
Hi,
We have some external tables in our production environment. In unix level we have two users 1) ORACLE (Primary Group DBA, Secondary group RELEASE)
2) PROD (Primary Group RELEASE).
Now the log file directory of external table owned by PROD user and RELEASE group.
What minimum priviledges is reqire in unix level, so that ORACLE user can create log files for external tables there.
I have tried with 775, but it is trrowing the follwoing error :
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04063: unable to open log file log_flow.log
OS error Permission denied
ORA-06512: at "SYS.ORACLE_LOADER", line 19
ORA-06512: at line 1
Can any one suggest ASAP.
One more Issue I have facing with external tables. The follwoing select "select * from dba_directories" showing all the directories I have created (data,log,reject,error), but "select * from dba_external_locations" showing only the data file locations not showing the error,log and reject location, and when the DATABASE is bounced due to some other reason the DDL of external table get changed (error,log and reject file location was not there). Can any one suggest any work around.
Any body can call me up in any one of the following nos.
Ph(O) : (+44)1173024701
Ph(M) : (+44)7772341689
Thanks & Regards,
Koushik ChandraHi,
Have you try to create a file manually with oracle user ito this log directory ?
Have you check the good directory ?
dba_external_locations It describes the locations (data sources) of all external tables in the database.
Nicolas.
PS : you know, today is saturday, and in most of countries, saturday is the week-end - in other word not working -, since this forum is based on volunteers, you can wait some time an answer, if you have. If it's very urgent, contact your oracle support service. -
Very Urgent - Problem with Table MSEG
Hi All,
I wanted to add customer fields to MSEG Table. So I created a Structure ZISU with 4 fields and appended that to the table with Append Structure name ZExtensionin name.
Now when I deleted one field from the structure and wanted to activate it. But it should an SQL Error while activation.
So I mistakenly deleted the ZExtensionin from MSEG Table. It displayed that it is deleted but it is still visible in MSEG with the fields.
Due to this, both structure ZISU and table MSEG are been shown as "Partially Active".
What shall I do now to make everything fine ?
Its very urgent. Please help me....
Reward Points for Useful answers.
Thanks,
HarishHi Harish,
Goto SE14 and adjust the table and then activate your table. This should work.
Thanks.
<b>Plz reward points if helpful</b> -
URGENT : select from table statement in ABAP OO
Hi all,
I am an absolute ABAP OO beginner and need some quick help from an expert. How can I make a selection from an existing table (eg MARA) in an BADI which is programmed according to ABAP OO principles.
In the old ABAP school you could make a TABLES statement at the beginning and the do a SELECT¨* FROM but this does not work in ABAP OO.
How should i define such simple selections from existing tables. Anyone ?
Thanks a lot,
Eric Hassenberg*define internal table
data: i_mara like standard table of mara.
*select to this table
select * from mara into table i_mara.
Also you have to define work area for this internal table in order to use it.
data:w_mara like line of i_mara. -
URGENT update a table with a text that has a single quote in it
Hello, I am trying to update a table with a text that has a single quote in it. I believe I need to use two singles quotes but I am not sure how.
For example:
UPDATE TEST
SET DESCRLONG='Aux fins d'exportations'
WHERE etc...
Should I put 2 singles quotes before the quote in the text?
UPDATE TEST
SET DESCRLONG='Aux fins d'''exportations'
WHERE etc...
Thank you very much :)The best way depends on the version of Oracle.
But, the quick and universal answer is to use two single quotes
SQL> connect test/test
Connected.
SQL> create table test (descrlong varchar2(128));
Table created.
SQL> insert into test values ('This is a string with a '' single quote');
1 row created.
SQL> select * from test;
DESCRLONG
This is a string with a ' single quote
SQL> update test set descrlong='Aux fins d''exportations'
2 where descrlong like 'T%';
1 row updated.
SQL> select * from test;
DESCRLONG
Aux fins d'exportations
SQL> -
URGENT: ADF Faces table updating issue.
I have a project that uses JSF, ADF Faces, EJB 3.0, and the ADF binding framework.
In this project, I have a page with a databound ADF Faces Table. The table has a number of read-only columns and two read-write columns. I also have an Edit button that allows the user to pop up a dialog box to edit the selected row of the table. When the user clicks OK in the dialog box, the data is passed back to the main page and the table is updated.
Everything works correctly for the read-only columns. For the read-write columns, however, the table data does not get updated following an edit. This is what I have found:
1. The table row data gets passed in to the Edit dialog correctly.
2. The data gets passed back correctly.
3. The model gets updated correctly (up to and including the database).
4. Looking at the iterator in the debugger shows the correct, updated data.
5. When the table row is getting redrawn, the getter calls for the read-write columns return the updated data.
6. As mentioned above, the read-only columns get updated correctly.
7. Updating the read-write columns directly from the table works correctly.
So, the problem appears to be in the GUI layer. I suspect that, somehow, the submitted values of the read-write columns are not getting set properly, but I cannot figure out how to do this.
Note that clicking on the Edit button results in a partial submit. In the return listener, I add a call to AdfFacesContext.getCurrentInstance().addPartialTarget(getRecipientTable()) in order to redraw the table (getRecipientTable() is the bound value of the ADF table).
Please help! We are so close to production and we need to fix this.
Thanks,
AraHi,
I don't have a testcase for this, so I just come up with ideas to try
1. refresh the parent container of the table. It seems that the input text components are not triggered to refresh if the refresh is on the table.
2. If using ADF, make sure the update is performed directly on theiterator (which automatically is the case if you use a ADF bound form for this)
3. Check if executing the table iterator and then setting back the current row makes a difference
Frank -
URGENT : Regarding routing tables
hi,
i want to know which are the tables used in the routing?hi,
actualy my requirement is in CA03 there is a field called base quantity and i want to know where this is come from bcoz in this tcode it is specifying a structure and i want to know which transparent table is used to store this field?
plzz help me out as help will be definately rewarded.
waiting for ur response. -
Urgent help for table function
I Have a table tab1
SQL> select * from tab1;
A B C
maqdoom 12 syed
aamer 323 army
king 343 khan
keerthi 52 kaat
I Have created an Object
CREATE TYPE object_row_type AS OBJECT1 (
name VARCHAR2(30),
lname VARCHAR2(18))
CREATE TYPE object_table_type1 AS TABLE OF object_row_type1;
I write a function such a way that
when we enter a trackinnumber it return the whole record with respective the query
CREATE OR REPLACE FUNCTION test1 (trackingnumber IN NUMBER)
RETURN object_table_type1
IS
--tracking_num NUMBER (10);
v_tab object_table_type1 := object_table_type1 ();
BEGIN
FOR cur IN (SELECT a AS NAME, c AS LNAME
FROM TAB1
WHERE b=trackingnumber)
LOOP
v_tab.EXTEND;
v_tab(v_tab.LAST) :=object_row_type1(cur.name,cur.lname);
end loop;
RETURN v_tab;
END;
every thing runs fine
But
Can an one show me
1. how to handle an exception ... when someone enters a wrong tracking number I should get some message displaying that 'its a wrong tracking number'.
thank youSQL> CREATE TYPE object_row_type AS OBJECT(
2 name VARCHAR2(30),
3 lname VARCHAR2(18));
4 /
Type created.
SQL> CREATE TYPE object_table_type AS TABLE OF object_row_type;
2
3 /
Type created.
SQL> select * from test;
A B C
maqdoom 12 syed
aamer 323 army
king 343 khan
keerthi 52 kaat
SQL> CREATE OR REPLACE FUNCTION f1 (trackingnumber IN NUMBER)
2 RETURN object_table_type
3 IS
4 cnt number := 0;
5 v_tab object_table_type := object_table_type ();
6 BEGIN
7 FOR cur IN (SELECT a AS NAME, c AS LNAME
8 FROM test
9 WHERE b=trackingnumber)
10 LOOP
11 cnt := 1;
12 v_tab.EXTEND;
13 v_tab(v_tab.LAST) :=object_row_type(cur.name,cur.lname);
14 end loop;
15 if cnt = 0 then
16 dbms_output.put_line('No data!');
17 end if;
18 RETURN v_tab;
19 END;
20 /
Function created.
SQL> set serverout on
SQL> declare
2 a object_table_type;
3 begin
4 a := f1(12);
5 end;
6 /
PL/SQL procedure successfully completed.
SQL> ed
Wrote file afiedt.buf
1 declare
2 a object_table_type;
3 begin
4 a := f1(1);
5* end;
SQL> /
No data!
PL/SQL procedure successfully completed.
<br>
<br>
But you can use BULK COLLECT here..
Try it yourself.. -
Urgent ...Table name Require for appraisal competency
Hi All,
can some one help me to sort out this issue.
how can i know where the appraisal competency information is storing(i mean table names).
i mean when appraiser enter the competency for his appraise.
Thanks.
Edited by: user627525 on Mar 17, 2009 4:35 AMOr try this query is you want a rating that gives u a number 0-5 for performance rating. I did this query a while ago. it also gives rating for the last 3-4 years. HR also wanted the rating rounded off. so i included that but i am sure u dont need it
select distinct peo.person_id
,AK.AK_RATING "Final 2005/6"
,AK_DATE
,AC.AC_RATING "Final 2006/7"
,AC.AC_Date
,AF_Rating "Final 2007/8"
,AF_DATE
,nvl(to_char(AG.AG_Rating),'Not Yet Reviewed') "Current Rating 1st 6 mnths"
,nvl(to_char(AR.AR_RATING),'Not Yet Reviewed') "Current Rating 2nd 6 mnths"
,AG_DATE
from hr.per_all_people_f peo,
hr.per_all_assignments_f paa
,(SELECT DISTINCT peo.person_id AK_person_id
,pr.performance_rating AK_rating
, pr.review_date AK_date
FROM apps.per_performance_reviews pr,
hr.per_all_people_f peo
WHERE pr.person_id = peo.person_id
and pr.review_date = (select pr1.review_date
from apps.per_performance_reviews pr1
where pr1.person_id = peo.person_id
and pr1.review_date between '01-May-2006' and '31-Oct-2006' ) )AK
,(SELECT DISTINCT peo.person_id AP_person_id
, case when pr.performance_rating <= 0.5 then '0'
when pr.performance_rating > 0.5 and pr.performance_rating <= 1.5 then '1'
when pr.performance_rating > 1.5 and pr.performance_rating <= 2.5 then '2'
when pr.performance_rating > 2.5 and pr.performance_rating <= 3.5 then '3'
when pr.performance_rating > 3.5 and pr.performance_rating <= 4.5 then '4'
when pr.performance_rating > 4.5 and pr.performance_rating <= 5 then '5'
when pr.performance_rating = 9 then '9'
end ROUNDED_RATING
,pr.review_date AP_date
FROM apps.per_performance_reviews pr,
hr.per_all_people_f peo
WHERE pr.person_id = peo.person_id
and pr.review_date = (select pr1.review_date
from apps.per_performance_reviews pr1
where pr1.person_id = peo.person_id
and pr1.review_date between '01-May-2006' and '31-Oct-2006' ) )AP
,(SELECT DISTINCT peo.person_id AC_person_id
,pr.performance_rating AC_rating
, pr.review_date AC_date
FROM apps.per_performance_reviews pr,
hr.per_all_people_f peo
WHERE pr.person_id = peo.person_id
and pr.review_date = (select pr1.review_date
from apps.per_performance_reviews pr1
where pr1.person_id = peo.person_id
and pr1.review_date between '01-May-2007' and '31-Oct-2007' ) )AC
,(SELECT DISTINCT peo.person_id AA_person_id
, case when pr.performance_rating <= 0.5 then '0'
when pr.performance_rating > 0.5 and pr.performance_rating <= 1.5 then '1'
when pr.performance_rating > 1.5 and pr.performance_rating <= 2.5 then '2'
when pr.performance_rating > 2.5 and pr.performance_rating <= 3.5 then '3'
when pr.performance_rating > 3.5 and pr.performance_rating <= 4.5 then '4'
when pr.performance_rating > 4.5 and pr.performance_rating <= 5 then '5'
when pr.performance_rating = 9 then '9'
end ROUNDED_RATING
, pr.review_date AA_date
FROM apps.per_performance_reviews pr,
hr.per_all_people_f peo
WHERE pr.person_id = peo.person_id
and pr.review_date = (select pr1.review_date
from apps.per_performance_reviews pr1
where pr1.person_id = peo.person_id
and pr1.review_date between '01-May-2007' and '31-Oct-2007' ) )AA
,(SELECT pr.person_id AF_Person_Id,
pr.performance_rating AF_Rating,
pr.review_date AF_Date
FROM apps.per_performance_reviews pr,
hr.per_all_people_f peo
WHERE pr.person_id = peo.person_id
and pr.REVIEW_DATE between '01-May-2008' and '31-Oct-2008' )AF
,(SELECT pr.person_id AB_Person_Id
, case when pr.performance_rating <= 0.5 then '0'
when pr.performance_rating > 0.5 and pr.performance_rating <= 1.5 then '1'
when pr.performance_rating > 1.5 and pr.performance_rating <= 2.5 then '2'
when pr.performance_rating > 2.5 and pr.performance_rating <= 3.5 then '3'
when pr.performance_rating > 3.5 and pr.performance_rating <= 4.5 then '4'
when pr.performance_rating > 4.5 and pr.performance_rating <= 5 then '5'
when pr.performance_rating = 9 then '9'
end ROUNDED_RATING
,pr.review_date AB_Date
FROM apps.per_performance_reviews pr,
hr.per_all_people_f peo
WHERE pr.person_id = peo.person_id
and pr.REVIEW_DATE between '01-May-2008' and '31-Oct-2008' )AB
,(SELECT pr.person_id AG_Person_Id,
pr.performance_rating AG_Rating,
pr.review_date AG_Date
FROM apps.per_performance_reviews pr,
hr.per_all_people_f peo
WHERE pr.person_id = peo.person_id
and pr.REVIEW_DATE between '01-Nov-2008' and '30-Apr-2009' )AG
,(SELECT pr.person_id AQ_Person_Id
, case when pr.performance_rating <= 0.5 then '0'
when pr.performance_rating > 0.5 and pr.performance_rating <= 1.5 then '1'
when pr.performance_rating > 1.5 and pr.performance_rating <= 2.5 then '2'
when pr.performance_rating > 2.5 and pr.performance_rating <= 3.5 then '3'
when pr.performance_rating > 3.5 and pr.performance_rating <= 4.5 then '4'
when pr.performance_rating > 4.5 and pr.performance_rating <= 5 then '5'
when pr.performance_rating = 9 then '9'
end ROUNDED_RATING
,pr.review_date AQ_Date
FROM apps.per_performance_reviews pr,
hr.per_all_people_f peo
WHERE pr.person_id = peo.person_id
and pr.REVIEW_DATE between '01-Nov-2008' and '30-Apr-2009' )AQ
,(SELECT pr.person_id AR_Person_Id,
nvl(pr.performance_rating,0) AR_Rating,
pr.review_date AR_Date
FROM apps.per_performance_reviews pr,
hr.per_all_people_f peo
WHERE pr.person_id = peo.person_id
and pr.REVIEW_DATE between '01-May-2009' and '31-Oct-2009' )AR
,(SELECT pr.person_id AU_Person_Id
, case when pr.performance_rating <= 0.5 then '0'
when pr.performance_rating > 0.5 and pr.performance_rating <= 1.5 then '1'
when pr.performance_rating > 1.5 and pr.performance_rating <= 2.5 then '2'
when pr.performance_rating > 2.5 and pr.performance_rating <= 3.5 then '3'
when pr.performance_rating > 3.5 and pr.performance_rating <= 4.5 then '4'
when pr.performance_rating > 4.5 and pr.performance_rating <= 5 then '5'
when pr.performance_rating = 9 then '9'
end ROUNDED_RATING
,pr.review_date AU_Date
FROM apps.per_performance_reviews pr,
hr.per_all_people_f peo
WHERE pr.person_id = peo.person_id
and pr.REVIEW_DATE between '01-May-2009' and '31-Oct-2009' )AU
where peo.person_id = paa.person_id
and trunc(sysdate) between peo.effective_start_date and peo.effective_end_date
and trunc(sysdate) between paa.effective_start_date and paa.effective_end_date
AND peo.CURRENT_EMPLOYEE_FLAG = 'Y'
AND paa.PRIMARY_FLAG = 'Y'
AND paa.ORGANIZATION_ID != 1301
AND peo.EMPLOYEE_NUMBER != '0000001'
AND peo.BUSINESS_GROUP_ID = '82'
and AC.AC_person_id(+) = peo.person_id
AND AF.AF_PERSON_ID(+) = PEO.PERSON_ID
and AG.AG_PERSON_ID(+) = PEO.PERSON_ID
and AK.AK_PERSON_ID(+) = peo.person_id
AND AA.AA_PERSON_ID(+) = PEO.PERSON_ID
AND AB.AB_PERSON_ID(+) = PEO.PERSON_ID
and AP.AP_PERSON_ID(+) = PEO.PERSON_ID
and AR.AR_PERSON_ID(+) = PEO.PERSON_ID
and AQ.AQ_PERSON_ID(+) = PEO.PERSON_ID
and AU.AU_PERSON_ID(+) = PEO.PERSON_ID
order by peo.person_id -- , pr.review_date desc -
Urgent----In which table are portlet id and name stored?
In which table are portlet-id and name stored?
portal30.WWPRO_PORTLET_METADATA_NLS$
portal30.WWPRO_PORTLET_METADATA$
portal30.WWPOB_PORTLET_INSTANCE$ -
Urgent : Smart form tables
I have a smartform with main window .Inthis main window i declared one table and it's working fine .i need to add more functionality to smartform i created another table in main window were i declared earlier that place .it's goes to short dump and stops at form functionmodule . it's possible to create similar type of table in main and how is it possle . if another dynamic data collection possble in smartform. help me out .
thanking u,
sureshHi Suresh,
When you create a new table then check for the entries in 'DATA' tab. There you can see that option for internal table is marked. Uncheck it or else give any internal table there.
If you still get any problem then please revert back.
Regards,
Shikha -
I am using a hash table with 2 columns. The first one has strings and is the key. The second column has integers.
I need to sort this table on the first column and print the contents of the table.
Then i need to sort it on the second column and print the results.
How do i sort the hastables.
Please let me know as soon as possible.
Thanks and Regards,
VijayYou got it all wrong. Hashtables cannot be sorted because then it would not be a hashtable. The content of the Hashtable can be sorted.
What you want to do is get the key Set (keySet() method) of the Hashtable, wrap it in a List (e.g. LinkedList), sort that (see java.util.Collections for sorting) and then print out the contents of the Hashtable in the order pointed out by the keys in the sorted List.
Then you can do the same for the values() Collection of the Hashtable.
Pointers:
http://java.sun.com/j2se/1.4/docs/api/java/util/Hashtable.html
http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html
http://java.sun.com/j2se/1.4/docs/api/java/util/List.html
http://java.sun.com/j2se/1.4/docs/api/java/util/LinkedList.html
http://java.sun.com/j2se/1.4/docs/api/java/util/Collections.html -
Urgent- Exporting database tables
Hi There,
I am using Oracle 8.0.6. I want export a table from one server to another.(both are unix machines). How can I do it?
Thanx in advanceIf a table is samll, then I would recommend you to create a dblink between them and use copy command to copy the table from one db to another.
Export:
exp system/password file=exp.dmp log=exp.dmp tables=username.table_name direct=y statistics=none
ftp the exp.dmp file in binary mode to other unix server.
imp username/password file=exp.dmp log=imp.dmp fromuser=username touser=username full=y
Do you have same user exists in both databases? Do you have same tablespaces exists on both databases?
When you import, it will look for the same tablespace as exported database tablespace. Otherwise, the user who is importing revome unlimited tablespace quota and use one tablespace. also, you have to include ignore=y in this scinario.
Jaffar -
I Have a EO/VO called "Customers" and a EO/VO called "authorized".
Well, in the EO/VO "authorized" I have a attribute "Customer_ID".
I need show this in Read-Only-Table.
Customers_Name | Authorized_Name
AAA xxxx
AAA yyyy
BBB vvvv
1.Structure EO/VO Customers:
Customers_ID
Customers_Name
2. Structure EO/VO Authorized:
Authorized_ID (PK)
Customers_ID (PK)
Authorized_Name
Please, how to do this ?OK,
I made this and show-me the correct results, but in this table I have two links:
-> A edit link
-> A delete link.
When I click in the links, don't synchronizes.
Why ?, because in the edit page I have a second iterator ?
exists a example to this ?
Maybe you are looking for
-
GetCalls is good, but...
Hi, Iam using code below to invoke a service dynamically. Calling Service method getCalls should preconfigure all settings according to the documentation. This works fine for all settings but the SoapAction. To get this to work I have to hardcode the
-
Please allow to number in boxes in Keynote
Dear Apple. If you read this, please can you allow that when I select text in multiple rows in a table in keynote, and try to number them, instead of them all becoming "1.", the actually number "1., 2., 3." etc? Thank you Others, please like this so
-
Hello Everyone!! We are a Forté development team in Peru, and we were develop an application that can build a Report dynamicaly. In this application you can select the tables, fields, especify the query condition, (build the select statement by Drag
-
Computer Freezes during games - crash logs included - help?
My PowerMac has been crashing during WC3 and Halo (1.5.2) for the last six months or so. I though it might be hardware, but I switched out my PM Dual 2.0 for a PM Dual 2.5 with my Dad, and the only things I kept were the hard drives and airport card.
-
I'm having trouble with some proc code. Stated simply, I'm doing the following: EXEC SQL WHENEVER SQLERROR DO error = sqlerror(env, dbc); EXEC SQL WHENEVER NOT FOUND DO break; EXEC SQL DECLARE dbid_cursor CURSOR FOR ... EXEC SQL OPEN dbid_cursor; whi