Stop region (report) refreshing when button pressed
Hi
I have created a report region, using the following select:
select * from TABLE(CAST(JCMS_MERGE_BATCHES_PKG.show_merged_batches_fn('M29||0') AS jcms_rep_batch_type))Is there a way to stop this report from submitting when a button on my page is pressed?
The reason for this requirement, is that my report contains checkboxes for each row returned. The default for the checkbox is CHECKED when the report is refreshed. However, I want users to uncheck certain rows in the report, click a button and then have some processing performed on ONLY those checked rows. My page is almost working, but because the report is refreshing, after I have performed my processing, the report is coming back with all rows selected again.
Many thanks,
Paul
I think your requirement is similar to this one:
http://htmldb.oracle.com/pls/otn/f?p=31517:219
However, that is not trivial.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------------------
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 -
Is there anyway to stop the auto-refresh when using HsGetValue?
Hi there
I am just wondering if there is a way to stop the automatic refresh when opening a workbook that has HsGetValue functions? The issue I am having is that when you create a report in Smart View using the HsGetValue function, save it down, disconnect from Smart View then open it up again, it automatically tries to refresh the data. If you do not type your login, it just changes to #NEED REFRESH and you cant see the data anymore. This only happens when you have Smart View installed, if you are on a vanilla computer you can see the numbers no problems.
The reason we dont want it to refresh is that we want to be able to view data at a point in time, instead of always refreshing to the latest data.
I know that I can stop the refresh by changing Excel to Manual Calculation, instead of auto-calculation on formulas, but this isnt a viable solution as users arent used to manually pressing the Calculate button in Excel for their non Hyperion work.
We are using 11.1.1.3 Planning and Essbase.
Thanks!See this post Smart view first refresh
Aside from turning auto-calculation off, you would need to copy the cells and paste them as values to get a static worksheet. This will eliminate any future refreshes. -
FRM-40735: when-button-pressed trigger raised unhandled exception ORA-06508
Hi,
I built a report using Reports Builder, and a form that calls this report. When I try to run the rdf file (report), using [b]rp2rro.rp2rro_run_product I get the error:
FRM-40735: when-button-pressed trigger raised unhandled exception ORA-06508.
How fix it?
[]'s
SandroHi Mark,
The debbuger stopped at line that was causing the error (rp2rro.rp2rro_run_product(REPORTS, 'myReport', SYNCHRONOUS, RUNTIME, FILESYSTEM,v_paramList , NULL);
The data type passed in arguments and its lenght that's ok... I don't know what I should do...
Sandro -
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. -
Ticker bean and WHEN-BUTTON-PRESSED trigger
Hi,
In Forms 6i, I use the Ticker bean. The problem with it, is that it appears on all canevas of my form.
But if the bean is "stopped" (i.e. the clock is stopped), it works fine and it does not appear on the next canevas I show.
However, I must have a button for the "stop" and another one that shows my next canevas. If I put the two code lines in the same WHEN-BUTTON-PRESSED trigger of a unique button, the ticker bean is still visible in the new canevas.
Any help is appreciated.
Regards,
Olivier.Olivier,
I think I remember having heard of this before. The reason for this could be that the ticker bean uses AWT classes, which are heavyweight. All you can try is to call
synchronize;
between starting and stopping the ticker if using one button only. If this doesn't help, then I don't know of any other solution that could work.
Frank -
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 -
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 -
Error -- No Such Trigger('when-button-pressed')
Hi,
I am getting the error ""No Such Trigger('when-button-pressed')"",
when I am executing the code EXECUTE_TRIGGER( 'WHEN-BUTTON-PRESSED' );
on some item(Key-Next-Item), although WHEN-BUTTON-PRESSED trigger exists.
What could be the problem ?. It worked till yesterday, giving error from today, I havent
changed any thing.
Thanks in Advance
DevenderSteve's tip is the only good solution for this case.
The problem in your case for example is:
Let's say you have a block-trigger, which fires after your execute-trigger.
Now a colleague of you, which don't know your code, create a WHEN-BUTTON-PRESSED on an item, then the new code is started and not the block-trigger-code.
So, don't ever do this. Write your code in a package-function or -procedure and call it from the trigger. So you can re-user the functionality
Gerd -
Hye craig, hamid, christian and all ...........
i have a user access interface which i create where there are two fields username and password and a button,
i have also created a table USERS for users which have username and password fields ..... On useraccess interface i coded on WHEN BUTTON PRESSED like this
declare
go_block('users');
execute_query;
declare
begin
if :useraccess.username=:users.username and
:useraccess.password=:users.password then
go_block('MAINPAGE');
else
go_block('USERACCESS');
MESSAGE('SORRY WRONG PASSWORD OR NOT A REGISTERED USER');
MESSAGE('SORRY WRONG PASSWORD OR NOT A REGISTERED USER');
end if;
end;
This code works for a single user in USERS table but for multiple users there has to be some looping system
which matches the USERACCESS and USERS tables fields thoroughly ....Hi Majid,
I can suggest you a workaround for this. raise a ON-LOGON trigger and you can use the LOGON_SCREEN builtin to flash the logon screen at runtime. And then try capturing the username and password.
DECLARE
connected BOOLEAN := FALSE;
tries NUMBER := 3;
un VARCHAR2(30);
pw VARCHAR2(30);
cs VARCHAR2(30);
BEGIN
SET_APPLICATION_PROPERTY(CURSOR_STYLE, 'DEFAULT');
WHILE connected = FALSE and tries > 0
LOOP
LOGON_SCREEN;
un := GET_APPLICATION_PROPERTY( USERNAME );
pw := GET_APPLICATION_PROPERTY( PASSWORD );
cs := GET_APPLICATION_PROPERTY( CONNECT_STRING );
LOGON( un, pw || '@' || cs, FALSE );
IF FORM_SUCCESS
THEN
connected := TRUE ;
END IF;
tries := tries - 1;
END LOOP;
IF NOT CONNECTED THEN
MESSAGE('Too many tries!');
RAISE FORM_TRIGGER_FAILURE ;
END IF;
END ; a sample piece of coding to help you out.
Regards,
Manoj Chakravarthy -
Calling a function in WHEN-BUTTON-PRESSED
Hello,
i have in when-button-pressed a line containing
select pachet_salarizare.ani_vechime(data_min, to_number(to_char(sysdate,'YYYY')), to_number(to_char(sysdate,'MM'))) into ani_vechime from dual;so i call a function which is in pachet_salarizare package (package created in program units, in Forms).
when compiling, i get: function 'PACHET_SALARIZARE.ANI_VECHIME' mai not be user in SQL.
how can i deal with this? i need the result of that function in a variabie, ani_vechime.
Thanks!Uh, thank you. i thought it's not possible what i wanted..
but strange why cannot be called function in select statements
Regards, -
Requerying in WHEN-BUTTON-PRESSED
Hi,
I have two forms. I have a button that opens up modal form 2 from form 1 and passes some parameters. I allow the user to update something in form 2 (which has an effect on form 1). When user exits form 2, I want to requery the block in form 1 so that any updates effected in form 2 can be visible.
I tried putting in a do_key('execute_query') in the WHEN-BUTTON-PRESSED trigger in form 1 after the call to open form 2. This had no effect (probably because it didn't get called when I expected it to). The only way I am able to get the new data (after an update in form 2) is to manually issue a requery in form 1.
Any suggestions would be deeply appreciated!
Thanks,
NiranjanHi Niranjan
Put the Execute_query in the when-new-form-instance of the Called form.
With Regards
Harish
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Niranjan Ramakrishnan:
Hi,
I have two forms. I have a button that opens up modal form 2 from form 1 and passes some parameters. I allow the user to update something in form 2 (which has an effect on form 1). When user exits form 2, I want to requery the block in form 1 so that any updates effected in form 2 can be visible.
I tried putting in a do_key('execute_query') in the WHEN-BUTTON-PRESSED trigger in form 1 after the call to open form 2. This had no effect (probably because it didn't get called when I expected it to). The only way I am able to get the new data (after an update in form 2) is to manually issue a requery in form 1.
Any suggestions would be deeply appreciated!
Thanks,
Niranjan<HR></BLOCKQUOTE>
null -
When-button-pressed---adding a "select statement"
Hi friends,
i have a select statement:
select count(*) from employees
where emp_no=:control.emp_no;
i would like that when i press a button, count for instance, i get the number of employees.
I need the codes used in oracle in the when-button-pressed.
Thanks.DECLARE
RESULT NUMBER :=0;
CURSOR CUR
select count(*) from employees
where emp_no=:control.emp_no;
BEGIN
OPEN CUR;
FETCH CUR INTO RESULT;
:ITEM_NAME := RESULT;
CLOSE CUR
END;
I hope this will help
This will be shown in item, if you want to show a message then use
MESSAGE(RESULT);
Regards
Abbas
Edited by: Abbas on Jul 19, 2011 12:37 PM -
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.
Maybe you are looking for
-
I know,.... I'm still using FCP 7, but since there are no forums for this aaplication anymore, I figured I ask it here. I want to select multiple clips on the timeline and make them all stereo pair. I pressed "Option L", but that does not work.
-
My iphone 3G isn't being detected by my laptop nor by itunes
my dell laptop isn't detecting my iphone 3G nor is itunes although when i plug it to the charger it charges normally i have tried many things and nothing has worked what is the solution ???
-
I am woking on small project, on which i am to convert data from SQL Server to Oracle. I am using Oracle Data Integrator. Can any body tell me the steps for it to do ? what i have done uptil now is that i have created master and work repsitories, now
-
Why does my approved list item continue to switch to pending?
So I've created a basic workflow in SP Designer 2010. When the workflow is completed, the "Approval Status" changes to "Approved" as it should. However, the "Approval Status" then changes back to "Pending". I can't figure out what is causing this une
-
Datasocket localhost faster than network name
When I set my datasocket urls to dstp://localhost/var instead of dstp://machine_name/var the various connections are made MUCH faster. When using localhost, all variables seem to connect instantly, while if I use machine_name instead, it seems to mak