Check on button press
I have a report with a checkbox column. It starts out all unchecked. I want to provide the user with a button that will check all the checkboxes. How can I do that?
Andrea in TN
Hello,
Please check if the following, built-in function, can help you:
$f_CheckFirstColumn(pThis)
(http://apex.oracle.com/pls/otn/f?p=38704:2:::NO::P2_ID1:57)
Regards,
Arie.
Similar Messages
-
Calling a report from forms - FRM-40735 when-button-pressed raised unhandle
Hi,
I created a form to generate a pdf report.
its not going too well, so i need some help.
my form only has one button , when pressed I want it to generate a report in pdf format.
i created a when-button-pressed trigger and the following code is below:
I also create a web service proxy jar file,
the jar file is in the FORMS_BUILDER_CLASSPATH, and the jar file is imported from forms builder without any issues.
As of now I am hard coding everything in the code below to see if it works.
The error I am getting FRM-40735 when-button-pressed raised unhandled exception ORA-105100 i dont know why ?
This error is occurring at this line of code, please help, this is my first time doing something like this.
obj := publicreportserviceclient.new(); DECLARE
param_name varchar2(200);
un varchar2(200);
pw varchar2(200);
out_file varchar2(200);
obj ORA_JAVA.JOBJECT;
BEGIN
obj := publicreportserviceclient.new();
param_name := 'EMP';
un := 'Administrator';
pw := 'Oracle123';
out_file := 'D:\DevSuiteHome_1\j2ee\home\default-web-app'||'output';
publicreportserviceclient.callRunReport(obj,'/~administrator/Learn/Test1/Test1.xdo','EMP','141414',un,
pw,'pdf','New_Template',out_file);
web.show_document('http://jmenge-de.de.oracle.com:8889/j2ee/' || 'output');
exception
--check for ORA-105101
when ORA_JAVA.EXCEPTION_THROWN then
message('Java Exception : '
|| Exception_.toString(ORA_JAVA.LAST_EXCEPTION));
ORA_JAVA.CLEAR_EXCEPTION;
return;
--check for ORA-105100
when ORA_JAVA.JAVA_ERROR then
message('Unable to call out to Java, ' ||ORA_JAVA.LAST_ERROR);
return;
END;This is my java function
public void callRunReport (String reportPath, String paramName, String paramValue, String
username, String password, String format, String template, String outFile) {
try {
bip_webservice.proxy.PublicReportServiceClient myPort = new bip_webservice.proxy.PublicReportServiceClient();
// Calling runReport
ReportRequest repRequest = new ReportRequest();
repRequest.setReportAbsolutePath(reportPath);
repRequest.setAttributeTemplate(template);
repRequest.setAttributeFormat(format);
repRequest.setAttributeLocale("en-US");
repRequest.setSizeOfDataChunkDownload(-1);
ParamNameValue[] paramNameValue = new ParamNameValue[1];
paramNameValue[0] = new ParamNameValue();
paramNameValue[0].setName(paramName);
String[] values = new String[1];
values[0] = paramValue;
paramNameValue[0].setValues(values);
repRequest.setParameterNameValues(paramNameValue);
ReportResponse repResponse = new ReportResponse();
repResponse = myPort.runReport(repRequest,username,password);
byte[] baReport = repResponse.getReportBytes();
FileOutputStream fio = new FileOutputStream(outFile);
fio.write(baReport);
fio.close();
} catch (Exception ex) {
ex.printStackTrace();
}Thanks - please helpIf there is a way to make it work with Bi publisher, Please let me know.
I need to something to make it work with BI publisher.
thanks,
Edited by: Rooney on May 27, 2010 1:27 PM -
How can I call my chart in Forms6i on When Button Press Trigger?
Hi Friends,
I have make a chart in Graphic Builder 6i and save on path C:\graph\test.ogd
Now I want to run this Chart from Form6i on When Button Press trigger.
I have call my report in forms using this command on When Button Press trigger.
Run_Product(reports,'C:\Cheema\Qdir_store\reports\pmms\sec_backlog',asynchronous,runtime,filesystem,TO_CHAR(NULL));
So tell me How can I call my chart in Forms6i?
Please reply me on urgent.
Thanks,
ShahzadJust to recall after a long break of couple of years..... Pls check out if not wrong.
First of all you need to embeed the chart object on your layout window and make it visible = FALSE. This is a design time work. In the button press event, show the chart object by setting the visible property = TRUE.
Note, i could not paste u the sample code as i don't have forms installation on my PC. The above states is a logic you can apply. -
Problem while hide a block on selection screen on button press
Hi,
I have added two buttons on the application toolbar of the selection screen. I have input fields under two blocks on the selection-screen. Initially the second block is hidden. If I press the button 1 the second block should be made visible.
For this to happen, I captured the button 1 click event using the following statement.
IF sscrfields-ucomm = 'FC01'.
Inside the if ... endif, I looped at the screen and made the second block visible. It was working fine.
loop at screen.
if screen-group4 = '013'.
screen-invisible = 1.
screen-active = 0.
endif.
endloop.
Later the second button was added. Now when i run the report for the first time, if button 2 is clicked the hidden block appears on the selection screen even though i have not added any code for it.
Just to check, i commented the logic to display the hidden block on button 1 click event. Even without any code the first time i press any of the two buttons added on the application toolbar the hidden block is displayed.
I saved a variant for the report.
During execution of the report, if i select any variant then the hidden block is displayed.
Can anyone please tell me how to fix this problem.
Regards,
T2.Hi All,
The problem is solved.
Everyone was confusing between the pushbutton on the selectio-screen and on apllication toolbar
(where you have the execute icon).
Please find the code below. Thanks for you time and help. I appreciate it.
REPORT ztest.
INCLUDE <icon>.
* TABLES *
TABLES: t001, " Company Codes
lfa1, " Vendor Master (General Section)
sscrfields. " Fields on selection screens
* To capture button press event.
DATA: gv_button_press TYPE c.
* Menu Painter: Program interface for dynamic texts
DATA: gs_dyntxt TYPE smp_dyntxt.
* SELECTION SCREEN *
SELECTION-SCREEN FUNCTION KEY 1.
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-s01.
* Company Code.
SELECTION-SCREEN BEGIN OF BLOCK ccode WITH FRAME TITLE text-s02.
SELECT-OPTIONS: s_bukrs FOR t001-bukrs OBLIGATORY MEMORY ID buk.
SELECTION-SCREEN END OF BLOCK ccode.
SELECTION-SCREEN END OF BLOCK blk1.
SELECTION-SCREEN BEGIN OF BLOCK dsel WITH FRAME TITLE text-s04.
* Vendor Master.
SELECTION-SCREEN BEGIN OF BLOCK vend WITH FRAME TITLE text-s07.
SELECT-OPTIONS: s_konzs FOR lfa1-konzs MODIF ID aw1.
SELECT-OPTIONS: s_txcd1 FOR lfa1-stcd1 MODIF ID aw1.
SELECT-OPTIONS: s_txcd2 FOR lfa1-stcd2 MODIF ID aw1.
SELECTION-SCREEN END OF BLOCK vend.
SELECTION-SCREEN END OF BLOCK dsel.
* INITIALIZATION *
INITIALIZATION.
* Populate the Application toolbar button attributes.
PERFORM populate_app_toolbar_buttons.
* Hide the dynamic screen intially.
PERFORM hide_screenfields.
* AT SELECTION SCREEN *
AT SELECTION-SCREEN.
* Capture the button press event.
PERFORM capture_button_press.
* AT SELECTION-SCREEN OUTPUT. *
AT SELECTION-SCREEN OUTPUT.
* Show/Hide the dynamic selection screen based on button press.
PERFORM adapt_screen.
*& Form populate_app_toolbar_buttons *
* Display Icon on the application toolbar buttons. Also set the *
* function codes for these buttons. *
FORM populate_app_toolbar_buttons.
CLEAR gs_dyntxt.
WRITE icon_fencing TO gs_dyntxt-icon_id AS ICON.
MOVE text-b01 TO gs_dyntxt-quickinfo. " Dynamic Selections
MOVE gs_dyntxt TO sscrfields-functxt_01.
ENDFORM. " populate_app_toolbar_buttons
*& Form hide_screenfields *
* Initially hide the Dynamic selection screen. *
FORM hide_screenfields.
LOOP AT SCREEN.
IF screen-group1 = 'AW1'.
screen-invisible = '1'.
screen-active = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDFORM. " hide_screenfields
*& Form capture_button_press *
* Set the flag based on button press event. Appication bar button *
* tcode is available only at 'At Selection-screen' event. *
* Use the captured data at 'At Selection-screen Output' event. *
* Screen adjustments is possible only under this event. *
FORM capture_button_press.
IF sscrfields-ucomm = 'FC01'.
IF gv_button_press IS INITIAL.
gv_button_press = 'X'.
ELSEIF gv_button_press EQ 'X'.
CLEAR gv_button_press.
ENDIF.
ENDIF.
ENDFORM. " capture_button_press
*& Form adapt_screen *
* Show/Hide the dynamic selection screen based on button press *
* captured at 'At selection-screen' event. *
FORM adapt_screen.
* If button press flag is initial hide the dynamic selection screen.
IF gv_button_press IS INITIAL.
LOOP AT SCREEN.
IF screen-group1 = 'AW1'.
screen-invisible = '1'.
screen-active = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
* Elseif button press flag is 'X' show the dynamic selection screen.
ELSEIF gv_button_press EQ 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'AW1'.
screen-invisible = '0'.
screen-active = '1'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
ENDFORM. " adapt_screen
Regards,
T2
Message was edited by: Titu Joseph -
Overide on-error with when-new-button-pressed
Hi,
I have a big problem and not much time to solve it so posting on here hoping someone will know the answer. I have put an exit button on my form which calls a method that uses GO_FORM to return to a menu page.
I don't want to close oracle forms down completely so I can't use the exit_form command. However I want the close button to return the user to the menu without validating or saving the current form.
My problem is that I catch errors in a date field using an on-error trigger and this always fires before the when-button-pressed meaning my user gets an error before leaving the form.
How do I ignore the on-error trigger when my close button is pressed and not when exiting the field which contains the date.
I have tried setting the execution hierarchy to after on the on-error and override on the when-button-pressed but this seems to have no effect.
Thanks for any help
DanOne solution would be to add a menu for the form. For some reason menu items and toolbar buttons don't cause the loss of focus to occur. If you used a menu to fire a trigger to close the form then you could set a flag that could be checked in your on-error trigger. If the flag was true(or whatever) then you don't perform your validation.
I'm usually angry that the toolbars and menus don't cause those triggers to fire, but I've had a couple cases similar to this where it actually works out for the better. Not sure if having a menu for, what sounds to me like, a dialog will look the best, but it should work. -
FRM-40732 ORA-06502 in when button pressed triger
I Have a the code below in when button pressed
If :block1.text_item is not null Then
:control.title := :block1.text_item
end if;
go_block('block2);
Here the when button-button-pressed unhandled exception Frm-40735 Ora-06502 appears. I know this may be because of datatype problem, but how would I know the culprit item. The form allow the user to save the data. Am using forms 6i 10G database.Can check the maximum length of :control.title
It seems that it can handle the amount of data you are assigning to it -
Frm-40735 when-button-pressed trigger raised unhandled exception ora-03114
hi everybody,
i am using oracle 10g release 2 in my test server and 10g release 1 in production server with forms in 10g running through the oracle 10g application server with no problem with our production server.
but the same form when i try to use through the same application server for my
with my test database server which is oracle 10g release 2 is giving me
frm exceptions and disconnecting the session.
like i get frm-40735 when-button-pressed trigger raised unhandled exception
ora-03114. then frm-40655 sql error forced rollback;clear form and reenter transaction. then when i try to exit it shows ora-24324 service handle not initialized.
The same thing when i try with my production server i dont get any exception handle error or forced rollback error.
i am not facing any problem as such to connect to my test database(release 2)
through sql plus client or TOAD OR ENTERPRISE MANAGER THEY ARE ALL FINE. IT IS ONLY WHEN I GO THROUGH THE APPLICATION SERVER TO ACCESS MY FORMS I GET THIS ERROR. BUT MY PRODUCTION IS RUNNING THE SAME WAY WITH NO ERRORS.
any suggestions welcome as i have to bring release 2 in the production next month
thanks and regards
manishORA-03114 not connected to ORACLE
Cause: A call to Oracle was attempted when no connection was established. Usually this happens because a user-written program has not logged on. It may happen if communication trouble causes a disconnection. In addition, this message could occur when ALTER SYSTEM KILL SESSION or ALTER SYSTEM DISCONNECT SESSION were issued with the IMMEDIATE qualifier because, in those cases, the client's connection to the database is terminated without waiting for the client to issue a request.
Action: Try again. If the message recurs and the program is user written, check the program.
zaibi. -
FRM-40735:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-06502
Hi,
I am trying to run a form in which I have a button which when pressed should display another popup window with few text fields in it. I have a WHEN-BUTTON-PRESSED trigger on that particular button and its raising an exception called
FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-06502.
When I debug the form with breakpoints its displaying the popup window correctly, but if I run it in a browser as soon as click the button it raises the Unhandled exception given above.
Can anyone help with this? Urgent please....
ThanksIt is VERY good to handle your exceptions, specially a certain pre-defined exceptions like NO_DATA_FOUND, TOO_MANY_ROWS, ZERO_DIVIDE etc...
You can also find samples on how to create user-defined exceptions, just search the online forms help (press the question mark in forms builder) for "User-Defined"
But however you handle your exception never ever do
WHEN OTHERS THEN NULL;If you do that you are telling to forms that no matter what kind of error is thrown do nothing, now that's very dangerous.
You might also want to check Oracle's documentation on [url http://www.oracle.com/pls/db102/portal.portal_db?selected=5]Application Development and do a search on "Exception Handling"
Regards,
Tony
Message was edited by:
Tony Garabedian -
FRM-40735:when-button-pressed trigger raised unhandled exception ORA-24247
hi all
i am using form 10g release2 i am having a problem
when i use the following stored procedure in form then i am getting this
error.
FRM-40735:when-button-pressed trigger raised unhandled exception ORA-24247
but the same code working fine when i use in SQLPLUS.
CREATE OR REPLACE PROCEDURE mail_attach (dir1 VARCHAR2, filename VARCHAR2)
AS
l_output utl_file.file_type;
l_file RAW(32767);
l_size NUMBER;
BLOCK NUMBER;
b BOOLEAN;
l_start NUMBER := 1;
TYPE ARRAY IS TABLE OF VARCHAR2(255);
l_data ARRAY := ARRAY([email protected]');
BEGIN
UTL_FILE.FGETATTR(dir1, filename, b, l_size, BLOCK);
l_output := utl_file.fopen('BACKUP', 'code.txt', 'r' );
utl_file.get_raw(l_output, l_file, l_size);
utl_file.fclose( l_output );
FOR i IN l_start .. l_data.COUNT
LOOP
UTL_MAIL.SEND_ATTACH_RAW (
sender => 'Mailer',
recipients => l_data(i),
subject => 'Data for ' || TO_CHAR((SYSDATE-1),'DD-MON-YYYY'),
attachment => l_file,
message => 'Dear User, Please find attached the upload
data for the period mentioned in the subject line.',
att_inline => FALSE,
att_filename => filename);
l_start := l_start + 1;
END LOOP;
END;and this is used in form when-button-pressed trigger.
BEGIN
mail_attach('UTL_PATH','code.txt');
message('FIle send successfully');
message('File send successfully');
END;hi
Mehwish now check the following code and its working fine with me in form..........
declare
dir1 VARCHAR2(200);
--filename VARCHAR2(200):='Logon.jpg';
filename VARCHAR2(200);
l_output utl_file.file_type;
l_file RAW(32767);
l_size NUMBER;
BLOCK NUMBER;
b BOOLEAN;
l_start NUMBER := 1;
TYPE ARRAY IS TABLE OF VARCHAR2(255);
l_data ARRAY := ARRAY('[email protected]');
BEGIN
-- EXECUTE IMMEDIATE 'ALTER SESSION SET smtp_out_server = ''192.168.56.103:25''';-- this is IP address and port of the server
UTL_FILE.FGETATTR(dir1, :filename, b, l_size, BLOCK);
--select directory_path into :filepath from dba_directories where directory_name='BACKUP';
l_output := utl_file.fopen('BACKUP',:filename, 'r' );-- i added :filename as a text item.
utl_file.get_raw(l_output, l_file, l_size);
utl_file.fclose( l_output );
FOR i IN l_start .. l_data.COUNT
LOOP
UTL_MAIL.SEND_ATTACH_RAW (
sender => 'Mailer',
recipients => l_data(i),
subject => 'Data for ' || TO_CHAR((SYSDATE-1),'DD-MON-YYYY'),
attachment => l_file,
message => :f,-- this is message item.
att_inline => FALSE,
att_filename => :filename);--this is attachment file name.
l_start := l_start + 1;
END LOOP;
message('File Send Successfully');
message('File Send Successfully ');
END;hope this helps you.
Attachment and mail are working fine with me, i can send attachment..............
sarah -
FRM-40735 when Button Pressed Trigger Raised Unhandled Exception ORA-03113
Hi all,
We are using oracle 9.2.0.4 on SUSE 10.When user try to insert record second time they are getting the error
FRM-40735 when Button Pressed Trigger Raised Unhandled Exception ORA-03113And we are also getting ORa-0600 [12333]-[253]-[1]-[253]
Please don't tell me that this is an oracle internal error and i have to contact oracle support.
Actaually earlier we were using Oracle 9.2.0.6 (64 bit)on sun soalris 8 9(64 bit) and now after migrating the same to Oracle 9.2.0.4 to RHEL4 (32 bit).
And i have also cross checked on the new server oracle 9.2.0.6 (64 bit) on rhel4 (64 bit).
please suggest me....Please don't tell me that this is an oracle internal error and i have to contact oracle support.WHY? But it's the one and only reason! What do you think, how we can solve internal error? Do we have a special utility to demand from you some logs and by uising that utility analyze your database and solve your problem?
-
FRM-40735 WHEN BUTTON PRESSED trigger raised unhandled exception ORA-29282
Hi All,
while entering data in EAM forcaste workorder in maintenance workbench am getting this error
FRM-40735 WHEN BUTTON PRESSED trigger raised unhandled exception ORA-29282
check google and oracle forums and checked versions of pll and plx (as mentioned in one forum) for the form every thing is fine
i hav also generated tkprof report but did'nt get enough info required
my environment
linux 5.6
R12.1.3
on 11.1.0.7
please do let me know how to attach the print screen and tkprof report
please help
zaviHi There,
Srini:
the form form name is different from one you mentioned in note
ORA-29282 In POST-DELETE Trigger In EAMWOMDF Form [ID 1364328.1]
any how i check the EAM diag option is set to yes,
sorry i cant upload the screenshots and trace file we cant upload any from company
here are few details from form-->help--> about
RDBMS : 11.1.0.7.0
Oracle Applications : 12.1.3
Form Application : Enterprise Asset Management
Form Name : EAMPLNWB
Form Path : /u02/uat/apps/apps_st/appl/eam/12.0.0/forms/US/EAMPLNWB.fmx
Form Version : 12.0.78.12010000.28
Form Last Modified : $Date: 2011/05/17 02:44 $
Forms PL/SQL
APPCORE : 12.0.29.12010000.22
APPDAYPK : 12.0.2.12010000.6
APPFLDR : 12.0.6.12010000.2
APPTREE : 12.0.0
CUSTOM : 12.0.0
EAMMRMDF : 12.0.27.12010000.4
EAMOPMDF : 12.0.13.12010000.1
EAMRSMDF : 12.0.10.12010000.2
EAMWOMDF : 12.0.77.12010000.25
FNDAPLT : 12.0.1
FNDSQF : 12.0.3.12010000.8
GHR : 12.0.46.12010000.14
GLOBE : 12.0.76.12010000.10
GMS : 12.0.51.12010000.8
IGILUTIL2 : 12.0.32
IGILUTIL : 12.0.3
OPM : 12.0.7.12010000.2
PQH_GEN : 12.0.7
PSA : 12.0.17
PSAC : 12.0.5
PSB : 12.0.2
Hi Hussain:
from the note
Please see (Creating Work Orders with Activity gives PL/SQL: numeric or value error: ORA-06512: at "APPS.EAM_WORKORDER_PKG", line 1431 [ID 822365.1]).
it says about
to debug the issue, users has enabled profile EAM: Debug Profile Option needs to be set to Yes at site level.
Every time when WO API is involved, the following files are generated: createwo.log , updatewo.log.
where can i find those logs please specify the location
what i did
as said by hussain i have manually compiled form and libraries assocaited with that form
still waiting for reply from user
got tkprof report
few lines from that tkprof:
declare
m_stmt varchar2(512);
begin
m_stmt:='delete from sdo_geor_ddl__table$$';
EXECUTE IMMEDIATE m_stmt;
EXCEPTION
WHEN OTHERS THEN
NULL;
end;
some select statement
SELECT MAX(STOCK_LOCATOR_CONTROL_CODE), MAX(DEFAULT_DEMAND_CLASS),
MAX(CALENDAR_CODE), MAX(CALENDAR_EXCEPTION_SET_ID),
NVL(MAX(PROJECT_REFERENCE_ENABLED),2), NVL(MAX(PROJECT_CONTROL_LEVEL),1),
NVL(MAX(PM_COST_COLLECTION_ENABLED),2), MAX(PRIMARY_COST_METHOD)
FROM
MTL_PARAMETERS WHERE ORGANIZATION_ID = :B1
insert statement its performing
insert into eam_forecasted_work_orders( pm_forecast_id, group_id,
pm_schedule_id, activity_association_id, cycle_id, seq_id,
scheduled_start_date, scheduled_completion_date, action_type,
wip_entity_id, process_flag, wo_status, created_by, creation_date,
last_update_date, last_updated_by, pm_base_meter_reading ,
ORGANIZATION_ID )
values
( :1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12, :13, sysdate, sysdate,
:14,:15,:16 )
please add a line through your vission
cheers
Zavi -
FRM-40735:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-06503
Hello to all...
I am developing a form on form 6i like a registration form....
Suppose emp_name is a text item....
I need to validate that item such that number ,null and special characters should not be allowed.
I have created a function to check those validations
function v_check(p_item_name varchar2)
return boolean is
begin
for i in 1..length(p_item_name)
loop
if substr(p_item_name,i,'1') in ('1','2','3','$','%','@','!','#') then
return false;
end if;
end loop;
end v_check;
When i click on save_Record button it commit the form i'm checking the emp_name field with this validation by calling the above function.
for save_Record button i have written this code WHEN-BUTTON-PRESSED trigger
declare
a number;
begin
if :iptable.ip_name is null or (not v_check(:iptable.ip_name)) then
set_alert_property('alert',title,'name validation');
set_alert_property('alert',alert_message_text,'null ans spl char are not allowed');
a:=show_alert('alert');
go_item('iptable.ip_name');
raise form_trigger_failure;
end if;
if :system.form_status='CHANGED' then
set_alert_property('alert',title,'Save Box');
set_alert_property('alert',alert_message_text,'Do u want to save');
a:=show_alert('alert');
if a=alert_button1 then
commit_form;
else
raise form_trigger_failure;
end if;
else
set_alert_property('alert',title,'Save Box');
set_alert_property('alert',alert_message_text,'noting to Save Box');
raise form_trigger_failure;
end if;
end;
But i'm gettin this
FRM-40735:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-06503
exception
How can i resolve this error...help me
thanks...
Edited by: maddyd2k on Nov 25, 2010 10:37 AMHi,
Your function v_check actually can return a NULL value wich is not TRUE neither FALSE.
Modify your function like this :
function v_check(p_item_name varchar2)
return boolean is
l_return boolean := true;
begin
for i in 1..length(p_item_name)
loop
if substr(p_item_name,i,'1') in ('1','2','3','$','%','@','!','#') then
l_return := false;
end if;
end loop;
return l_return;
end v_check; -
FRM-40735: WHEN-BUTTON-PRESSED raised unhandled exception INVALID_NUMBER
Hi I get the FRM-40735: WHEN-BUTTON-PRESSED raised unhandled exception INVALID_NUMBER error message for block that has duplicate records.
It works where the block returns no duplicate records.
I'm guessing the error occurs because more than one duplicate records exists. How can I handle this?
Below is the function that I'm using to check for duplicate values:
FUNCTION find_dup (card_in IN varchar2)
RETURN BOOLEAN IS
get_card number;
BEGIN
select card_no into get_card from strike.member where
prop_no = :member.prop_no
and card_no in (select card_no from strike.member
where prop_no = :member.prop_no
having count(*) >1 group by card_no);
RETURN TRUE;
end if;
EXCEPTION
WHEN NO_DATA_FOUND
THEN
RETURN FALSE;
END;
Below is the trigger used where a check is made for duplicate records before proceeding.
WHEN-BUTTON-PRESSED trigger has below:
if find_dup(:member.card_no) then -- guessing it finds more than one card_no value. Help how can I handle this?
go_block('dup_member');
execute_query;
:global.dup_delete := 'Y';
go_item('dup_member.prop_no');
else
message(' No Duplicate Records To View!');
bell;
go_block('member');
hide_view('dup_canvas');
raise form_trigger_failure;
end if;
Edited by: user648524 on Oct 27, 2008 1:33 PMIt looks to me like strike.member.card_no may not actually be a number, and you are trying to select it into get_card.
Try changing your get_card definition to:
get_card strike.member.card_no%type; -
Simulate "When button pressed" condition
I created a button a page (in region position).
When I go to the Edit page for the button, the Optional URL Redirect section says "No target".
I have a After Submit process on the page that has its "When button pressed" condition set to that button.
Now, before firing the process, I would like to popup a Javascript confirm box that checks some value on the page and if it is ok, it submits the page
So, I went to the URL redirect section on the button and changed the target to URL and specified the following URL
javascript:{if (document.getElementById('SOME_ELEMENT').value=='foo' || confirm('Are you sure?')) doSubmit('BUTTON_NAME');}
Now, what change do I need to make to the After Submit process to simulate the 'When Button Pressed' condition? Or would it automatically know that the submit was (indirectly, via the doSubmit) due to the button being pressed and accordingly fire?
Hope I explained this clearly.
ThanksActually, I didnt need to change anything in my After Submit process. I still had it execute with no conditions and a 'When Button Pressed' of BUTTON_NAME and it worked fine! I didnt need to use the REQUEST value anywhere.
Is this just a co-incidence, did I get lucky or is this the way things are supposed to work?
javascript:{if (document.getElementById('SOME_ELEMENT').value=='foo' || confirm('Are you sure?')) doSubmit('BUTTON_NAME');}
Or would it automatically know that the submit
was (indirectly, via the doSubmit) due to the
button being pressed and accordingly fire?The answer to my question above would seem to be "yes". Is that right?
Thanks -
FRM 40735 when button pressed error ORA 105101
I have written a java class and successfully imported it into forms 9i. I added a button and wrote a trigger to access the java class. When I run the form and press the button i get FRM 40735 when button pressed trigger raised unhandled exception ORA 105101. I am running 9ids on windows 2000 and have checked my path and classpath and everything looks fine.
You can obtain this error:
1) Create a java class:
public class getClasspath
public static String getClasspath() {
return(System.getProperty("java.class.path"));
2) Import it in a form
3) Create a button and in when-button-pressed trigger put this code:
loop
message(getClasspath.getClasspath(), no_acknowledge);
end loop;
4)RUN
The error appears after 50944 loops
Ciao
SalvatoreDoes V_Exc actually get a value in it if you look in the debugger - it may well be that if the Memory is getting blown then the exception object cannot be created either so the reference is null.
Anyway this is all somewhat academic is it not, what's the point of this question? If you feel there should be a better message in this particular circumstance then that's fair enough and you should ask Support to log that for you.
Anything else will be addressed by the ability to tune the JVM size and the JVM pooling capabilities we'll be introducing in the 10g timeframe.
Maybe you are looking for
-
I was with sky and getting 28mbps fibre, I decided to get bt infinity 2 and was told I would get these speeds Your broadband speed We estimate your download speed will be between 46.9Mb and 63.8Mb. We estimate your upload speed will be between 12Mb a
-
Mail function in oracle database ?
To activate mail function in oracle database what all procedures or steps needed to be done ? Regards, Amit
-
My printer software will not download. Part of troubleshooting directs me to download all drivers from the website. When I download for Windows Vista and then attempt to click on the file, it provides the following error: OJ8600_1315.exe is not a va
-
Can't find my camera roll (only photo stream) pictures in iCloud. Should there be an icon there? Do I need to install another icon?
-
Unknown Error (502) - Connection Problem
Every time I try to connect iTunes Music Store I get an unknown error (502) which says "make sure your network connection is active and try again". There is no problem with my connection and I have run the diagnostic sequence which confirms this. Any