Running package within forms
Does anybody know how to run a package within forms (in the background?)
Example: I need to run a package to update some tables but I don't want the user to have to wait for that package to complete before making modifications to the form. It is less than a 10 second wait but it appears that the form is hung up.
thank you.
Before you start the process, your form could display a stacked canvas telling the user to wait, and then after the package returned control to the form, the form could hide the canvas.
Similar Messages
-
Run report in form 11g with RP2RRO.RP2RRO_RUN_PRODUCT
I have installed Forms 11g R2 on Windows Server2008 64bit
using tools are :-
Weblogic Server 10.3.6
SE JDK 6U35 64bit
Windows Server 2008 (Firewall off)
Oracle Portal,Forms,Report, and Discoverer Services (11.1.1.4.0)
I try to run report within form 11g, i also attached library RP2RRO.plx in form
RP2RRO.RP2RRO_RUN_PRODUCT(REPORTS,'\reportname',SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id,null);
But there is problem Report is not working, i try to make the server on windows run command
rwserver server=myserver
it show the message :-
REP-50125:java.lang.NullPointerException
When i try to url :-
http://localhost:9002/reports/rwservlet?getserverinfo
it show the following Error
REP-52005: The specified key getserverinfo does not exist in the key map file.
Please guide and give the soultion of above problem.
Sincerely
ParkashPlease see {thread:id=1107427}.
Perhaps this is what you need to do.
Cheers, -
Running an Oracle form within a Oracle 10g 10.1.2 Portal Portlet
Anyone figure out how to register and run an 10g form fmx within an Oracle 10 10.1.4 portal portlet?
I don't think you can register Forms as a portlet. We don't have support for that. You should be able to incorporate it into a frame of some sort or another. I am not so familiar with Portal but if there is a portlet type that takes a URL you should be able to supply a normal Forms URL and have it run in the frame.
-
dears,
i was design an form that read an excel sheet and upload the excel sheet contant into a table on DB, the excel sheet contain only 2 columns, the problem is when i compile the form CTRL+K there is no errors shown but when the form run i click Browes button but it give me error as below
ORA-06508 PL/SQL could not find program unit being called .
the program unit is client_get_file_name it a package within WEBUTIL attached library, the problem is the form cant call any package or anything from WEBUTIL attached library.
on the form i have 2 buttons
First Button Code: "Browes"
Declare
V_FILE VARCHAR2(2000);
BEGIN
V_FILE := client_get_file_name(NULL, NULL, NULL, NULL, open_file, TRUE);
:main_block.FNAME := V_FILE;
EXCEPTION
WHEN OTHERS THEN
my_alert('There Is Error: '||sqlerrm); -- My_alert(p_text) is program unit
RAISE FORM_TRIGGER_FAILURE;
END;
Second Button code : "Import to DB"
DECLARE
MYFILE CLIENT_TEXT_IO.FILE_TYPE;
filename varchar2(100);
temp varchar2(1000);
t1 varchar2(1000);
t2 varchar2(1000);
cust_id number;
dfrom date;
dto date;
ccode varchar2(100);
r varchar2(1000);
transfer_status boolean;
begin
filename := :main_block.fname;
MYFILE := CLIENT_TEXT_IO.FOPEN(filename, 'r');
SYNCHRONIZE;
SYNCHRONIZE;
CLIENT_TEXT_IO.get_line(MYFILE,temp);
t1:=temp;
while temp is not null loop
CLIENT_TEXT_IO.get_line(MYFILE,temp);
t1:=temp;
select substr(t1,1,instr(t1,',') -1)
into t2
from dual;
ccode:=t2;
select substr(t1,instr(t1,',') +1)
into t1
from dual;
insert into trc_upload -- table on DB
values(t2,t1);
commit;
end loop;
CLIENT_TEXT_IO.FCLOSE(MYFILE);
EXCEPTION
WHEN DDE.DDE_APP_FAILURE THEN
my_alert('WINDOWS APPLICATION CANNOT START.');
WHEN DDE.DDE_PARAM_ERR THEN
my_alert('A NULL VALUE WAS PASSED TO DDE');
WHEN DDE.DMLERR_NO_CONV_ESTABLISHED THEN
my_alert('DDE CANNOT ESTABLISH A CONVERSATION');
WHEN DDE.DMLERR_NOTPROCESSED THEN
my_alert('A TRANSACTION FAILED');
end;
so please to help me on this issue
Note:
the form deployed under UNIX on Application Server
Thanks
Murad.From ORA-06508 is seems like WEBUTIL.pll is not found in the runtime-environment.
Possible solutions:
Check if the WEBUTIL.pll (or plx) is on the path where the fmx-File is placed.
If not, check the FORMS90_PATH in your env-File (normally default.env) (you didn't mention your forms-Version, may also be FORMS60_PATH) and if the WEBUTIL.pll is in that path, if not adjust the env-file.
If its still not working, check if WEBUTIL.pll is attached including the full Path (unattach WEBUTIL.pll and reattach it without the path)
Last hint: Case-sensitivity: If you attach in lowercase-letters and library is in uppercase on unix-system the library will not be found at runtime. You won't see how the the pll was attached, best method is to unattach library and reattach it in correct case.
Another remark:
The DDE-Exception seem to be useless, because you don't use DDE (and i would not work for its not available under unix).
Hope this helps -
Oracle Forms 11gR2 - Cannot deploy locally from within Forms
I cannot deploy locally from within forms. The server is up and running and I can deploy the form by putting the correct URL in the address line of the browser window. When I try to deploy from within forms it comes up with some crazy URL that differs everytime.
This is what the URL should be and this works from the browser:
http://machinename:7002/forms/frmservlet?form=WRD608ADMIN_11g.fmx&userid=&otherparams=useSDI=yes
Here is one of the URLs it came up with when I try to run it from within Forms:
http://localhost:60231/lysVL2VjqT33znjfvLwanktVRxTIc6dEwVeRNXXRmhYU2qjf
Localhost is always there, but the rest varies.
In Forms, I have the Preferences, Runtime set to:
http://machinename:7002/forms/frmservlet
Where machine name is my PC, it is the same for this address as the URL above that works directly from the browser.
So what am I missing?
Thank you in advance.Generally speaking, it is discouraged to manually edit any of the configuration files if they are managed by WLS Console or EM. In this case, default.env is managed by EM. Therefore, changes to the file should be done through EM. If however, you want to alter the file manually, the following is likely the best way to accomplish this:
1. Stop the WLS Admin Server and Node Manager
2. Locate the proper file you wish to edit. By proper I mean, there are several copies of most config files. Most of the config files found in the Oracle Home are actually template files and are not used at runtime. Altering these will not give you the change you want. The default.env you want would be here (assuming Windows)
C:\Oracle\Middleware\user_projects\domains\ClassicDomain\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.2\config
If you are using a "Development" installation type, the above path will reflect AdminServer instead of WLS_FORMS. Remember that Development installations are not for multi-user purposes. Production deployments require the "Deployment" installation type, which can also include the Builders.
Do NOT make any changes yet.
3. Once you find the correct file, create a backup copy. Then open the file for edit (not the backup).
4. Make the desired changes and save.
5. Restart Node Manager and Admin Server if you plan to use them.
For more information about using EM to manage your configuration, refer to the product documentation:
http://docs.oracle.com/cd/E38115_01/doc.111210/e24477/configure.htm#CHDCCGHI -
Running reports from forms on the web
On forms and reports 6i we used the following code to run reports from forms.
We need to do the same on 9i forms and reports, we are running into problems.
Any help will be appreciated.
PROCEDURE web (inFileName VARCHAR2,
inRecordGroup RECORDGROUP) IS
outVirtualPath VARCHAR2(200) := '/forms90/f90servlet?p_url=/reports/rwservlet?'; outServer VARCHAR2(200) := 'server=rep_ora-app-4';
outReport VARCHAR2(200) := 'report='||inFileName;
outUserid VARCHAR2(200) :=
'userid='||GET_APPLICATION_PROPERTY(USERNAME)||'/'||GET_APPLICATION_PROPERTY(PAS
SWORD)||'@'||GET_APPLICATION_PROPERTY(CONNECT_STRING);
outDesType VARCHAR2(200) := 'DESTYPE=CACHE';
outDesFormat VARCHAR2(200) := 'DESFORMAT=PDF'; outUser VARCHAR2(2000);
outCount INTEGER;
error we are getting.
FRM-42017:Module name must be specified.S Hatch (guest) wrote:
: I'm thinking that you're going to have to install the Reports
: cartridge, create an entry in the keymap with any parameters
and
: call your report via the url.
: Dessislava Gantcheva (guest) wrote:
: : How do I call a report from a form on the web?
: : I have installed Windows NT Server 4.0 with SP 5, OAS4.0.7
EE
: : with patch 1, Developer 6.0 with patch 1. Developer server
and
: : forms server work fine in a non-cartridge implementation,
but
: I
: : cannot run a report within a form. I just have no any info
how
: : to do this.
I have entries in my keymap file and I can call my reports via
the url, but I cannot run a report WITHIN a form. I mean to call
a report by clicking on a button of a form on the web. The
RUN_PRODUCT built-in does not work (at leas it seems like this)
If any one has expiriense with it, please, give me a hint.
Thanks
null -
Report is taking too much time when running from parameter form
Dear All
I have developed report in oracle reports bulider 10g. while running it from report builder data is coming very fast.
But, If it is running from parameter form it is taking too much time to format report in PDF.
Please suggest any configuration or setting if anybody is having Idea.
ThanksHi,
The first thing to check is whether the query is running to completion in TOAD. By default, TOAD just selects the first 50 rows, where as Discoverer must return all the rows before displaying results if a crosstab report is used.
Secondly, check that the queries and the explain plans are the same in Discoverer and Toad. Although, Discoverer shows the SQL in the SQL inspector this isn't necessarily the SQL actually sent to the database. Use TOAD to interogate the Discoverer session to determine the actual SQL and compare this SQL and explain plan to SQL you ran in TOAD.
Thirdly, check that the session context is the same in both cases. So check that any custom contexts and the USER_ENV context is the same, and if any security packages or VPD policies are used in the SQL that these have been initialised the same.
If you still cannot determine the difference then trace both sessions.
Rod West -
OAS in Unix: URL not found when run report from Form???? please help
Hi,
We have succesfully install OAS with Form Server and Report Server in
Unix. We able to run Form and Report direct from browser. But we having
problem to run Report from direct Form within the browser. The message from
the browser was 'The requested URL was not found'. We use run_product to run
report from form. Below is the statement:-
Run_Product(REPORTS, 'A10001', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id,
NULL);
Does anyone have an idea??
Thanks in advance.
nullplease check env. variables
1. FORMS60_MAPPING
2. FORMS60_OUTOUT
FORMS60_MAPPING should point to vartual directory on your forms webserver
FORMS60_OUTPUT should point to physical
directory path of vartual directory
FORMS60_MAPPING
regards
Darshan
[email protected]
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by leong([email protected]):
Hi,
We have succesfully install OAS with Form Server and Report Server in
Unix. We able to run Form and Report direct from browser. But we having
problem to run Report from direct Form within the browser. The message from
the browser was 'The requested URL was not found'. We use run_product to run
report from form. Below is the statement:-
Run_Product(REPORTS, 'A10001', SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id,
NULL);
Does anyone have an idea??
Thanks in advance.
<HR></BLOCKQUOTE>
null -
Create a jdbc connection within forms
I have created a little piece of java code that connects to my database via a jdbc connection, inserts a value into a table, commits, then closes the jdbc connection.
This works perfectly in JDeveloper.
Now, I need to use it within forms, but forms is throwing an exception in the java console: [I have signed the file]
and I also get an alert that says "FRM-92100: Your connection to the Server was interrupted. This may be the result of a network error or a failure on the Server. You will need to reestablish your session."
I'm assuming when my java code tries to do a jdbc connection, it conflicts with the already established forms connection. Does anyone have any suggestions on how to overcome this?
-----------------java console exception-----------------
java.lang.IllegalAccessException: myconnection
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at oracle.forms.handler.UICommon.instantiate Unknown Source)
at oracle.forms.handler.UICommon.onCreate(Unknown Source)
at oracle.forms.handler.ButtonItem.onCreate(Unknown Source)
at oracle.forms.engine.Runform.onCreateHandler(Unknown Source)
at oracle.forms.engine.Runform.processMessage(Unknown Source)
at oracle.forms.engine.Runform.processSet(Unknown Source)
at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
at oracle.forms.engine.Runform.onMessage(Unknown Source)
at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
at oracle.forms.engine.Runform.startRunform(Unknown Source)
at oracle.forms.engine.Main.createRunform(Unknown Source)
at oracle.forms.engine.Main.start(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
------------------java code-------------------------
NOTES: of course I have taken out the real ip
address, the db name, and the login and password.
import java.sql.*;
import java.io.*;
import oracle.jdbc.driver.*;
import oracle.forms.ui.VButton;
class connection extends VButton
public static void main (String[] args) {
try {
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
String url = "jdbc:oracle:thin:@<ip>:1521:<databasename>";
Connection conn = DriverManager.getConnection(url,"<login>","<password>");
Statement stmt = conn.createStatement();
ResultSet rs;
rs = stmt.executeQuery("insert into lh_test (my_name) values ('this')");
rs = stmt.executeQuery("commit");
conn.close();
} catch (Exception e) {
System.err.println("Got an exception! ");
System.err.println(e.getMessage());Hi 348874,Frank
Frank,do you thinck that if this java class would extend VBean,instead of VButton will it make any diffence?(I mean,it do has a main method,wich isn't executed when the VButton initialises).
Ín fact,when having a closer look into the java class(wich ,obvioulsly I didn't last time) I'm quite confused...why is this exception raising?
This Component should do nothing in fact,when inserted into a form.
As far as I know,from Forms Applet point of view,this class should be exactly a VButton,because the constructor and init() method are exactly the ones inherited from VButton(This class isn't adding anything to VButton)...Am I wrong?? -
Querying data from External Source from within FORMS
I have a form that is built based on Oracle tables.
I need to execute a Select statement via ODBC from within Forms procedures. This is going to a SQL Server DB to get some information for validation purpose.
I do not need to bring this in to a Forms Block.
Any thoughts?
ThanksHi
What version of forms do you use? If you use forms 6i, take a look at the EXEC_SQL package. You can access oracle databases and ODBC databases (using OCA) independently of the main database connection -- well, I never tried but that is what the documentation says.
I am not sure about version 9i... the package is there, but I could not find anything in the help about it (what is not a good sign...)
hth
Luis Cabral -
Icons files will not displaying when running web-based forms locally
My icon files (jpgs) are not displaying from within Forms Developer 10g or when I run the web-based forms from within Developer. I have tried the following without success:
6.4 Deploy Icons for Forms Running on Web
Option One: For Running Web Based Forms from Within the Forms Builder in Oracle 10g Developer Suite
1) Copy all the icon image files (*.jpg) to the directory of <Oracle_10g_Developer_Suite_Installation_Root_Dir>\forms\j2ee\formsapp\formsweb\icons
2) Make sure to set imageBase=DocumentBase in the file < Oracle_10g_Developer_Suite_Installation_Root_Dir >\forms\server\formsweb.cfg.
3) Edit the < Oracle_10g_Developer_Suite_Installation_Root_Dir >\forms\java\oracle\forms\registry\Registry.dat file, specify the icon image file extension by modifying the following line:
default.icons.iconepath=icons/
default.icons.iconextension=jpg
Save this Registry.dat file.
4) Restart the OC4J Instance.
5) Launch the form from Forms Builder.
I just got a new laptop and am setting everything up again. I have everything setup the same way as on my old machine (same as above). It worked fine on my old computer but not on the new one.hi
try to create jar file for u r all jpgs but also u have to check the size of u r images
and if possible try to resave the same images by using Acdsee or use any other image viewer softwares.
hope this helps u...
sarah -
Grant privileges, roles within Forms
Hello,
i have a forms application where each year can appear new users (e.g. employees), and i when a new employee appears i wanna grant him privileges, roles, etc within Forms. so is it possible having a form(accesible just for dba user) from where he can assign roles to another users ? (in employee table i have a column 'username'). also, when i insert a new employee, in post-insert query (i think) is it possible to have something like
create user .... identified by ....... but here is a problem.. where can i write the password?
Please clarify :)
Regards,Roger22 wrote:
but when i run the script how can i specify the password?what do you mean by specify the password? What's exactly your problem/requirement with specifying the pw?
You can do this in forms using forms_ddl, but I'd use a database procedure for this which creates the user, does the granting stuff etc.
e.g.:
create or replace procedure createUser(ivUsername in varchar2) is
cursor cGrants(cvUsername varchar2) is
select 'grant '||decode(object_type, 'TABLE', 'select, insert, update, delete ', 'PROCEDURE', 'execute ', [...])|| ' to '||cvUserName as grant_stmt,
'create synonym '||object_name||' for '||cvUserName||'.'||object_name as syn
from user_objects
where object_name != 'CREATEUSER'
and object_name not in (select synonym_name from all_synonyms where owner = upper(cvUserName);
begin
execute immediate 'create user '||ivUserName||'identified by '||ivUserName||' default tablespace my_tbs temporary tablespace my_temptbs quota unlimited on my_tbs';
execute immediate 'grant connect, resource to '||ivUserName;
for rGrants in cGrants(ivUsername) loop
execute immediate rGrants.grant_stmt;
execute immediate rGrants.syn;
end loop;
end;
/A user with pw = username get's created (maybe you should provide your users a pw change functionality to change their passwords afterwards), he gets granted all the privilages to objects from the current user, and also synonyms get's created (if you want to use this the calling user should have the create any synonym privilage). Beware: If you want to do this you MUST NOT grant this procedure to the other users (so object_name != 'CREATEUSER') or use any other database procedures in it, as you'll get a lock when executing the grant statement and the procedure hangs.
If you want to manage more schemas, you could create this procedure with the system user, modify the cursor to do a query on all_objects and restrict it to the schema from where you want to grant the privilages to (grant execute on schema.object to user), and pass the schema and the user to create to it. -
Access other_params within forms 9i
Hello,
I'd like to determine the output directory when using the Forms TEXT_IO utility
in the formsweb.cfg (of the OAS) as other_params.
This would facilitate maintenance and it is more flexible.
But I do not know how to access this parameter within Forms 9i.Hello,
I know, that with the TEXT_IO package it is written on the machine of the OAS. However my problem is as mentioned how to access external parameters within forms.
I wrote in formsweb.cfg:
[my_section]
otherparams=myparam1=%alpha% myparam2=%beta%
Then in the Form WHEN-NEW-FORM-INSTANCE Trigger:
DECLARE
outdir VARCHAR2(100);
BEGIN
TOOL_ENV.GETVAR('myparam1', outdir);
:GLOBAL.export_dir := 'd:/oas/Apache/Apache/htdocs/'||outdir||'/';
END;
The URL looks like
http://station:7778/forms90/f90servlet?config=my_section&form=d:\myform.fmx&userid=
But I get the Error: FRM-47023:
Form MYPARAM1 does not contain a parameter named MYFORM
What is wrong here ??
I tried it also with the URL:
http://station:7778/forms90/f90servlet?config=my_section&otherparams=myparam1=outdir&form=d:\myform.fmx&userid=
although I would like to have the information (alpha) only in the formsweb.cfg
Thanks -
How to schedule a job to run twice within a request set?
How to schedule a job to run twice within a request set?
Create one more stage for the same concurrent program.
Thanks
Nagamohan -
Creating a Folder Within Form or Document Library & Display the name not in the name column.
I have created a form library that will used to create folders within that. The folder creation is done using an InfoPath Form that has been uploaded to the Form Library. When the new folder was created the name will be displayed at the Name column within
the Form Library. I want to change that to another column like documents or suchlike.
Can it be done using InfoPath 2010 VSTA C# or not? If their are other options available please could you try to inform me!
Thank You,
ChiranthakaHi,
If you want to show the name of folder in another column, a workaround is that you can create an extra column, then create a SharePoint Designer workflow to set the value of
this column with the name of folder.
Here is a link about Create Workflow using SharePoint Designer and set field value for your reference:
http://www.codeproject.com/Tips/419037/Create-Workflow-using-SharePoint-Designer
I have seen a similar post from you in the link below:
http://social.technet.microsoft.com/Forums/en-US/c3ff3f17-dbe2-40f9-86c5-ff7d4b663f09/creating-a-folder-within-form-or-document-library-display-the-name-not-in-the-name-column?forum=sharepointcustomizationprevious
It's recommended that you post a single question in a single thread which will make it easier to be discussed by others.
Best regards
Patrick Liang
TechNet Community Support
Maybe you are looking for
-
Itunes freezes when verifying ipod when ipod is connected
So yer my itunes has frozen as soon as i connect my ipod. Constantly telling me it is 'verifying' .. problem is the 'verifying' never ends.. does anyone have a solution for this? ive tried redownloading itunes but no luck.. this only started occuring
-
Access Connection 4.52 is available for Vista and XP
A new release of Access Connection is available, dated April 4, 2008 Vista version here XP version here CHANGES IN THIS RELEASE Version 4.50, 4.51 and 4.52 [Important updates] Nothing. [New functions or enhancements] - Integration with AVAYA IP Softp
-
Double to String with 2 characters decimals
How to a get a String from a Double with only 2 characters after the dot/comma ? chmurb
-
Tomcat and apache mod_jk or mod_webapp
Hello,I am using linux and I am running a apache web server and I also use tomcat. I have upgraded from tomcat 4.0 to 4.1.24 and I am now wanting to use servlets and jsp with apache.I have messed around with servlet etc for awhile now but I wish to u
-
Photoshop won't open GIF files.
I'm running Photoshop CS5 64-bit and I can't open GIF files. I don't know why or where to start searching for an answer. Anyone with some ideas on what I might do to try and resolve this problem will be much appreciated. Mike