Open URL Website from WHEN BUTTON PRESSED
I need to open an internal website when a button is pressed on Forms 9i, which is the best and simplist way to go about it, using the available inbuilt forms 9i functions.
Any ideas?????
Hello,
Use the Web.Show_Document() built-in.
Francois
Similar Messages
-
Press ctrl+sht+F9 from when button press trigger.
I am using oracle forms 10g. Is ther a way to press ctrl+sht+F9 automatically when user press button on the form? I have a window programm runiing on the window which has a hot key set as (ctrl+sht+F9 ) when user clicks button it passes certain values from oracle form and start program that is running.
I am able to pass the value to the program only problem is I am unable to press ctrl+sht+F9 automatically.Not sure what you want to do.
I guess you want to base your BLOCK a_agents on the table a_agents and have a where clause {a_id is null}.
Open Forms
Go to Tools-> Data block wizard.
Select table or view
In the next screen select a_agents , select the column names(last_name etc...).
Go through the next steps of the wizard... should be fairly simple.
When you are done with it go to the object navigator.
Right click on the Block(a_agents).
scroll down to the Where clause, enter a_id is null.
I think this should work for you. -
Hi,
I've created a form with 4 data blocks (each of which has its' own canvas, items, and window). On my first canvas, I've created "push buttons" for the user to select which canvas (block/window) they go to next. I've attached WHEN-BUTTON-PRESSED triggers to each of these buttons (which execute a go_block command), however, when I first run the form and click on a button, nothing happens. If I execute a query BEFORE I click on a button, they all work fine and take me to the correct canvas. Could someone please tell me how I can get these buttons to work WITHOUT having to execute a query first? I've looked at all the property palettes, etc. and can't see any attribute that I can set.....any help would be greatly appreciated. Thank you. (I'm using Forms 9.0.4.0.19)Thank you so much for your responses. I had changed the
Fire In Enter-Query Mode to No, but that didn't help, however, changing the trigger from WHEN-BUTTON-PRESSED to WHEN-MOUSE-CLICK did the trick - it works fine.
Can you suggest a good reference for determining which type of trigger you should use?
Thanks again for your responses - I really appreciate it! -
Hello I have a problem with facebook Messenger disappeared from my desktop iPod in the AppStore it says "open" does not respond when I press it. What should I do to download it? But I do not have it in AppStore it says that I have it: (
- Go to Settings>General>Usage>Storage>and under apps select FBM and try to delete it.
Next:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup. See:
iOS: Back up and restore your iOS device with iCloud or iTunes
- Restore to factory settings/new iOS device. -
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 -
Can I make it so Firefox remembers the websites from when I closed the app and automatically open them like in other browsers.
You may need to update your Firefox to get these features. It was introduced somewhat recently.
https://play.google.com/store/apps/details?id=org.mozilla.firefox -
How can I open the windows file directory in "WHEN-BUTTON-PRESSED" trigger
Dear All,
How can I open the windows file directory in “WHEN-BUTTON-PRESSED” trigger?Blessan Joseph,
The solution is dependent on your Forms version and if your applications is traditional Client/Server (CS) (Forms 6i and lower) or web deployed (Forms 6i and higher). For CS, you would use the Get_File_Name() built-in as Faa demonstrated. For Web, you will need to use the WebUtil library function Client_Get_File_Name() as Sarah (OGIR) demonstrated. Both of these functions will return the full path to a file. Note: WebUtil is an external library so it requires you to perform some configuration on your developer client as well as on the Application Server. WebUtil is included with Forms 9i and higher, but you must download it for Forms 6i.
My requirement is user should able to select windows directory for the output.Do you really need to allow the user to write to a file in the Windows directory? This is very dangerous and you should not allow users or programs to write to the Windows directory. Users should only be able to write files to "User" directories (\My Documents\<Directory name>).
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
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-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-29516
Hi,
The users are facing problem on opening the OAF pages on R12 instance.
They face this error when they,
1. Go to System Administrator responsibility.
2. Open page under Workflow > Administrator Workflow > Status Monitor.
3. This error pops up in the lower half of the form page.
FRM-40735: WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-29516
However, this error doesn't happen when people make direct login from homepage. Kindly help and suggest what need to be done.
EBS 12.1.3
DB 11.2.0.2.0
Thanks in advance.*
Holi*Can you find any details about the error in Apache log files and the application.log file?Saw two files, error*.log, and access.log. Please suggest if I need to see some other files, I am new to R12 environment.
error log
n request for destination: application://forms (no island or jgroup).
+[Fri Apr 1 09:05:04 2011] [error] [client 10.182.1.5] [ecid: 1301666704:10.10.241.79:3809:0:89,0] mod_oc4j: Failed to find a failover oc4j process for session request for destination: application://forms (no island or jgroup).+
+[Fri Apr 1 09:05:48 2011] [error] [client 10.182.1.5] [ecid: 1301666748:10.10.241.79:2404:0:299,0] mod_oc4j: Failed to find a failover oc4j process for session request for destination: application://oacore (no island or jgroup).+
+[Fri Apr 1 11:34:36 2011] [error] [client 10.11.219.90] [ecid: 1301675676:10.10.241.79:2404:0:414,0] File does not exist: /p01/app/applmgr/oappsp1/apps/apps_st/comn/java/classes//+
+[Fri Apr 1 11:34:38 2011] [error] [client 10.11.219.90] [ecid: 1301675678:10.10.241.79:8458:0:332,0] File does not exist: /p01/app/applmgr/oappsp1/apps/apps_st/comn/java/classes//+
+[Fri Apr 1 11:40:10 2011] [error] [client 10.11.219.90] [ecid: 1301676010:10.10.241.79:2562:0:467,0] File does not exist: /usr/local/oraapps/tmp/inst/apps/OAPPSP1_c201u334/portal/favicon.ico+
access log
+27.0.0.1 - - [01/Apr/2011:23:36:00 -0500] "HEAD /index.html HTTP/1.1" 200 0 0 "-" "-"+
+127.0.0.1 - - [01/Apr/2011:23:36:20 -0500] "HEAD /index.html HTTP/1.1" 200 0 0 "-" "-"+
+127.0.0.1 - - [01/Apr/2011:23:36:40 -0500] "HEAD /index.html HTTP/1.1" 200 0 0 "-" "-"+
+10.32.16.114 - - [01/Apr/2011:23:36:55 -0500] "POST /forms/lservlet;jsessionid=3218513816b7b7e5c75d2c1e812eca1e21eb118fdac1cbb0d8eb1d618ee6ccbb.e3qKbN0Mc3yNe38Lb34KahuTbx10 HTTP/1.1" 200 2 0 "-" "Mozilla/4.0 (Windows XP 5.1) Java/1.6.0_07"+
+127.0.0.1 - - [01/Apr/2011:23:37:00 -0500] "HEAD /index.html HTTP/1.1" 200 0 0 "-" "-"+127.0.0.1 - - [01/Apr/2011:23:37:20 -0500] "HEAD /index.html HTTP/1.1" 200 0 0 "-" "-" -
FRM-40735:when-button-pressed trigger raised unhandled exception ORA-01841
hello to all
i m getting this error FRM-40735: when-button-pressed trigger raised unhandled exception ORA-01841
and the trigger i had written is like this:-
DECLARE
CURSOR I IS SELECT SANCDATE,REFNO,PRINCIPALAMT,SANCAMT,TOTINSTALMENT,RATERECOVERY,AMTRECOVERED,INSTALMENTRECOVERED,
STARTYEARMM,ENDYEARMM
FROM PRMALOAN
WHERE EMPNO=:PRMALOAN.EMPNO
AND EARNINGDEDUCTION=:PRMALOAN.EARNINGDEDUCTION
AND PAYCALPERIOD IS NULL;
d date:=to_date('200908','yyyymm');
s date;
e date;
BEGIN
go_block('prmaloan2');
OPEN I;
LOOP
FETCH I INTO :PRMALOAN2.SANCDATE,:PRMALOAN2.REFNO,:PRMALOAN2.PRINCIPALAMT,:PRMALOAN2.SANCAMT,:PRMALOAN2.TOTINSTALMENT,
:PRMALOAN2.RATERECOVERY,:PRMALOAN2.AMTRECOVERED,:PRMALOAN2.INSTALMENTRECOVERED,:PRMALOAN2.STARTYEARMM,:PRMALOAN2.ENDYEARMM;
s:=to_date(':prmaloan2.startyearmm','yyyymm');
e:=to_date(':prmaloan2.endyearmm','yyyymm');
if
e is null
then
:prmaloan2.TEXT_ITEM164:=months_between(d,s);
exit when I%notfound;
next_record;
end if;
end loop;
close I;
END;
plz help me to remove this errorthis is the description of my table:-
desc prmaloan
Describing prmaloan....
NAME Null? Type
EMPNO NOT NULL VARCHAR2(8)
EARNINGDEDUCTION NOT NULL VARCHAR2(6)
REFNO NOT NULL VARCHAR2(15)
SANCDATE NOT NULL DATE
PRINCIPALAMT NUMBER(8,0)
SANCAMT NUMBER(8,0)
RATERECOVERY NUMBER(5,0)
TOTINSTALMENT NUMBER(3,0)
AMTRECOVERED NUMBER(8,0)
INSTALMENTRECOVERED NUMBER(3,0)
STARTYEARMM VARCHAR2(6)
ENDYEARMM VARCHAR2(6)
CHANGEDATE DATE
USERID VARCHAR2(30)
PAYCALPERIOD VARCHAR2(6) -
Frm-40735 when-button-pressed raised ORA-01840
Hi,
Oracle forms developer 10.1.2.0.2
I am using Calendar90.pll to get calendar for a date field. After executing it throws error
FRM-40735 when-button-pressed trigger raised unhandled exception ORA-01840.
Please help me to fix it.
Thanks a lot for your help.
Sandythanks a lot for your reply. when I gave Sysdate as parameter , it opens calendar and I can select anydate.
I have four date fields created_date_to, created_date_from, processed_date_to,processed_date_from
date_lov.get_date ( sysdate,
'search.CREATED_TO_DATE',
0,
0,
'Date List of Values',
'OK',
'Cancel',
TRUE,
FALSE,
FALSE);How do i change formatmask for created_to_date so that it also works as a paramter.
select sysdate from dual;
8/5/2009 8:29:14 AM
select created_to_date from table;
1/30/2005
select processed_to_date from table;
6/26/2009 1:04:55 PMThanks
Sandy -
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 -
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. -
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,
Maybe you are looking for
-
HOW DO YOU FEEL TOTALLY ABOUT VERIZON SERVICE...PERIOD
DISAPPOINTED IN THIS HOME CONNECT AND VERIZON SERVICES. MY FATHER HAS HAD VERIZON SERVICE RESIDENTIAL (LANDLINE) FOR YEARS. HE DECIDED TO GET A CELL PHONE. WE WERE (SUCK IN) TALKED IN BY A WIRELESS REPRESENTATIVE PERTAINING THE LANDLINE PHONE FOR
-
IPhone stuck on screen showing it needs to be connected ti iTunes
I cannot restore my phone. When I try I receive an message saying my phone has not been restorted due to unknown error #6.
-
Hello I want to understand how to create roadmap Lets imagine I repair & improve my house. The roadmap will look like below : repair floor-repair celings-paint the walls-install new doors Am I right?
-
Availability "SLA" report - wrong "Planned Maintance" for some servers
Just wondering if anybody knows of any bugs or perhaps what I am doing "wrong" here when I have created an availability "SLA" report The report is the generic, availability and tagets a large group (1000) of SCOM health service watchers . Under downt
-
Stop song at a particular time second
at get info - options - start and stop songs i put in the second when it shud start and the second when it shud end - yet whereas the start command is obeyed, the stop command is ignored, the somng goes on playing till the end can you help here ?