How to display the records from a query in the non-base data field
HelloI have a problem:
I have a query with a lot of tables and column 6 (select a, b, c, d, e, f x, y, z, t, s, g where the conditions) and I use 3 parameters.
I create 3 settings: datai,: dataf and: partner and a button with a trigger when the button is pressed.
Then a create a block manually with six field non-database a1, b1, c1, d1, e1, f1.
Now, I want to display all the records in my query in a1, b1, c1, d1, e1, f1 where a1 = a, b1 = b, etc. and all the records (if I have 20 record, it will display 20 records in the non-base data field) when I press the button.
How I did it:
I create a cursor with the query, and then
start the open cursor
loop
Fetch cursor in: a1,: b1,: c1: d1: e1,: f1;
end loop;
close the cursor;
end;
It displays a single record in a1, b1, c1 only, and it must display 100 records and date for all fields.
Can someone help me with this problem?
Thank you.
Published by: 928437 on October 1, 2012 02:55
Creating a view and the query in a database block are a great solution.
To use the block non-base of data:
You are missing the most important Next_Record; command.
Begin
Go_block('X'); -- block X is the non-database block
Clear_Block(No_Validate);
open cursor X1;
loop
If :System.Record_status != 'NEW' then
Next_Record;
End if;
fetch X1 into :a1,:b1,:c1,:d1,:e1,:f1;
Exit when X1%NOTFOUND;
end loop;
close X1;
end;
Tags: Oracle Development
Similar Questions
-
How to display the names of header fields in the next page in report6i
How to display the names of header fields repeated in the next page of report6i urgent please...
When I'm runing report in 1st page that showing only the header in page 2 information header information does not display only records appear. So I want to display the header in 2nd page also information.
You can help.Hello
Go for the model of report layout and select these elements/objects that do not display on the next page and pressing the F4 key to open the palette of the property and set the property Print object on to All the Pages , then it will appear on all pages.
-Clément
-
How to display the location of data pump dir?
I see that DATA_PUMP_DIR is defined in the database [in DBA_OBJECTS]
But how to find the location of DATA_PUMP_DIR?
ThanxSelect * from dba_directories where DIRECTORY_NAME = "DATA_PUMP_DIR;
-
How to display the message no data found
My problem is that when my report generates no how to display a message "No Data found for search criteria" to data users? Here is an example of XML, when there is no data found.
Published by: tfa on May 1, 2009 10:30<?xml version="1.0" encoding="UTF-8"?> <DOCUMENT> <DATE>01-MAY-09</DATE> <USER_NAME>MYUSERNAME</USER_NAME> <APP_ID>750</APP_ID> <APP_NAME>APEX - Application Builder</APP_NAME> <TITLE>Averaging_Change_Letter</TITLE> <P7_MINIMUM_VARIANCE>0</P7_MINIMUM_VARIANCE> <P7_PROVIDER_ID>2033</P7_PROVIDER_ID> <P7_SIGNER>Someones Name</P7_SIGNER> <P7_SIGNER_PHONE>(801) 999-9999</P7_SIGNER_PHONE> <P7_CHANGE_DATE>11-JAN-09</P7_CHANGE_DATE> <P7_PAY_DATE>30-JAN-09</P7_PAY_DATE> <P7_PERIOD_NUMBER>3</P7_PERIOD_NUMBER> <REGION ID="0"> <ROWSET> <ROW> <PROVIDER_ID></PROVIDER_ID> <HR_EMPLOYEE_NUMBER></HR_EMPLOYEE_NUMBER> <PROVIDER_NAME></PROVIDER_NAME> <BIWEEKLY_PAY></BIWEEKLY_PAY> <CHANGE_DATE></CHANGE_DATE> <EFFECTIVE_TO_MONTH></EFFECTIVE_TO_MONTH> <LETTER_DATE></LETTER_DATE> <MONTH_FROM></MONTH_FROM> <MONTH_TO></MONTH_TO> <PERIOD_ABBREV></PERIOD_ABBREV> <PERIOD_FULL></PERIOD_FULL> <RVUS_IN_PERIOD></RVUS_IN_PERIOD> <DAYS_IN_PERIOD></DAYS_IN_PERIOD> <DAILY_RVU_PRODUCTION></DAILY_RVU_PRODUCTION> <RVU_PAY_RATE></RVU_PAY_RATE> <PROVIDER_EXPLANATION></PROVIDER_EXPLANATION> <PREV_PROVIDER_ID></PREV_PROVIDER_ID> <PREV_MONTH_FROM></PREV_MONTH_FROM> <PREV_MONTH_TO></PREV_MONTH_TO> <PREV_RVUS_IN_PERIOD></PREV_RVUS_IN_PERIOD> <PREV_DAYS_IN_PERIOD></PREV_DAYS_IN_PERIOD> <PREV_DAILY_RVU_PRODUCTION></PREV_DAILY_RVU_PRODUCTION> <PREV_RVU_PAY_RATE></PREV_RVU_PAY_RATE> <PREV_BIWEEKLY_PAY></PREV_BIWEEKLY_PAY> <PREV_PERIOD_ABBREV></PREV_PERIOD_ABBREV> <PREV_PERIOD_FULL></PREV_PERIOD_FULL> </ROW> </ROWSET> </REGION> </DOCUMENT>
I missed a POINT in front of! =, his. ! =
-
How to access the Non-space data of the object using the API of the HTML5
Using the Oracle cards HTML5 API, is it possible to access the data an excerpt when generating a map?
For example, my database has a table named ITEMS:
Table: ELEMENTS
COL_A
COL_B
COL_C
COL_D
COL_E
COL_F
GEOMETRY
This table contains a number of objects point. With the help of Mapviewer, I can successfully create a map by using the HTML5 API. Here is an example of how I used the constructor 'OM.layer.VectorLayer.TYPE_JDBC' to retrieve the objects point of my database.
pointLayer = new OM.layer.VectorLayer ("PointLayer",
{
infoWindow: true,
def:
{
type: OM.layer.VectorLayer.TYPE_JDBC,.
dataSource: "myDatabase",.
SQL: "SELECT * FROM POINT."
geometryColumn: "GEOMETRY."
labelColumn: "COL_A."
loadOnDemand: false,
URL: baseURL
},
renderingStyle: circleMarker
});
How can I use the HTML5 API to access the data in the other columns (COL_A, COL_B, etc.) of my table?
I know that the methods DisplayInfoWindow() and displayTabbedInfoWindow of the Map class to view this information by clicking on a specific point on the map. But I would like to have access to all the points to create a table below my map showing all points (and their data) shown on the map.
Hello
You can try this code:
functions var = pointLayer.getAllFeatures ();
for (var i = 0; i)
{
Features [i]. GetAttributes() ["COL_A"];
Features [i]. GetAttributes() ["COL_B"];
......
}
-
How to display the non supported unicode for the title of the window
I'm developing an application using Java swing. In my application, I want to display Myanmar fonts (Unicode) for the title of the window. But windows 7 doesn't support Myanmar police. So, I would like to know is possible to change the font of the title bar? (Windows 8 supports unicode Myanmar and may display correctly).
I already tried to "change the window colors and measures" and changing the locale also.
And my OS is the Japanese version.
Thanks in advance.
Hello
Please contact Microsoft Community.
According to the description, I understand that you are developing an application that uses Java swing and you want to display Myanmar fonts (Unicode) for the title of Windows. And now, you need to know is possible to change the font of the title bar on the system?
Certainly, I understand your concern and will try my best to help you.
In order to get more information about this, I suggest you to post your query on the forum of the MSDN Community for that matter. You can get more effective suggestions and adapted by experts familiar with this topic.
Please visit the link below for the best support.
I hope this information is useful.
Please let us know if you need more help, we will be happy to help you.
Thank you.
-
How to display specific records on the form of the ADF
Dear experts,
I need to create a form of adf Wizard.
-If the user is new, this form will show action createInsert.
-If the user is not new (already have saved data), then this screen displays data based on the user login id.
I can do the application module class createInsert part but not the specific data display part.
You have a suggestion how to display specific records based on user login id, and how to filter the old and the new user?
Kind regards
Ricky
You can use a router in a workflow as I've shown here https://tompeez.wordpress.com/2012/12/01/jdeveloper-11-1-1-5-0-use-router-to-create-new-row-or-edit-existing/
Timo
-
How to display the parameter string registered by DBMS_XMLINDEX?
This is probably a stupid question, but I can't seem to find any function to display the setting of a parameter string that was recorded by DBMX_XMLINDEX. REGISTERPARAMETER.
For example,.
If I have:
How to display the value of 'indexParam' after creation?BEGIN DBMX_XMLINDEX.REGISTERPARAMETER('indexParam', 'xxxxxxxx'); END; /
SQL> set long 1000 SQL> SQL> select paramstr 2 from xdb.xdb$xidx_param_t 3 where param_name = 'MYINDEXPARAM' 4 ; PARAMSTR -------------------------------------------------------------------------------- PATH TABLE po_ptab PATH ID INDEX po_pidx ORDER KEY INDEX po_oidx VALUE INDEX po_vidx PATHS(NAMESPACE MAPPING(xmlns:p="http://www.example.com/IPO")) GROUP MASTERGROUP XMLTABLE PO_TAB ('/p:PurchaseOrder' COLUMNS REFERENCE VARCHAR2(30) PATH 'p:Reference', REQUESTOR VARCHAR2(30) PATH 'p:Requestor' ) GROUP ITEMGROUP XMLTABLE ITEMGROUP_TAB ('/p:PurchaseOrder/p:LineItems/p:LineItem' COLUMNS LINENUMBER NUMBER(38) PATH '@p:ItemNumber', QUANTITY NUMBER(38) PATH '@p:Quantity', DESCRIPTION VARCHAR2(256) PATH 'p:Description')
After you add it to an index, you can also view the content in USER_XML_INDEXES. PARAMETERS (XML format).
-
Selection of a specific record from a query
I have been using a certain set of code to query a database for a Recordset:
< CFQUERY NAME = "RandPick" DATASOURCE = "MyDB" >
SELECT ID
FROM MyTable
< / cfquery >
Then, I select randomly 1 number within this number of records:
< CFSET RND_PICK = plageAleatoire (1, #RandPick.RecordCount #) >
Finally, I use STARTROWOPTIONAL to display a field from the selected randomly record (what am I on a flash file):
MyFile.swf? ID = < CFOUTPUT QUERY = "RandPick" StartRowOptional = "" #RND_PICK # "LIGNESMAX ="1"> #PickID # < / CFOUTPUT >"
The final output might look like this:
MyFile.swf? ID = 46
This all works fine, but now I want to do something a little more complicated: I want to take this field value I found (in this case '46') and I want to ask a second table that contains detailed information about ID 46:
< CFQUERY NAME = "DetailedPickInfo" DATASOURCE = "MyDB" >
SELECT ID, PickDescription
OF MySecondTable
Where ID = ' 46 "
< / cfquery >
My problem is that I can't use my STARTROWOPTIONAL trick to incorporate the ID selected in my second request:
< CFQUERY NAME = "DetailedPickInfo" DATASOURCE = "MyDB" >
SELECT ID, PickDescription
OF MySecondTable
Where ID = < CFOUTPUT QUERY = "RandPick" StartRowOptional = "" #RND_PICK # "LIGNESMAX ="1"> ' #PickID # ' < / CFOUTPUT >"
< / cfquery >
Of course, which is not allowed.
Could someone smart please help me find a way to do this?
Basically, I'm trying to select a random record from a query and then JOIN the selected record with a second table (where I want to grab a piece of data).
I understand that my STARTROWOPTIONAL method is a bit of a hack, and there is probably a better way to achieve all this.
Any help would be appreciated.
On a related note, I would also like to know a general solution for the selection (for example) the 5th record a query (or the 32nd of a query)
Thank youInstead of doing this:
MyFile.swf? ID =
#PickID # Maybe you should set a variable with the value returned by your cfoutput statement, then use this variable as both your setting and picID URL in your second query value. Something like this:
(Note to Azadi: the value of RND_PICK is not the ID value, but the value of the number of records of the line returned by the first query that contains the ID of interest.)
Phil
-
How to display the results in the order based on the value of research
Hi all
How to display the results in the slot order.
If the user makes a search with "MADONNA", I view the results as title begins with "MADONNA" first then the rest of the records.CREATE TABLE TEST( SONGID NUMBER, TITLE VARCHAR2(200)) INSERT INTO TEST(SONGID,TITLE) VALUES (10,'AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)'); INSERT INTO TEST(SONGID,TITLE) VALUES (11,'CICCONE, MADONNA (CA)'); INSERT INTO TEST(SONGID,TITLE) VALUES (12,'DALLIN, MADONNA LOUISE/STOCK'); INSERT INTO TEST(SONGID,TITLE) VALUES (13,'MADONNA'); INSERT INTO TEST(SONGID,TITLE) VALUES (14,'MADONNA (A)/ AHMADZAI, MIRWAIS (C)'); INSERT INTO TEST(SONGID,TITLE) VALUES (15,'MADONNA (CA)'); INSERT INTO TEST(SONGID,TITLE) VALUES (16,'MIRWAIS AHMADZAI, MADONNA'); INSERT INTO TEST(SONGID,TITLE) VALUES (17,'MIRWAIS (CA)/ MADONNA (CA),AHMADZAI'); INSERT INTO TEST(SONGID,TITLE) VALUES (18,'MADONNA (CA),CICCONE'); SELECT *FROM TEST WHERE INSTR (TITLE, 'MADONNA') > 0 output: SONGID TITLE 10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA) 11 CICCONE, MADONNA (CA) 12 DALLIN, MADONNA LOUISE/STOCK 13 MADONNA 14 MADONNA (A)/ AHMADZAI, MIRWAIS (C) 15 MADONNA (CA) 16 MIRWAIS AHMADZAI, MADONNA 17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI 18 MADONNA (CA),CICCONE Expected output : 13 MADONNA 14 MADONNA (A)/ AHMADZAI, MIRWAIS (C) 15 MADONNA (CA) 18 MADONNA (CA),CICCONE .. .. .. .. ...
Please let me know is possible to show the results in this order.
Kind regards
RajasekharThis can be a little more specific:
SQL> SELECT * 2 FROM TEST 3 WHERE INSTR (TITLE, 'MADONNA') > 0 4 ORDER BY INSTR (TITLE, 'MADONNA') 5 ,TITLE 6 ; SONGID TITLE -------------------- -------------------------------------- 13 MADONNA 14 MADONNA (A)/ AHMADZAI, MIRWAIS (C) 15 MADONNA (CA) 18 MADONNA (CA),CICCONE 12 DALLIN, MADONNA LOUISE/STOCK 11 CICCONE, MADONNA (CA) 17 MIRWAIS (CA)/ MADONNA (CA),AHMADZAI 16 MIRWAIS AHMADZAI, MADONNA 10 AHMADZAI, MIRWAIS (CA)/ MADONNA (CA)
-
How to display the rownum in oracle forms?
Hai all,
How to display the rownum in oracle forms?
Thank you
RCS
----------------
I would add rowum with the current form of group_mstr:
former columns:
group_id
GroupName
new columns will be:
identifier of the line
group_id
GroupName
I created as follows:
in forms
text tool > row id
text element > EXT_ITEM20
error text element: no white color, it's a different color
--------------
create > Trigger > a time new form instance > I gave like this:
DECLARE
CURSOR crrow_id IS
SELECT count (*) + 1 group_mstr;
BEGIN
OPEN crrow_id.
Search FOR crrow_id IN: TEXT_ITEM20;
CLOSE Crrow_id;
END;
------------
error: identifier group_mst must be declard
============I don't know also not quite what you want to display in your form. Do you want to just number the records displayed, from 1 to n?
If so, create a text whose property 'data base element' element to the value 'no', "calculation method" formula and the formula itself: SYSTEM. " TRIGGER_RECORD, then, in each case, the registration number should be indicated.
-
How to display the drop-down list box in MS excel by using labview report generation toolkit? Please post the block diagram of the code so that I can able to generate from the drop-down list box in excel with the menu drop-down...
Like this. (edition, use the reference forms instead of the reference to the worksheet)
Ben64
-
How to display the list of components in ultiboard 10?
The DRC report the errors where the components that are no longer in the design have been removed. How to display the list component and then remove them from the netlist to stop this?
Ultiboard reported missing errors of component (part 'X' is not about design) because the part is always referenced by a net. To fix this, you must remove the part of the net. Following the steps below to remove the part form the net.
1 tools > Netlist Editor
2. for each network that the part has been connected to, select the Net (upper-left).
3. Select the tab of pine trees, select the part and it is the PIN in the dialog box, then click on remove
The problem is when the part is removed, I see no easy way to determine the threads you need to remove the part of. I entered this as a feature request to make this easier, but as a workaround, you can put part and say Ultiboard what the missing part, then search the net names on the pins and remove the part of these pins
1 place a piece with a lot of pine trees (for example the part that was removed, or for example through Hole technology > Connectors > SIL & headers > HEADER2X9). When you place the part, make sure that the RefDes matches the RefDes of the part which has been removed.
2. once the room is placed, you should see rats nest lines that connect the part to the nets.
3 Zoom on the pins. You should now see the net name on each of the axes. For each of the pins connected, remove it from the net as described above.
4. remove the part that you placed.
-
How to display the name of my refnum on the front?
I write data to a file. To do this, I use ' Open/create/replace the file' to prompt the user for a file name, which is then out of my VI as a refnum. I then write strings in this file with "write to a text file.
How to display the name of the file (including the path) on the front panel once the user has entered it?
Michael
Use the Refnum at the path of e/s from file-> advanced file palette. You can wire it to a path indicator.
-
How to display the time of growth of the autoextended oracle files?
Hello
How to display the time of growth of the autoextended oracle files?
Hello
1. do you have re - seen view data dictionary in the oracle documentation?
DBA_DATA_FILES
dba_free_space
dba_Tablespaces
-Regarding (updated)
DBA_HIST_SEG_STAT
DBA_HIST_SNAPSHOT
DBA_TABLESPACE_USAGE_METRICS
DBA_HIST_TBSPC_SPACE_USAGE
2. If not, then re - discovers once and understand the use of columns and build the query.
3. If Yes, then why you have not tried to build queries
4. again, if you're lazy, search in google or forums. ton of translates queries
5. What are the disadvantage of step 4 - you will not get to learn something (0% gain of knowledge). If you really want to learn, then try to learn to build query, and try to understand the views of data dictionary
6. When you spend above task at the end of the task you will get satistided with two things
--> Understand how to use the Oracle docs for help and where to look in the future
--> Your skills / knowledge gain - trust me it will make you another step to learn new things.
7. If you don't know SQL, learn the basics takes hardly 2 to 3 hours and then you can build query.
It may be useful
-Pavan Kumar N
Maybe you are looking for
-
Hi all This morning web Safari address bar stopped working without reason. I am using El Capitan for a couple of months now and I have not installed anything new in a few days, so I can't associate this problem with any specific application. Here are
-
I need to provide an interface to the user to choose a start date and end date for sort data and display. Ideally I need an interface like the one you find in the online hotel booking sites - you choose the year, month and then the date. All standard
-
has worked before system restore now it shows only a white screen
-
Can someone tell me why I can't use the Position "Set Datalog' return to overwrite existing records in a circular buffer? Thank you Matt
-
Why when I plug in my headphones and open itunes or any program to listen to music, I can hear, but if I unplug I can't olways to re-start the program and I hate that if there are ways of solution helps Bay me Jesus