Display multiple records in forms 6i
hi every body
will anybody plz tell me how to display multiple records in tabular view of forms 6i.for example say i have a field in a block of a form.and i have to display multiple records in another block in the same form depending upon the value of the mentioned field in the above block.
will anybody help me??
Why are you manually populating your data block when Oracle Forms will do this for you? Oracle Forms is tightly integrated with the Oracle Database. You should just base your Forms data block on the ISSUED table. Then you can filter the records displayed by setting the WHERE Clause property to ID = :BLOCK1.ID or you can dynamically set it with code using the SET_BLOCK_PROPERTY('BLOCK_NAME',DEFAULT_WHERE,'ID = :BLOCK.ID') built-in.
Then, the only code you would need in your Button's When-Button-Pressed trigger would be:
BEGIN
GO_BLOCK('BLOCK2');
EXECUTE_QUERY;
END;This is the point of InoL's reply. When a Form is based on a table, you can use the "Enter Query" and "Execute Query" built-in features to query and display records.
Sounds like you might be new to Oracle Forms development. If that is the case, you might want to go through a few Forms Tutorials to learn what Forms can do for you. ;) Just search the internet for "Oracle Forms Tutorials" and you will find many!
Craig...
Similar Messages
-
To display multiple records in smart form
hi,
In the smartform how to use the LOOP option to display the multiple records .Two possible reasons,
Here is a very good code sample for using Template,Table,Loop in smartforms with screen shot
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
Please do not post multiple threads. Kindly reward point and close the duplicates.
Regards
Kathirvel -
How to create Form based on a table to display multiple record
Hello All,
Would somebody please tell me how to create a Form based on a single table ,
to view and insert multi record based on a single table.In other words I would like
to have a form as shown below ,where the users can Insert,update,delete,query and so on
Item Id PArt Number List Price
100 Item-1 $120.oo
200 Item-2 $150.00
300 Item-3 $50.00
I know I can do it as Single Record block using Tabular Format,but multiple record ?????
Thanks in Anticipation
BabuTry this method,
1. Creat a Master Detail Form (Custom Layout and not tabular)
and in the master block select one field.
2. In the HTML layout for master remove the reference for
that field(so that nothing will appear in the master block
of the form).
3. Before the update (in the Pl/SQL event handler select the 'Save' event and write the following code to avoid updating master block).
p_session.set_value(p_block_name => 'MASTER_BLOCK',
p_attribute_name => 'MASTER_ACTION',
p_value => 'None');
doSave;
For eg, let's say
Master is from 'Dept' table and Detail is from 'Emp' table(with join condition Dept.dept_id = Emp.dept_id). In the master remove everything except dept_id field and in the HTML layout for master remove the reference of the dept_id field(you cannot remove this field physically from the master layout). Now the form will look like multirow form rather than master detail form but only problem with this workaround is 'Detail Action' will be present in the detail block.
I hope this will help you.
Thanks
-Krishnamurthy -
Insert multiple record Oracle forms 6i/9i/10g
Hi,
how can i insert multiple record using a tabular view in oracle form,
do i have to use for loop?
can someone help me? i've kindda stuck in this problem..
scenario:
i have 5 display of last_name text_item and i put 4 names on it..
if i use insert into, it only get the 4th name i putted..
question:
how can i put them all together?Hi Vansul,
for example, let us use the field name last_name on the employees table
and we have text_item named text_last_name that has been displayed 4 times.
and i will put 4 names on it.
last name
brown
marco
lester
king
when i click the submit button, it will only get the last_name king.
now the question is how can i insert them all in my table?
my PL/SQL in my submit button is
begin
insert into employees
+(last_name)+
values(:blk_emp.text_last_name);
standard.commit;
end;
any help? I really need to solve this one.
Edited by: Nelzki on Jan 26, 2012 1:59 AM -
Can I use a cursor to display multipla records (just as an EXECUTE_QUERY)?
is it possible?
so I can display about 10 records at the same time in a block (in forms)
just like a tabular form?
using a cursor, fetch, etc.what I want is this...
do you see when in a tabular forms (multiple records, i.e 5 records at the same time).
if you press F8 (execute query), it will fetch all records.
ok, now instead of using the execute_query key, how can I get the same thing by using cursors? -
How to Display multiple records in Table in VC without using BAPI.
Hi All,
I am working on Visual composer (NW2004s SP10). I am trying to display Poitems from BAPI_PO_GETDETAIL. I am creating my front end using VC. I have created one form and one Table where I want to display POItems. I am writing my logic of retrieving data from BAPI in CAF.I am connecting them in Guided procedures.When I run my process in Guided Procedures I am getting single row displayed in table. Can Anyone help me how to display multiple rows in table.
Regards,
SheetalHi Sheetal,
if the BAPI returns a table, then you get multiple rows. From which system is the BAPI, so that I can check the BAPI to give you further information.
Best Regards,
marcel -
Display multiple records as sub-sections in the same report.
I am using Crystal Reports (VS-2005).
In a report, I have various sub-sections in the Details section. Each section represents a category and is connected with SQL command which uses LEFT OUTER JOIN.
The first section is the main section and the subsequent sections are the child sections.
Sometimes, a sub-section (other than the first main sub-section) picks multiple records of that category. In this case the report extends to multiple pages. Each report displays one record of this sub-section.
I want to show the the same sub-section multiple times in the same report as opposed to multiple reports that are now automatically generated by Crystal Reports.
How to handle this issue?This is a .NET programming forum related to Crystal Reports. Your question is best suited for our report design forum below. Also, when you post your question it will be helpful if you use report design terminology. We have elements like Report Header, Page Header, Groups, and Details sections. Just mentioning "sections" doesn't give us a good idea about what you are attempting to do.
Check out the grouping options and see if it helps. You might need to create a formula to help you with your grouping though.
If you like, I can move this to the design forum.
[SAP Crystal Reports Design|SAP Crystal Reports; -
Display the records in forms when creating in a database
hi to all
i have a problem in forms, run in c\s using form6i..
How can i display the records when i create a records to database and automatically display in forms when i open the forms or when creating a records?
example:
in form#1 , this is where i create records, i create records =A it will insert in database .when i update record A. I change A to B..then form#2 will also change to B and appear or dispaly in forms.
in form#2, this has also a text item, when i open this form, it will appear the A records here, it will also update....
what should be the best trigger to used and how to do this? plzzz help
tnx in advance
micaHow can i display the records when i create a records
to database and automatically display in forms when i
open the forms or when creating a records?
example:
in form#1 , this is where i create records, i create
records =A it will insert in database .when i update
record A. I change A to B..then form#2 will also
change to B and appear or dispaly in forms.Yours question is not clear to me , you didnt mention forms A and B contain the same underlying table or both have diffrent underlying table.
My assumption both have diffrent table if its the case then use MERGE DML (introduced within 9i) and get refreshed it by TIMER (execute_query) within forms B.
You need to clarify more what you wana achieve.
Khurram -
Display multiple records with CSS
PHP MySQL
I have a MySQL table with several columns and multiple
records... it is easy
to display these records in a <table> using the repeat
record server
behavior applied to the <tr> that displays the records.
I would like to do this with CSS and eleminate
<table>'s
My question is can this be done displaying the records in a
<div> using the
repeat record server behavior?
Or is this just one of those things that a <table> is
required?
JeffDisplaying rows of data is actually the reason tables were
originally
invented. :)
You need a table with the number of columns for your data and
two rows. The
first row is for the column headers. The second row is for
the PHP
placeholder that will be replaced with data. Apply the repeat
region to
this second row either for all rows or the number of rows you
desire to
display on one page .. in which case you would also use
recordset paging.
(previous, next)
Nancy Gill
Adobe Community Expert
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
A Beginner''s
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
Web Development
"Jeff" <[email protected]> wrote in message
news:erindt$i70$[email protected]..
> PHP MySQL
> I have a MySQL table with several columns and multiple
records... it is
> easy to display these records in a <table> using
the repeat record server
> behavior applied to the <tr> that displays the
records.
>
> I would like to do this with CSS and eleminate
<table>'s
> My question is can this be done displaying the records
in a <div> using
> the repeat record server behavior?
> Or is this just one of those things that a <table>
is required?
>
> Jeff
> -
How to display multiple records in a block text items
Can fetching be done to dispplay multiple records in the text items base on the query.
put the code in post-query trigger
-
Displaying multiple records on 1 screen
scenario:
- search dept_head thru dept_id in screen 1 via user input (dept_id)
- screen2 has 2 buttons BACK and NEXT
- if dept_head is only 1:
BACK - go back to screen 1
NEXT - exit the screen (im done on this)
- if dept_head is more than 1: (this is my problem)
BACK - display previous record, if on record #1 back to screen 1
NEXT - display next record, if last record is reached - exit.
this is my approach...
PAI - 1st screen
no_of_rec = 0
select dept_id
into v_dept_id
from dept
where dept_id = user_input.
no_of_rec = no_of_rec + 1.
endselect.
PBO - 2nd screen (I have a loop to display the record(s))
LOOP.
' display the records to corresponding fields'
ENDLOOP.
if no_of_rec = 1
'disble NEXT button'
else
'enable NEXT and BACK buttons'
endif.
PAI (2nd screen)
rec_num = 1.
case sy-ucomm.
when 'NEXT'.
rec_num = rec_num + 1
if rec_num < no_of_rec.
**i need to display next record in their corresponding fields - - - - how would i be able to do this??
do i need another loop or a select statement..
when 'BACK'.
i also don't know how to display the records in their correponding fields in screen2..
**please help...
also do i have a mistake in my approach?
thanks so much... hope you could help!Hi paul,
pls add : next_record;
OPEN prop_cur(:TXT_BACODE);
FETCH prop_cur INTO
:blk_address.txt_ref
,:blk_address.txt_address
,:blk_address.txt_desc
,:blk_address.txt_band_value
,:blk_address.txt_date1 ;
next_record;
CLOSE prop_Cur;
Hope this will work.
Regards
Anu -
How to display multiple records in smart forms in new page for each record
Hi,
How to display the data from a internal table in a smart form.
I want each record to be displayed in seperate page.
please tell me with example.
thank u,
SarathDo this ,
in the main window - open a loop on your internal table ,
within the loop open the text and give the output fields,
after this text use the Command node and in this set the next page as page1,
so when the loop gets executed its first record will be on the first page and the second record will be on the next page and so on ..
Reward to usefull answers. -
Solved: Need suggestions/solution on passing multiple records among forms
I have a form that is used for sign in. e.g LOGIN, after sign in, users are moved to a called form e.g. MYTOOLS
Before they are moved to MYTOOLS, I want to search the PRIVILEGES table and search for privileges the user has.
For example user # 1 signs in. In PRIVILEGES table, the user has 3 records or privileges e.g ADD_TOOL, ISSUE, RETURN
Whats the best way to get these records and pass them to other forms. ParameterList or Variables or RecordGroup or other better way?
Need your suggestions.
Working on Forms 6 and 10g databaseThis is what in the Login button.
DECLARE
button_stop NUMBER;
staffno VARCHAR2(4);
pword VARCHAR2(20);
rg_name VARCHAR2(40) := 'This_User_Roles';
rg_id RecordGroup;
errcode NUMBER;
BEGIN
IF(:LOGIN.USERID IS NULL OR :LOGIN.PWORD IS NULL) THEN
SET_ALERT_PROPERTY('STOP',ALERT_MESSAGE_TEXT, 'Please provide all details');
button_stop := SHOW_ALERT('STOP');
ELSE
SELECT STAFF_NO INTO staffno FROM UM_USERS WHERE STAFF_NO = :LOGIN.USERID;
SELECT STAFF_PASSWORD INTO pword FROM UM_USERS WHERE STAFF_NO = :LOGIN.USERID;
IF :LOGIN.PWORD != pword THEN
SET_ALERT_PROPERTY('STOP',ALERT_MESSAGE_TEXT, 'You have entered an invalid password');
button_stop := SHOW_ALERT('STOP');
RAISE Form_Trigger_Failure;
END IF;
-- Creating Recorg Group for Users Roles
rg_id := Find_Group( rg_name );
IF Id_Null(rg_id) THEN
rg_id := Create_Group_From_Query( rg_name,
'SELECT ROLE FROM UM_ROLES WHERE ROLE_ID IN (SELECT ROLE_ID FROM UM_PRIVILEGES WHERE STAFF_NO=3)');
END IF;
errcode := Populate_Group( rg_id );
:GLOBAL.STAFFNO := :LOGIN.USERID;
-- Calling Next form
CALL_FORM('MYTOOLS', HIDE, NO_REPLACE, NO_QUERY_ONLY, SHARE_LIBRARY_DATA);
END IF;
EXCEPTION
WHEN NO_DATA_FOUND THEN
SET_ALERT_PROPERTY('STOP',ALERT_MESSAGE_TEXT, 'You have entered an invalid username or password');
button_stop := SHOW_ALERT('STOP');
WHEN OTHERS THEN
SET_ALERT_PROPERTY('STOP',ALERT_MESSAGE_TEXT, SQLERRM);
button_stop := SHOW_ALERT('STOP');
END; -
Display multiple records into one deliminated record
If I have a table with two columns such as:
create table test(
id number(10),
name varchar2(30)
Say the example data in the table is:
id name
1 John
1 David
How can I select the data from sqlplus and return the record in the following format
1 John,David
instead of
1 John
1 David
What's the select statement looks like? Thanks.or you could put it this way...
SQL> SELECT a.id, a.name||','||b.name Name
2 FROM test a, test b
3 WHERE a.id = b.id
4 AND a.name <> b.name
5 AND a.ROWID = (SELECT MIN(ROWID) FROM test WHERE id = a.id);
ID NAME
1 John,David
2 Neil,Craig
SQL>
the position of how the names (i.e. John, David or David, John) are presented would depend on the sub-query for ROWID (either use MAX or MIN function). I think the later query would match with that of your requirement. -
Display multiple record block in multiple canvases
Hi,
I am facing a problem while creating multiple canvases with the same blocks.
I have block A, B, C. Block B and C are detail of A. I want items from blocks B and C to appear in multiple canvases. I tried doing the synchronize with item. It works fine but I cannot see the scrollbar in other canvas. Is it possible to show scrollbar in multiple canvases?
Thanks in advance.
DKIf you mean that you want the scrollbar of the same block to be appeared on multiple canvases where items of this block are placed in different canvases... unfortunately... you cannot....
Greetings...
Sim
Maybe you are looking for
-
IPad won't sync ALL of my songs
I Have over 2800 songs on my computer . I was able to sync all of those to my new iPod . But I am not able to sync all of them to my iPad . It will only sync about 800. i have checked all the same categories in iTunes but it won't sync ... Can some
-
We have any certification for OWB
PLS say any certification for owb,I know that informatica has 3 levels of certification.but i dont know abt OWB. please let me know... sen Edited by: user8723816 on Mar 26, 2010 3:49 AM Edited by: user8723816 on Mar 26, 2010 3:49 AM
-
I have a Flash film that opens my site and plays for just a few seconds. What I need to do is to have the page link to the homepage and open it in the same window replacing the Flash film. I would appreciate any ideas on the matter. Thanks.
-
I have a .swf with that contains a linked .flv and a progress slider, start/pause button and a volume slider. When I run the .swf independently, all controls work fine. When in Director the progress slider only works for a moment as if I did a full m
-
Os x 10.5.4 Leopard
Installed os x 10.5.4 by mistake trying to correct a missing file and now cannot access any of my files. Cannot upgrade Safari, iTunes, and unable to download driver for my HP Photosmart printer. What is the easiest and safest way to correct this err