Can we changer record orientation on Oracle forms?
Hi,
I have a form that displays many records and it refreshes using a timer
I need to display as many records as I can on the form, without the user having to scroll down, the maximum I can have at some point is 120 records. Now the records are displayed on the usual vertical behavior.
I thought if we can reverse the orientation of the records and display them horizontally, we can have more room if we turn(flip) the display (the user will have a 46" monitor)
my other question is, in case I could not fit all records in one screen, can the data scroll on the block without any user intervention, till it gets to the last record, and then it restart at the beginning?
I hope my explanation is clear
Thanks for the help
Bloody hell, that is bigger than my flatscreen TV!
You can scroll with next_record and when you get to the last record go back to the top with go_record(1).
begin
go_record(1);
loop
dbms_lock.sleep(1);
if :system.last_record = 'TRUE' then
go_record(1);
exit;
else
next_record;
synchronize;
end if;
end loop;
end;To add: this works best if you have a current record visual attribute.
Edited by: InoL on Jun 21, 2011 2:19 PM
Similar Messages
-
Get three previous records of the current record in an Oracle Form
Hi,
I need to get three previous records of the current record in an Oracle Form
Sorry for the lengthy explanation:
I have a table name: ARCHIVE_DATA with column name: coll_time and its data type DATE.
SQL> SELECT COLL_TIME FROM ARCHIVE_DATA;
COLL_TIME
12-AUG-05
12-AUG-05
12-AUG-05
12-AUG-05
12-AUG-05
12-AUG-05
12-AUG-05
12-AUG-05
12-AUG-05
12-AUG-05
10 rows selected.
SQL> select to_char(coll_time,'dd-mon-yyyy:HH:MI:SS') from ARCHIVE_DATA;
TO_CHAR(COLL_TIME)
12-aug-2005:02:42:00
12-aug-2005:02:43:00
12-aug-2005:02:44:00
12-aug-2005:02:45:00
12-aug-2005:02:46:00
12-aug-2005:02:47:00
12-aug-2005:02:48:00
12-aug-2005:02:49:00
12-aug-2005:02:50:00
12-aug-2005:02:51:00
10 rows selected.
This is the Requirement:
In a Form's Block(BLK1), for example: the current_record is the fifth record from the top
(i.e. 12-aug-2005:02:46:00)
When the fifth record is the current_record and When I click a button, three previous records of the
current_record should be populated on the screen.
See what I did:
I created another table same as the first table(ARCHIVE_DATA) and its name is: THREE_RECS.
I am inserting three records from the first table(ARCHIVE_DATA) into the second table: THREE_RECS
which are less than the current record and ORDER BY DESC.
CANVAS:
Two blocks (BLK1, BLK2) based on ARCHIVE_DATA and THREE_RECS are on the same CANVAS.
But the first block (BLK1) which is based on the first table:ARCHIVE_DATA is populated with one record and the
second block (BLK2) is empty.
So when I click a particular button (ex: prev_recs), the second block(BLK2) should be populated with
three previous records of the current record( :BLK1.COLL_TIME)
(off course :BLK2 populates with one record and use arrows or scrollbar to get the other two records)
This is the code I wrote in the trigger and followed by the error:
1 BEGIN
2 DECLARE
3 cursor c1 IS
4 SELECT MONITOR_ID,
5 SAMPLE_ID,
6 COLL_TIME,
7 DEW_POINT
8 FROM ARCHIVE_DATA;
9 cursor c2(passing_date IN date) IS
10 SELECT MONITOR_ID,
11 SAMPLE_ID,
12 COLL_TIME,
13 DEW_POINT
14 FROM (SELECT MONITOR_ID,
15 SAMPLE_ID,
16 COLL_TIME,
17 DEW_POINT
18 FROM ARCHIVE_DATA
19 ORDER BY COLL_TIME desc)
20 WHERE COLL_TIME < passing_date;
21 BEGIN
22 FOR cur_rec in c1
23 LOOP
24 IF (cur_rec.COLL_TIME = to_date(:BLK.COLL_TIME,'dd-mon-yyyy:HH24:mi:ss')) then
25 FOR second_cur_rec in c2(second_cur_rec.COLL_TIME)
26 LOOP
27 IF c2%rowcount < 4 then
28 BEGIN
29 INSERT INTO THREE_RECS
30 values(second_cur_rec.MONITOR_ID,
31 second_cur_rec.SAMPLE_ID,
32 second_cur_rec.COLL_TIME,
33 second_cur_rec.DEW_POINT);
34 COMMIT;
35 END IF;
36 END LOOP;
37 END IF;
38 END LOOP;
39 END;
40 END;
This is the error I am getting:
Error 103 at line 14
Encountered the symbol "(" when expecting one of the following
a PL/SQL variable or double quoted string
an expanded name
an expanded name link
a table reference __expression
a key word
Resuming parse at line 126, column 46
Thanks in advanceChange C2 to:
cursor c2(passing_date IN date) IS
SELECT MONITOR_ID, SAMPLE_ID,
COLL_TIME, DEW_POINT
FROM ARCHIVE_DATA
WHERE COLL_TIME < passing_date
ORDER BY COLL_TIME desc;And rather than populating a table with the three records, you could just select the three records using: where COLL_TIME between Prev3_time and Prev1_time -
How we can load change record in cube.
Hi,
How we can load change record in cube, (delta)
i need step by step in sap BI 7.0.Hi Nitin
I hope you are asking about delta loads, if your datasource supports deltas then you can do only changed records from source to cube. To see the details goto ROOSOURCE table in ECC and find.
For further help search in SDN and help.sap.com, you can find n number of postiings about the same.
Thanks
Reddy -
Can I rum Crystal Report on Oracle Forms
Friends
Can I rum Crystal Report with Oracle Forms.
Rgds
Muhammad Tahir KhanYes....but the way depends on your form's version and app implementation....!!!!
Greetings...
Sim -
How can i change the orientation of different pages in a Pages document?
How Can I change the orientation of a single page in a Pages document?
You can't. It has never been an available feature in any Pages version. you have to rotate the content on the page.
-
How to change image resolution in oracle forms.
Hi Experts,
I am working on oracle forms 10g (Windows7 OS). Can we get the image resolution of an image item in oracle forms? Can we resize the image in terms of resolution?
I have a requirement where user can upload only 1280x720 size images. Either i have to validate the image resolution and give them a message saying 'Only 1280x720 size images are allowed' or simply i have to convert the image to be upload to 1280x720 size and save in the database. If someone could give the solution for the above problem that would be very much appreciated.
Thanks,
Pramod SR1. You need to resample.
2. You can automate the process.
1.
Open one of the images.
Go to Image > Image Size
Set the units to Percent (100)
Change the resolution to 300 ppi (not cm!)
Make sure Resample is checked
2. automation
Test the above steps to make sure it works.
Record the steps as an action.
Make a droplet from the action.
Drag the folder with the images to the droplet. -
Need some more fields displayed in record history of oracle forms
Hi ,
I am using oracle forms 6.0.8.8.0 . My requirement is to display PROGRAM_ID , PROGRAM_APPLICATION_ID , PROGRAM_UPDATE_DATE , REQUEST_ID in the record history of the forms along with CREATION DATE , CREATED BY , LAST UPDATE DATE , LAST UPDATE LOGIN , TABLE which are already being displayed .
Please help .Actually when the record history is to be brought , we need to make it database fields or write code to post query . So I think I can get a solution in this forum as we need to make changes in form only in order to show in record history .
-
How to enable Multi-record select in Oracle Forms
Hi
we recently upgraded to R12 -- 12.1.3.
we have a requirement in which I should let the users select multiple records in a tabular Form (custom form).
Currently we have a custom form that displays Open sales orders with credit holds. After selecting the record, the user can release the hold on the order by clicking on a button. The requirement is for enabling selection of multiple records and release.
We have a similary functionality in 'Quick Sales Orders' form. In this form, multiple lines can be selected by pressing 'CTL' and clicking on the records.
I read about using APP_MULTI for this. But I couldnt figure out how to enable the multiple selection.
If someone could throw some light on this, it would be greatly helpfulSee http://stackoverflow.com/questions/3291758/how-do-i-use-the-app-multi-package-to-support-multi-selection-in-my-oracle-form for steps/sample code.
Sandeep Gandhi -
Can't find VBean, IView and oracle.forms.* classes
I posted this on the JDeveloper's forum, with no luck obviously.
What settings need to be changed to be able to browse through oracle.forms.* classes?. I cannot extend VBean neither implement IView; when I try to recompile the demos from OTN I get errors telling me the directory oracle\forms\handler and others alike cannot be found.
Something curious is I can compile the source in JD 3.2 version and I cannot in version 9i.
Other thing is, when I create a new project in version 3.2 I can no longer see classes in the oracle.forms package.To get the "Javadoc" for the iview interface check the online help of Forms for iView.
You didn't mention which version of oracle forms are you using. Are you using the Oracle9iDS install?
The oracle.forms.* classes are usually under the Java directory of a Forms installation.
If you are using Oracle9i JDeveloper you should be using Oracle9i Forms as well. -
Can't change action trigger in pdf form
Using Acrobat x pro, i am trying to create a button that will attach the pdf fillable form to an e-mail when the user presses the "emial completed form" button and i can't change the button property Select Trigger from Mouse up to anything else. this is annoying because if you move you mouse over the button it will trigger the action. i want to change it but when i do in the properties window, it changes back automatically.
any help would be great.Hi,
I'm using PL39 and I can delete rows in matrix (you are right in previous patch there was an error, and it´s imposible to delete rows). I saw the code you put and I doesn´t undestand what you are trying to do. I explain what I do:
- I enable the menu 1293 to delete row in a matrix, in the menu event i put the following code
Dim oMtx As SAPbouiCOM.Matrix =
oMtx.FlushToDataSource()
This works for me. -
How to write WHERE clause in dynamic record group in oracle forms
hi this is s.v.eswar,PLZ HELP ME
i am new to oracle forms
i want to write where clause in dynamic recordgroup
this is the code i have written
DECLARE
MGR_ITEM ITEM:=FIND_ITEM('MGR');
RG_ID_MGR RECORDGROUP:=NULL;
MGR_DUMMY NUMBER;
BEGIN
RG_ID_MGR:=FIND_GROUP('MGRNUMBER');
IF ID_NULL(RG_ID_MGR) THEN
RG_ID_MGR:=CREATE_GROUP_FROM_QUERY('MGRNUMBER','SELECT DISTINCT TO_CHAR(EMPNO),TO_CHAR(EMPNO) FROM EMP WHERE JOB='MANAGER''); --THIS IS THE LINE I AM GETTING ERROR
END IF;
IF NOT ID_NULL(RG_ID_MGR) THEN
MGR_DUMMY:=POPULATE_GROUP('MGRNUMBER');
IF MGR_DUMMY=0 THEN
POPULATE_LIST(MGR_ITEM,'MGRNUMBER');
END IF;
END IF;
END;
COMPILE TIME ERROR
1)I have written where clause like this WHERE JOB='MANAGER'
then oracle compiler has given error like
ENCOUNTERED THE SYMBOL 'MANAGER' WHEN EXPECTING ONE OF THE FOLLOWING .,().........etc
(FOR THE ABOVE ERROR I JUST REMOVED SINGLE CODES AND WRITE LIKE THIS ----->WHERE JOB=MANAHER)------>THEN COMPILED SUCESSFULLY)
AND I RUN THE FORM
RUN TIME ERROR
FRM-41072: CAN NOT CREATE GROUP 'MGRNUMBER'Hi there
pls have a look here
Dependent drop down lists in forms 6i
hope this helps...
regards,
Amatu Allah -
How can I change screen orientation on my iPad air 2?
How can I change the scrEen orientation on my new iPad Air 2? I do not see a lock device on the side like my old iPad has.
Tap the padlock icon in Control Center.
-
How can I open a url in oracle form 9i without toolbar and menubar
I want to create a button in my form. When I click on the button it should open url without toolbar and menubar.
I tried with web.show_document. but I am not able to remove the toolbar and menubar. plus not able to specify width and height. Any way to achieve this.
Thanks,
MansoorDear Frank,
I have done as follows
created a form with a button, and in my button pressed event I wrote
WEB.SHOW_DOCUMENT('javascript:openMyURL("http://192.168.1.34/HELP/ADMF0005.html");', '_Self');
and in my formsweb.cfg I have the following
HTMLbeforeForm=<script> function OpenMyURL(page){window.open(page,"myURL","width=700,width=400,top=0,left=0,toolbar=no,menubar=no"); } </script>
When I click on the button it is coming with toolbar , etc as well as no page found is coming with the following in the address bar.
javascript:openMyURL("http://192.168.1.34/HELP/ADMF0005.html");
My html view source comes as below for the form
<HEAD><TITLE>Oracle9iAS Forms Services</TITLE></HEAD>
<BODY >
<script> function OpenMyURL(page){window.open(page,"myURL","width=700,width=400,top=0,left=0,toolbar=no,menubar=no"); } </script>
<!-- Forms applet definition (start) -->
<OBJECT classid="clsid:CAFECAFE-0013-0001-0009-ABCDEFABCDEF"
codebase="/forms90/jinitiator/jinit.exe#Version=1,3,1,9"
WIDTH="1000"
HEIGHT="660"
HSPACE="0"
VSPACE="0">
<PARAM NAME="TYPE" VALUE="application/x-jinit-applet;version=1.3.1.9">
<PARAM NAME="CODEBASE" VALUE="/forms90/java">
<PARAM NAME="CODE" VALUE="oracle.forms.engine.Main" >
I am using Forms [32 Bit] Version 9.0.2.7.0 -
Changing prompt colour in oracle forms 6i to canvas background (solution)
One of the really infuriating things about Oracle Forms 6i (and possibly other versions) is that when you set a visual attribute for a item the prompt, as well ad field, takes that background colour. Seing it is common to have the field background white and the canvas background gray this is a paid. The following procedure sets the background colour for all prompts to the background colour of the canvas the prompts field sites on - i.e. it automaticaly sorts out the problem.
PROCEDURE lp_setup_prompt_colour IS
-- This procedure sets the background colour of all prompts to the
-- items canvas background colour
this_block varchar2(70) :=
get_form_property (name_in ('SYSTEM.CURRENT_FORM'), first_block);
last_blockname constant varchar2 (70) := -- Initialise current block to first block
get_form_property (name_in ('SYSTEM.CURRENT_FORM'), last_block); -- Define the last block
field_name varchar2(70); -- the name of the current item
this_item varchar2(70) := -- Initialise current item to the first item in the form
get_block_property (this_block, first_item);
last_field varchar2 (70) := -- Initialise last item to the last item in the first block
get_block_property (this_block, last_item);
canvas varchar2(70);
begin
loop -- Go through every item in the form
field_name := this_block || '.' || this_item; -- set the current item
canvas := get_item_property( field_name, ITEM_CANVAS );
if canvas is not null then -- don't bother if null canvas item
SET_ITEM_PROPERTY(field_name, PROMPT_BACKGROUND_COLOR,
GET_CANVAS_PROPERTY(canvas ,BACKGROUND_COLOR));
end if;
-- Stop looping once the last item in the form has been added to the list
exit when this_block = last_blockname and this_item = last_field;
if this_item = last_field then -- weve looped round and are back at first field
-- Step into the next block
this_block := get_block_property (this_block, nextblock);
this_item := get_block_property (this_block, first_item);
last_field := get_block_property (this_block, last_item);
else
-- Step to the next item in the block
this_item := get_item_property (field_name, nextitem);
end if;
end loop;
end;
also posted at http://www.gurtlush.org.uk/article.php?story=20040422141050964Actually, this is a known bug - you should apply the latest patch.
Regards
Grant -
How to disable 'Clear Record' option in Oracle Forms deployed in Orcl Apps
Dear Members,
I have developed a custom form which is deployed in Oracle Applications.
In this form I want to disable the 'Clear Record' option to prevent users from clearing the record.
Can any one please tell me how can I do it?
Thanks in advance.
Best Regards,
Arun Reddy D.Hi,
In your Forms---> trigger--> KEY-CLRREC-----> NULL;
You cant clear any record.
Maybe you are looking for
-
Safari, Quicken Essentials, other apps freezing after installing Maveric
Okay, I installed OS X 10.9 when it first came out. Then started having issues with apps freezing, like Safari, Quicken Essentials and other apps. I noticed this only after installing Maverick. The only time the freeze would go away, would be af
-
InDesign CS3 Scripting XML Import Multiple Images into same Text Frame
I am having trouble importing multiple images into the same Text Frame using XML import. I imported 5 images into the text frame. However, all 5 images are laying on top of one another. Does anyone know if there is a way to have all images laying out
-
Error due to PI 7.1 hard coding
Hello all, Have installed PI 7.1 and ran the post-installation steps.Now, the goal is to run a demo that will allow one to use PI 7.1 with services residing on a gsoap server. So, one does the following: 1. http://<host>:50000/rep/ 2. It then starts:
-
Problems starting managed server via nodemanager
Hello, I have a WebLogic 6.1 SP2 installation on two Solaris 8 maschines. One hosts the admin server and the seconds hosts a managed server. I installed the nodemanager on both maschines. They seems to run normally. I configured the "Remot Start" for
-
Where to find JSFUtils package?
Hi Thank you for reading my post where i can find JSFUtils packge ? I mean the jar files that i should include in the project. thanks