Key-nextrec not firing in forms 10g
I have a code in the above trigger, but it is not firing, I have it in the block property and no other place in the form
message('In key next rec----'); message(' ');
IF :SYSTEM.Last_Record = 'TRUE' Then
Null;
Else
next_record;
End If;
when-new-record-instance runs when you navigate to the next record.
Key-Nxtrec (Nxtrec is the correct spelling) only runs when you press the key assigned to call that trigger. In my environment, it is the Shift+ Down-Arrow key, but it could be just Down-Arrow -- it all depends on what key sequence is assigned to Forms Function Number 67 in your Forms Resource file, FMRWEB.res (or fmrusw.res).
So if the trigger runs when you press the correct keyboard key, and you issue the message but do not call the Next_Record; built-in, focus will not navigate to the next record in your running form.
Similar Messages
-
F7 & F8 key is not working in forms 10g
Dear all,
I am working with oracle application version 10.1.2.3.0, installed on windows server 2003 and database 10gR2 on windows server 2008. When i open any form and tries F8 / F7 to executed & enter
query, its not working. But its owrking with with F11 and shitp + F11. I want to use F7 & F8 for enter/execute the query. I have same another same environment with same configuration, there F7
& F8 is working fine. To enable these keys i rename fmrpcweb.res to fmrweb.res. But guide me with your sincere suggessions & experience.
Regards,
Ahmed.According to Metalink's Developer 2.1 Release Notes (Doc ID #90090.1), section 4.2.1, "TABLE_FROM_BLOCK Built-In":
DO NOT use the TABLE_FROM_BLOCK built-in described in the
documentation. It is reserved for internal use only. No support
for this built-in will be provided under any circumstances.
If you used this built-in, you will need to recode your from(s) for 10g.
Message was edited by:
Mark Roberts -
Ole2 commands not working in forms 10g
OLE2.set_property(Application, 'Visible', true);
above statement not working in forms 10g;Try to use the OLE2 fuction from WEBUTIL library. There is function in webutil CLIENT_OLE2.
-Ammad -
Enter key not working in forms 10g
Hi guys,
Enter key to select a form is not working
on my application.
I have to double click the form to open it using the mouse.
Then if we try to exit we have to press exit that many number of times as we have pressed enter key.
So it seems to be storing the key processes.
We are using forms 10g.
Please help.
Thanks and Regards,
RohanFixed.
Changed KB.
However, this is still strange as the old KB was working fine in other applications. -
I am working on an Oracle 10g database and am using Oracle Forms Developer 10g to create forms. I have created a new 2 field table in my database:
CREATE TABLE career_cluster
(career_cluster_code VARCHAR2(3) NOT NULL
,CONSTRAINT career_cluster_pk
PRIMARY KEY (career_cluster_code)
USING INDEX
TABLESPACE GALINDX
,career_cluster_desc VARCHAR2(30) NOT NULL
TABLESPACE galaxy;
I have also created a form so that users can enter data into this table. I have a career_cluster data block in my form with two items: career_cluster_code (set with a maximum length of 3 in my property palette) and career_cluster_desc (set with a maximum length of 30 in my property palette). Both items are also set in the property palettes to a char data type. In my SQL code (in the form) I always have these two items set as varchar2 with (3) and (30), respectively.
The form opens fine when I run it, however when I click on my SAVE button my KEY-COMMIT trigger is not fired -- it jumps directly to my ON-ERROR trigger and I get an Oracle ORA-06502 error message. I don't see any inconsistencies in my data types or lengths. Below is my KEY-COMMIT code:
DECLARE hold_item varchar2(30) := :system.cursor_item;
hold_record varchar2(10) := :system.cursor_record;
mess_name varchar2(80);
mess_text varchar2(80);
BEGIN
go_block('career_cluster');
if (error_code = 40202) then
goto end_of_trigger;
end if;
if :system.block_status = 'CHANGED' then null;
commit_form;
if FORM_SUCCESS then null;
mess_name := 'Transaction Complete';
mess_text := 'Career Cluster(s) committed to the database';
DISP_ALERT2(mess_text,mess_name);
end if;
else null;
mess_name := 'No changes to commit';
mess_text := 'No changes have been made to the Career Cluster Code Table';
DISP_ALERT2(mess_text,mess_name);
end if;
go_item(hold_item);
go_record(hold_record);
<<end_of_trigger>>
null;
END;
I put in a DISP_ALERT message right after the BEGIN statement but it never displayed so I don't think this trigger is firing. I also put a similar DISP_ALERT message in my ON-ERROR trigger and that does display, so I know it is going right to my ON-ERROR trigger. Does anyone have any ideas what might be triggering the ON-ERROR?
Thanks,
-NTWORA-06502 is a numeric or value error string which is raised when an arithmetic, numeric, string, conversion, or constraint error occurrs. For example, this error occurs if an attempt is made to assign the value NULL to a variable declared NOT NULL, or if an attempt is made to assign an integer larger than 99 to a variable declared NUMBER(2).
I would suggest you to look at the columns definitions in the table and the form fields/variables data types and lengths and make sure they are same as the backend table columns.
Also, you don't need to put NULL; after each IF ELSE conditions if you have any other statements.
I would also suggest that you handle any errors in either exception handler of the block or in the ON-ERROR triggers.
Try this:
DECLARE
hold_item varchar2(30) := :system.cursor_item;
hold_record varchar2(10) := :system.cursor_record;
mess_name varchar2(80);
mess_text varchar2(80);
BEGIN
GO_BLOCK('career_cluster');
IF :system.block_status = 'CHANGED' THEN
commit_form;
IF FORM_SUCCESS THEN
mess_name := 'Transaction Complete';
mess_text := 'Career Cluster(s) committed to the database';
DISP_ALERT2(mess_text,mess_name);
END IF;
ELSE
mess_name := 'No changes to commit';
mess_text := 'No changes have been made to the Career Cluster Code Table';
DISP_ALERT2(mess_text,mess_name);
END IF;
GO_RECORD(hold_record);
GO_ITEM(hold_item);
EXCEPTION
WHEN OTHERS THEN MESSAGE(TO_CHAR(ERROR_CODE)||'-'||ERROR_TEXT);
RAISE FORM_TRIGGER_FAILURE;
END; -
Hi all,
How to use TABLE_FROM_BLOCK in forms 10g. its working in forms 6i .
the same form is not working in 10g . i got this error.
frm-40933 Cannot populate table because datatype is incorrect.
pls help me
Regards
Gopinath MAccording to Metalink's Developer 2.1 Release Notes (Doc ID #90090.1), section 4.2.1, "TABLE_FROM_BLOCK Built-In":
DO NOT use the TABLE_FROM_BLOCK built-in described in the
documentation. It is reserved for internal use only. No support
for this built-in will be provided under any circumstances.
If you used this built-in, you will need to recode your from(s) for 10g.
Message was edited by:
Mark Roberts -
HOST command not working in forms 10g
Hi,
I have migrated forms 6i to forms 10g, and having a requirement to open sqlplus prompt using a form menu. I have used the below command: -
"host('sqlplus '||user_name||'/'||pass||'@'||sid, no_screen);"
But I am not able to get the sqlplus window, and the main form is still in process for long time, till i bounce the server.
The forms are deployed on Oracle Applications Server 10g and i want to run it on server side.
Please help me with the problem.
Thanks,
AnkitThe deployment architecture is different between forms 10g and forms 6i.
In Forms 6i HOST built-in command will run on the client machine since you are running as client/server, but in WebForms (Forms10g) the HOST built-in command will run on the middle tier which is your application server machine.
In order to run hosts commands in WebForms you need to use webutil and use CLIENT_HOST in the webutil.
check the [Forms 10g R2 Demo|http://download.oracle.com/otndocs/demos/Forms_Demos_10gr2.zip] for sample codes of webutil.
You are using NO_SCREEN in your example, this will hide the window.
Tony
Edited by: Tony Garabedian on Nov 26, 2009 2:43 PM -
WHEN-NEW-ITEM-INSTANCE TRIGGER NOT FIRING IN FORM PERSONLIZATION
We are upgrading to R12, when-new-item-instance trigger written for radio group not firing. using USO-821 Order Administrator Responsibility the function order capture.After clicking on actions push button
opening Copy Quote for this Form Personalization written.
For Radio Group Copy-Group when-new-item-instance trigger written but this trigger not firing,but In 11i Instance its Firing.
trigger-event: when-new-item-instance
Trigger-object:copy_group
condition:when copy_group='ALL'
Action: showing message.
The same when-new-instance trigger written in form item level and trigger execution hierarchy properties 'OVERRIDE'.
Just I am thinking this overriding by Item level trigger of form.
Please kindly help me quickly .What I need to do?
How can I make trigger to Fire?
Please kindly give solution.....Its very urgent Requirement.pls help me.
Regards,
BasavarajPlease kindly help me quickly .What I need to do?
> Please kindly give solution.....Its very urgent Requirement.pls help me.
Kindly log a SR for urgent issues.
Thanks,
Hussein -
WHEN-NEW-ITEM-INSTANCE TRIGGER NOT FIRING IN FORM PERSONLIZATION(R12 UPGRAD
We are upgrading to R12, when-new-item-instance trigger written for radio group not firing. using USO-821 Order Administrator Responsibility the function order capture.After clicking on actions push button
opening Copy Quote for this Form Personalization written.
For Radio Group Copy-Group when-new-item-instance trigger written but this trigger not firing,but In 11i Instance its Firing.
trigger-event: when-new-item-instance
Trigger-object:copy_group
condition:when copy_group='ALL'
Action: showing message.
The same when-new-instance trigger written in form item level and trigger execution hierarchy properties 'OVERRIDE'.
Just I am thinking this overriding by Item level trigger of form.
Please kindly help me quickly .What I need to do?
How can I make trigger to Fire?
Please kindly give solution.....Its very urgent Requirement.pls help me.
Regards,
BasavarajPlease kindly help me quickly .What I need to do?
> Please kindly give solution.....Its very urgent Requirement.pls help me.
Kindly log a SR for urgent issues.
Thanks,
Hussein -
RP2RRO.RP2RRO_RUN_PRODUCT not working in forms 10G
Hi,
Recently I convert my small application from forms 6i to forms 10g, All forms are working fine but all reports which I call through menu are not running, Whe I checked the code I found run_product is replaced by RP2RRO_RUN_PRODUCT, the code is like this
declare
complist paramlist;
begin
complist:=get_parameter_list('tmp');
if not id_null(complist) then
destroy_parameter_list('tmp');
end if;
complist:=create_parameter_list('tmp');
add_parameter(complist,'P_COMPANY_NAME',
text_parameter,:global.p_company_name);
RP2RRO.RP2RRO_RUN_PRODUCT(reports,'LDN_MCWISEVehicleDetail',asynchronous,runtime,
filesystem,complist,null);
end;
When I click the menu , nothing happened , my question is How i can my reports work
Regards,
Ahmadhttp://10.33.67.202:8889/reports/rwservlet?server=detasad&report=Veh_Summary.rdf&desformat=pdf&destype=file&userid=gsav/pgsav@macc¶m=nodestype=file generates the report to a file and therefore only says "Run Successfully" after it finished. It you want to see the output directly in the browser, use destype=cache
-
DB-link is not connected from Forms 10g
Hi,
I have created the db-link(visdev) from mytest schema to APPS schema -- created successfully
->Login to mytest schema and ran the query: select * from all_objects@dblink -- Return values.
-> I have used the same dblink with below code from Forms 10g (Datablock - Pre-insert trigger)
cursor_handle := dbms_sql.open_cursor;
dbms_sql.parse(cursor_handle, 'select decode(object_type,''TABLE'',''T'',''VIEW'',''V'',null) col1 from all_objects'||'@'||db-link, 1);
dbms_sql.define_column(cursor_handle,1,col1,30);
execute_feedback := dbms_sql.execute (cursor_handle);
execute_feedback := dbms_sql.fetch_rows(cursor_handle);
dbms_sql.column_value(cursor_handle,1,col1);
Its throws error in Pre-insert trigger : select decode(object_type,'TABLE','T','VIEW','V',null) col1 from all_objects@db-link ---- Not return values -- error out
I found this error using log message.
Can you please help us... its very critical for us.
Edited by: user775668 on Jun 17, 2011 5:46 AM
Edited by: user775668 on Jun 17, 2011 5:46 AMIn terms of trying to debug this why don't you login to your schema and create a view:
create view testview as select * from all_objects@dblink
and deal with that instead?
(You would need to grant permissions to that view.)
I mean as a way to keep the complex dbms_sql out of the loop and look
more to permissions and schema issues. In the long term the view hard codes the structure and is
not a good solution if the structure changes. I just mean as a test.
BTW you know there is an all_objects already? Didn't know if you meant that literally or not.
You could not use that name. -
SPECIAL1 user defined Trigger not firing in Forms
Hi All forms Gurus,
I have a need of creating a menu under tools in forms and call another from from this new menu option.
I have done the below:
on my block I have written a PRE-BLOCK Trigger with the below code:
app_special.instantiate('SPECIAL1', 'Product Details');
app_special.ENABLE('SPECIAL1',PROPERTY_ON);
this is creating the menu option successfully on the forms at run time under TOOLS menu.
Next I have :
FND_FUNCTION.EXECUTE(FUNCTION_NAME => 'XXTEST'
,OTHER_PARAMS => ' P_PROD_CODE = ' || ''''|| :HOLDS_BLK.PROD_CODE
and this is not getting executed when I click on the "Product Details" new menu entry which is create above.
I even tried just putting
fnd_message.debug('from SPECIAL1'); to check if the SPECIAL1 Trigger is firing, removing the above FND_FUNTION.EXECUTE.
and I noticed that the SPECIAL! Trigger is not firing at all.
I would really appreciate if you can help me out in fixing this and making the SPECIAL1 trigger fire.
Thanks and Regards
RohitHi Rohit,
Welcome to OTN.
Since this is Apps issue, you might want to post it in the [E-Business Suites forum|http://forums.oracle.com/forums/category.jspa?categoryID=3].
-Arun -
Jpeg images not displayed in forms 10G
We have images (of different formats) stored in our Oracle 9i database. When we retrieve the images through a form, they display just fine using Forms 6i (client server) but the jpeg images (file extension .jpg originally) do not always display in our Forms 10G front end. What is most disconcerting is that the first image we display does display in the form, but trying to display multiple images at once does not work. The subsequent images display only as a dot in the middle of the space. Note that we also display thumbnails in the same form and this works. And if we retrieve the image from the database and "send" it to a third party product such as Image Pro or MS Photo Editor, it also displays fine. Any suggestions?
Hi,
can you re-create teh images. I remember having similar issues once, which then went away after I recreated the images. If you don't have other images soures than the gif, convert them from gif to jpeg and back. At least it is worth a try.
If you open the icon jar file with winzip, does it show a path with the three icons? Sometimes when creating the jar, it happens that a path gets added with the icons.
Frank -
DB link is not working in forms 10g
Hi,
I have to different machines with DB Oracle 10g and Oracle 9i. I have created dblink to access data from Oracle 9i from Oracle 10g. This DB link is working perfectly from sql. but when i am using this dblink in form 10g. it is giving following errors.
Here it is compiling post-query trigger.
my query is select count(*) into var1 from CL_PASS_MASTER@ICLC2CISF .
Compiling POST-QUERY trigger on form...
Compilation error on POST-QUERY trigger on form:
PL/SQL ERROR 0 at line 0, column 0
ORA-04052: error occurred when looking up remote object [email protected]
ORA-00604: error occurred at recursive SQL level 1
ORA-06544: PL/SQL: internal error, arguments: [55916], [], [], [], [], [], [], []
ORA-06553: PLS-801: internal error [55916]
ORA-02063: preceding 2 lines from ICLC2CISF
the same query is working from sql prompt.
Please help me..+"How about if you create a synonym in the back-end using db link?+
+create synonym syn_CL_PASS_MASTER for CL_PASS_MASTER@ICLC2CISF;+
+and use the synonym in post-query. "+
+ 1
Francois -
"connect_by_isleaf" is not working in Forms 10g
Hi gurus,
I have a tree control in my application,I use a query to rollup some amounts
according to certain criteria,I used the pseudo-column 'connect_by_isleaf' which is a wonderful new feature in 10g and it worked fine in SQLPlus,when I used it in Forms 10g ,it didn't recognise it and gave an error while compiling : identifier "CONNECT_BY_ISLEAF" must be declared.
Why? what is wrong?
ThanksThanks Rajesh,
I have made a work around,I created a function on the database (with 'connect_by_isleaf' in it) and called it from Forms 10g,
Bingo....worked fine.
Hope this helps others.
Mohammad
Maybe you are looking for
-
HEADER AND FOOTER IN HTML REGION
I want to create a repeatable HTML Header (not an ApEx region Header) for a HTML region as described in http://www.html4newbies.com/header_footer_tip.php I want to include the header at different points in my HTML region It says that you need to save
-
HT4847 How to use iCloud as virtual storage
Sorry for my ignorance but does anyone know how to use iCloud as virtual storage for music n photos that I don't want on almost full iPhone? I have an iPad too and don't mind if these items are on there. Thx!
-
The padlock or key Icon that indicates a secure session no longer appears when I sign into a site such as my bank or any site requiring security for financial or other transaction. Since this security is no longer available in the Firefox browser, I
-
Adobe Media Encoder CS4 doesnt allow me to set the bitrate?
I have a Video file that I need to encode to several f4v files at different bit-rates, but it seems I cannot change the bit-rate in Adobe Media Encoder CS4? I used the previous version to encode, but I cannot encode to f4v, only flv. Is there somethi
-
How to test file to idoc scenario?
Sender side: flat file Receiver side : IDOC Using file content conversions for sender file. my question when flat file is picked up sent to xi and idoc. where do I check data received. Im using creamas.creamas03 idoc. What is ALE configuration for ID