How to display database records in the text element
Hello friends,I use forms6i...
I called "username" in the layout of text editor. I created this point in the text of the data block Wizard... I put the number of items displayed = 3 in this wizard...
In the 'user name' property palette I have following changes
Number of displayed items = 3;
When I click on the button named "list_user" must watch all the user names in the text element...
My shutter button pressed when code is:
declare
cursor c1 is
Select Logid log1 where logout_date is null;
Start
Open c1;
Fetch c1 into: name of user;
end;
But my problem is when I run the user a single form displayed in the text element... The text elements two remaining are have no data...
The result of the cursor query is:
SQL > ed
A written file afiedt.buf
1 Select logid log1 where logout_date is null
SQL > /.
LOGID
--------------------
104
105
106
Please help me
Published by: Bauer on February 23, 2011 01:45
1.
There is no loop in your code, so it stops after the first extraction.
2.
with each loop you overwrite the same text field. Add CREATE_RECORD:
DECLARE
CURSOR c1 IS
SELECT logid
FROM log1
WHERE logout_date IS NULL;
BEGIN
OPEN c1;
LOOP
IF :username IS NOT NULL THEN
CREATE_RECORD;
END IF;
FETCH c1
INTO :username;
EXIT WHEN c1%NOTFOUND;
END LOOP;
END;
Tags: Oracle Development
Similar Questions
-
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
-
Hallo,
I need to create a page that displays the records of a VO, but I would not use a table.
Instead, I would like to display a form for each record to be displayed.
Forms must appear one above the other and each form should have 2 buttons: one to remove the file/form itself and one to add a new file/form.
When you press the button Add a new empty form should be dynamically added to the page (so that the user can fill) and created related record.
When REMOVE button is pressed the form (which contains the operated button) should be disappear and the record shuould be deleted.
Creations and destruction must be applied only if the user clicks a button on CONFIRMATION / COMMIT.
Maybe this http://digilander.libero.it/flattit82/OTN_FILES/MultiFormPage.png picture can help to understand what I want to do.
You kindly help me?
Thank you
Federico
Hi Federico
I was saying that your page layout can be achieved using af: table
See this image:
This provision is af:table (I think same as yours), just add a column in the table and put all the fields in this column then correct layout allows to design as a provision on the form or group layouts
I'm not saying it's the best approach, but you can try this
Thank you
-
How to view computer-id (user name) in the text element
I want to know how to display the name of average user specific computer id that uses my module in the text element?
Any idea
Concerning
ThereseHai,
Run the following command to create a database function.
CREATE FUNCTION Fn_Get_Computer_Name RETURN VARCHAR2 IS Str_RetVal VARCHAR2(1000); BEGIN SELECT SYS_CONTEXT('USERENV', 'OS_USER') INTO Str_RetVal FROM DUAL; -- Windows User Name RETURN Str_RetVal; EXCEPTION WHEN OTHERS THEN RETURN NULL; END;
And in the forms, just write
:
. := Fn_Get_Computer_Name; Kind regards
Manu.
If this answer is useful or appropriate, please mark. Thank you.
-
How to display Quick values in the story
With the help of 11.1.1.6.2
In a dashboard page, I have a table with a hierarchy of dimension for the organization. If you click on a division he runs a link action to call a script in the browser (javascript in a text on the dashboard section) from the division. If you expand the section, and then click on a market, it calls the function javascript even.
Then, the Javascript function uses path go to update an analysis in an iFrame on the dashboard page and passes the value of the Division or the market value.
The analysis of the target has two filters: Division is invited and the market is invited.
So, after all, my question is how could display two values from the call of the road go into a narrative on the analysis of the target? Or I guess the other question is how to view the filter on the narrative values.
Sorry for the long explanation, but I hope it makes sense.
Thanks for any help or suggestion.
BradTry something using the Div tag
for ex:
< div id = filterValues > @{WeekBetween} {Default Value} < / div >
< script >
var i = document.getElementById('filterValues').innerHTML;
document.getElementById('filterValues').innerHTML = aParams ["varDivision"];
< /script >If brand pls help
-
How to display multiple records in a loop
Hello
This procedure returns some data.
so please tell me how I can write a loop to display all the records from a Table.
This is my procedure:
create or replace procedure getEmpName
*(*
Employee in V_EMPID. EMPID % TYPE,
V_EMPNAME employees. EMPNAME % TYPE
*)*
is
Start
Select empname into V_EMPNAME from employees where empid = '2';
end;
It's my block: how to write a loop here to display all of the records in my Table
declare
v_EMPNAME EMPLOYEE. EMPNAME % TYPE;
Start
getEmpName (2, v_EMPNAME);
dbms_output.put_line (v_EMPNAME);
enduser10503747 wrote:
so please tell me how I can write a loop to display all the records from a Table.Hello
given the procedure displays all records in the table emp...CREATE OR REPLACE PROCEDURE Testloop
AS
CURSOR test1
IS
SELECT EMPNO, ENAME FROM EMP;
BEGIN
I'm IN test1
LOOP
DBMS_OUTPUT. Put_line (' Emp - ' | i.empno |) » -'|| i.ename);
END LOOP;
END;
/Thnx
MB -
How to display date / time in the browser console?
How to display date / time in the browser console?
You can set through the Options (gear icon) page in the Web Console (Firefox/tools > Web Developer).
This applies to the browser console and the Web console. -
How can I copy parts of the text of a pdf file in preview?
How can I copy parts of the text of a pdf file in preview? For example, the beginning and the end part of a passage - copy not a few sentences in the Middle
Select the first part of the text you want to copy. Press the command and option together and also select another passage of text. Now, press command + C to copy the two text selections.
Hypothesis: The PDF did not limit content selection.
-
How to extract values of classic report column in the text element
Hi all
I've created a classic report (select id, name,' < input type = "button" value = "add" id = "add" name = "add" > "as" add details "details ;) with a single column as column values want link.i in the text element when I click on the link of that particular record of the report)
(1) in the link this link column property I've specified the URL as [javascript:insert_in_table(#ID#,#NAME#)]
(2) text two article P_ID, P_NAME
(3) in the header of the page, I've specified as javascript
< script type = "text/javascript" >
function insert_in_table (id, name) {}
var regId = ' #detail #'.substr (1);
var req = new htmldb_Get (not null, $v ('pFlowId'), 'APPLICATION_PROCESS = add', $v('pFlowStepId'));
Req.Add ('P_ID', ID);
Req.Add ('P_NAME', Name);
forced. GetAsync (function () {}
If {(p.readyState is 4)
$a_report (regId);
}
});
}
< /script >
(4) created a (add) process whose point: on demand, run this process when requested by ajax
pl/sql: insert into name_detail (id, name) values (: P_ID,: P_NAME)
now the problem is I m not getting the values of column in the report in the text element, it only shows white.
Kind regards
Ketan
Hello Ketan,
Assuming that you want to insert the values into the table, this is why you want to set values for the element,
If this is the case, then no need to define values for the element to insert.
Follow the steps below, it is one of the embodiment of your condition.
Step 1: Put the code below in your classic report query
assuming that the id is of type number and the name is of type varchar, that's why I am attaching the name to apostrophe, see line 3
select id , name , '' as "Add to detail" from detail
Edit 'Add details' column-> column attributes-> view-> column of Standard report
Step 2: Create a process in the processing of the Page
Name: INSERT_DATA
Address the point: on demand, run this process when requested by ajax
Process: putting the code below
Declare P_ID number ; P_NAME varchar2(50); Begin P_ID := apex_application.g_x01; P_NAME := apex_application.g_x02; insert into name_detail(id,name) values (P_ID,P_NAME); End;
Step 3: Create a java script function to call your insert ajax process.
Change the Page-> the function and the global variable declaration-> put the code below
function insert_in_table(id,name) { apex.server.process ( "INSERT_DATA", { x01: id,x02: name }, { success: function( pData ) { } }); }
Hope this helps you,
Kind regards
Jitendra
-
How to add an outline to the text?
How to add an outline to the text?
Add a line in the character of the text layer settings.
-
I can't have multiple files open at the same time! I need to compare the content from one to the other. How to display two files at the same time?
Hi sindres79946597,
Open Acrobat Reader DC, navigate to the Edit-> Preferences-> General-> uncheck "Open Documents in the new tab in the same window.
Now, reboot your system, when you open multiple PDFs that all will open in a new window so that you can easily compare.
Kind regards
Nicos -
How to set background color of the text?
I have a TextFrame: abcd
I want to set the background color of the text "bc" is red
How to set background color of the text?
Who would be with custom underscore. Set the solid style, choose a color and to adjust the weight and offset of an underline, making it thick and move up behind the text.
-
How to display this checkbox at the bottom of table lines.
Dear friends,
I created a table and a checkbox element in this region.
I want to display this item box after rows in a table.
How to display this checkbox at the bottom of table lines.
Thank youHello
OK, sorry.
Place the checkbox element to declare and report change 'display point"for example"Page Template Body (2. (éléments ci-dessous le contenu de la région) ".
Kind regards
Jari -
How to display multiple images at the same time in CS6?
How to display multiple images at the same time in CS6?
Hello
If you go to window > reorganize you can choose from several display options. Below, I have chosen two horizontal spaces since I have two images, but you can select other options if you have more than one image.
-
How to get the control to one of the text element?
Dear people,
I have two items of text to say TEXT_ITEM5 and TEXT_ITEM6.both values entered in the text elements must be equal.else that an error message should be displayed and two items of text should be cleared.so that I wrote the following code in WHEN BUTTON the shutter as.
Its almost works well, but after having erased the text in the two elements of the control text should go back to TEXT_ITEM5. I even tried GO_ITEM but is not working properly.pls help me with suggestions.If :block3.text_item5 <> :block3.text_item6 then c:=show_alert('ALERT21'); :block3.text_item6:=null; :block3.text_item5:=null; raise form_trigger_failure; end if;
Regarding
VidsHello
If the value of two text element should be equal so why give the possibility to enter 2 text boxes? Enter 1 text and WHEN-VALIDATE-ITEM trigger of this element, assign the value to the other text element. And if you still need the old way, then you must write the GO_ITEM integrated before the RAISE FORM_TRIGGER_FAILURE statement.
IF :BLOCK3.TEXT_ITEM5 != :BLOCK3.TEXT_ITEM6 THEN C := SHOW_ALERT('ALERT21'); :BLOCK3.TEXT_ITEM6 := NULL; :BLOCK3.TEXT_ITEM5 := NULL; GO_ITEM('BLOCK3.TEXT_ITEM5'); RAISE FORM_TRIGGER_FAILURE; end if;
Kind regards
Manu.
Maybe you are looking for
-
I have a HP ENVY dv6 and it is not possible to configure the keyboard to use the (?) without using him copy / paste. How to properly configure the keyboard... I live in the Brazil.
-
How to retrieve favorites/bookmarks after spam induced sys. restore?
Some Jive-* bastards used fake E-mail notice of non-delivery of UPS to insert their vile me dirty in my PC and gum work. I immediately did a reboot without result. Then a system restore command prompt. Who has worked and rinsed the invader, I think;
-
Hi, can someone tell me how to fix my desktop icons? whenever I have add or delete one, all others move around so that they are never in the same position.Thank you.
-
ezSharedsvchost.exe (trinkets and IN NEED HELP)
OK been amounts of problems with what ive has also posted about it on the comodo and im wondering if this is a safe product by my im search if it is not convinced, some people said if I have any software Easybit installed on my computer when im answe
-
OBIEE dynamic column headings based repository Variables
HelloHow can we provide variable name of the repository (from RPD) as column headings in reports (presentation Services).Can you please suggest me how to do it?Thanks in advance...RAM