Passing parameters from oracle form to the outside Environment ??
i hava an application in
c:\program files\sms app\sms.exe
this application can run in command prompt and accepts parameters to send sms to customers
example of command to send sms from command prompt(cmd) ,
- i navigate to application path c:\program files\sms app\sms.exe and run command below
sms.exe /p:+1012121212 /m:"message body goes here" /l /t
my question is how can i implement a form contains two text box items & one button
in button press trigger i want code that can pass the textbox1.text to the
command line application sms.exe /p:textbox1.text in the parameter position which accepts the phone_number like above example
and pass the textbox2.text to the other parameter in application which accepts message_body with "" _Double caution marks around the message body
so the final command line will look like this :
Application_Path\sms.exe /p:+1012121212 /m:"message body goes here" /l /t
Notes:
textbox1.text = parameter_data_type = number
textbox2.text = parameter_data_type = varchar2
Oracle Developer Suite 10g , OS:Windows 7
Thanks you very much
thanks for replay poelger ,
can y tell me the full command which i'll use ????
the problem is to escape the "",/ characters ,, so the final result will look like this
Application_Path\sms.exe /p:+1012121212 /m:"message body goes here" /l /t
the host needs to check for the operating system??
Again Thanks..
Similar Messages
-
Passing parameters from oracle form to html
Hello,
I have an application that requires me to take data from an oracle web form and pass many fields as parameters into an html table.
Is this possible?Hi Rose,
There is a specific sample form for this kind of actions in the Oracle9i Forms Demos. It is called Save2HTML.
from the help file: F90Write.Write_HTML Description
Writes the data from the specified block to a file in HTML format.
Maybe you can alter the code for your own use.
succes,
Mark -
Passing parameters from one form to another
Hi,
I'm trying to pass parameters from 1 form to another. I would be able to call the form, but the parameters are not passed to the calling form. I do not know what's the problem. Basically, the 2nd form shows up with blank values in all the fields. Below is my code. Anybody expert in this, pl. help.
By the way my 1st form is based on PROCEDURE.
declare
s_requestor number(10);
s_customer_impact varchar2(4000);
s_creation_date date;
l_url varchar2(4000);
blk varchar2(10) := 'DEFAULT';
begin
p_session.set_value(
p_block_name => blk,
p_attribute_name => 'A_P_REQUESTOR',
p_value => 88888);
s_requestor := p_session.get_value_as_number
(p_block_name => blk,
p_attribute_name => 'A_P_REQUESTOR');
s_customer_impact := p_session.get_value_as_varchar2
(p_block_name => blk,
p_attribute_name => 'A_P_CUSTOMER_IMPACT');
s_creation_date := p_session.get_value_as_date
(p_block_name => blk,
p_attribute_name => 'A_P_CREATION_DATE');
l_url:=('/pls/portal/PORTAL.wwa_app_module.link?
p_arg_names=_moduleid&p_arg_values=1794837934&
p_arg_names=_show_header&p_arg_values=YES&
p_arg_names=REQUESTOR&p_arg_values='||s_requestor||'&
p_arg_names=CREATION_DATE&p_arg_values='||s_creation_date||'&
p_arg_names=CUSTOMER_IMPACT&p_arg_values='||s_customer_impact);
PORTAL.wwa_app_module.set_target(l_url);
end;the way to call one form from another and pass values for parameters from the procedure is like this:
PORTAL.wwa_app_module.link (
p_arg_names => PORTAL.wwv_standard_util.string_to_table2('_moduleid:_show_header:REQUESTOR:CREATION_DATE'),
p_arg_values => PORTAL.wwv_standard_util.string_to_table2('1191314879:YES:'||s_requestor||':'||s_creation_date));
and so on.
Hope it works for you -
How to pass Data from one form to the other
Hi all
Can any one suggest me how to pass data from one form to the other form, which i zoomed from the original one?
I tried to do this by passing parameter in Event Procedure but i am getting error msg when i am opening the zoomed form.
If any one of u have any idea, give me a reply
Thank you
SuhasiniIf you choose the second alternative you should erase these global variables after the second form is opened
You can erase the global variable using:
erase('global_var')
Greetings,
Sim -
Calling Web Service passing xml from Oracle Forms
Hello,
I need to call a .net web service from Oracle Forms that passes in xml data and returns xml data.
I have seen several examples of how to create a wrapper in jdev and then to import the code
into forms. I just have not seen any examples that are passing parmameters especially not xml
as a parameter and that have an active wsdl that I can see how it relates to the code created.
I have a wrapper but cannot figure out where and what notation to use to include passing in
an xml object.
Does anyone have an example passing in xml where the wsdl is still available to see?'
Forms version 10.1.2.0.2. Jdev 10.1.3.4
Thanks,
Linda
Edited by: lboyce on Jan 5, 2009 2:30 PMAlso here you have several options...
1. you can make a PJC (bean) which include a webservice stub generated with axis (you can make a stub and also test a webservice with this tool: www.soapui.org)..
2. you can make a database webservice with JPublisher and then just call a pl/sql wrapper for this webservice
4. you can call a webservice with java api (HttpsURLConnection, HttpURLConnection or with apache HTTPClient api) from your PJC for example:
the code below is used as java stored procedure to call a .net webservice on https
====================================
public static int getPStopnja(String polica, String reg_oznaka,
String ime_osiguranika,
String naziv_osiguranika,
String leasing,
String[] doc) {
String l_polica="";
String l_reg_oznaka="";
String l_ime_osiguranika="";
String l_naziv_osiguranika="";
String l_leasing ="";
URL url = null;
HttpsURLConnection conn = null;
BufferedReader br = null;
String lineIn = null;
StringBuffer sb = new StringBuffer();
OutputStream os = null;
int rc = 0;
//kontrole
l_polica = polica==null ? "":polica;
l_reg_oznaka = reg_oznaka==null ? "": reg_oznaka;
l_ime_osiguranika = ime_osiguranika==null ? "": ime_osiguranika;
l_naziv_osiguranika = naziv_osiguranika==null ? "": naziv_osiguranika;
l_leasing = leasing==null ? "": leasing;
String body = "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
body += "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:web=\"https://services.huo.hr/web_ao/\">";
body += "<soapenv:Header/>";
body += "<soapenv:Body>";
body += "<web:get_pstupanj>";
body += "<web:param_in>";
body += "<web:polica>"+l_polica+"</web:polica>";
body += "<web:reg_oznaka>"+l_reg_oznaka+"</web:reg_oznaka>";
body += "<web:ime_osiguranika>"+l_ime_osiguranika+"</web:ime_osiguranika>";
body += "<web:naziv_osiguranika>"+l_naziv_osiguranika+"</web:naziv_osiguranika>";
body += "<web:leasing>"+l_leasing+"</web:leasing>";
body += "</web:param_in>";
body += "</web:get_pstupanj>";
body += "</soapenv:Body>";
body += "</soapenv:Envelope>";
SSLContext sslContext = null;
try {
sslContext = SSLContext.getInstance("TLS");
X509TrustManager[] xtmArray = new X509TrustManager[|http://forums.oracle.com/forums/] { xtm };
sslContext.init(null, xtmArray, new java.security.SecureRandom());
} catch (GeneralSecurityException gse) {
doc[0] = gse.toString();
return -1;
if (sslContext != null) {
conn.setDefaultSSLSocketFactory(sslContext.getSocketFactory());
try {
conn.setDefaultHostnameVerifier(hnv);
} catch (Exception ex) {
doc[0] = ex.toString();
return -1;
try {
URL st = new URL("https://services.huo.hr/web_ao/web_ao.asmx");
conn = (HttpsURLConnection)st.openConnection();
conn.setRequestMethod("POST");
conn.setRequestProperty("Host", "services.huo.hr");
conn.setRequestProperty("Content-Length", "" + body.length());
conn.setRequestProperty("SOAPAction",
"\"https://services.huo.hr/web_ao/get_pstupanj\"");
conn.setRequestProperty("Content-Type", "text/xml;charset=UTF-8");
conn.setDoOutput(true);
OutputStreamWriter wr =
new OutputStreamWriter(conn.getOutputStream());
wr.write(body);
wr.flush();
BufferedReader in =
new BufferedReader(new InputStreamReader(conn.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null) {
sb.append(new String(inputLine.getBytes(),"UTF-8"));
in.close();
//System.out.println(new String(sb.toString().getBytes(),"ISO8559_2"));
doc[0] = sb.toString();
return 0;
} catch (Exception e) {
doc[0] = e.toString() + " ===> " + body + " ==>length= " + body.length();
return -1;
====================================
best regards
Edited by: Peterv6i on Jan 6, 2009 8:34 AM
Edited by: Peterv6i on Jan 6, 2009 8:40 AM -
Passing parameters from vb form to a crystal report with stored procedure
Can someone give me an idea how to use data inputted on vb form to be use as basis of crystal report generation which loads data from a stored procedure. Stored procedure has parameters that was also set in the crystal report. viewing on crystal report is ok but i am having difficulty running the report from vb.
Hi John,
If Not CRRpt.ParameterFields("AgeType") Is Nothing Then
CRRpt.ParameterFields("AgeType").CurrentValues.Clear()
Dim ParamValue As new CrystalDecisions.Shared.ParameterDiscreteValue
ParamValue.Value = AgeType.ToString
CRRpt.ParameterFields("AgeType").CurrentValues.Add(ParamValue)
End If
Note that the ParamValue.Value should be assigned with exact same data type as you declared it in CR.
If it is string, Convert your Variable to string first.
If it is date, make sure you are passing a date variable.
and so on...
Regards
Edy -
Passing parameters from one form to another in swings
hi
Could you please let me know is there any provision to pass the values between two forms in Swing..
For Example: I have two forms : 1 Login Page and 2. Main Form.
After Login Confirmation i want the User name to be displayed in the second form.
Thanks in advance
SrishaIt seems that that is a typical servlet task, not Java Swing.
-
Passing parameters to oracle rports from oracle forms
Dear all,
Can anyone tell me how to pass parameters from oracle forms 10g to oracle reports 10g ,i want to hide my connection string and parameteres while open the report through web
can anyone plese help me out to solve this problem.Hi,
I had trail as advised, but anticipated results were not observed.
Here is the named configuration in formsweb.cfg
[NMPT]
form=D:\NMPT\FORMS\FHOPENFORM.fmx
userid=hmsprod/hmsprod@hindalco
WebUtilLogging=off
WebUtilLoggingDetail=normal
WebUtilErrorMode=Alert
WebUtilDispatchMonitorInterval=5
WebUtilTrustInternal=true
WebUtilMaxTransferSize=16384
imageBase=CodeBase
separateFrame=True
lookandfeel=oracle
logo=none
splashScreen=no
pageTitle =Test Application
background=no
colorScheme=blue
archive_jini=f90all_jinit.jar,icons.jar,frmwebutil.jar,jacob.jar
archive=f90all.jar
height=768
width=1024
envFile=nmpt.env
otherparams=useSDI=yesLOCATIONID=NMPT # new parameter which I want to access in my form
the URL is as follows:
http://MyPC:8888/forms90/f90servlet?config=NMPT
But I am unable to open the login page -
Passing Parameters from Forms to Discoverer
Hello Everybody,
Is there a way to pass parameters from Oracle Forms to discoverer 4??
I want to call Discoverer from a Form and pass parameters to a sheet.
ThanksHi,
I don't have 10g right now, so can't test it...
Isn't it possible to just put the params you won't show to your users 'behind' other objects on the param form?
Strange behaviour anyway, in 6i Reports does not seem to care wether the params are on the form or not.
Rgds,
Guido -
Launching web aplication from oracle Forms
1) How to launch any other web application from from oracle Forms application.
2) Can we pass parameters from Oracle forms application to other web application? if yes how?
Help me2) You can use global variables or you can use the call_form built-in and share_library_data = yes. Recommended by Oracle.
-
Passing parameters from FORM to REPORT
Hello All,
How to pass parameters from a FORM to a REPORT in Oracle Application Server Portal.Vamsi, Are u capturing the imputs for these parameters in the form??
If u are capturing them in the form, then u need to add them to a parameter list (TEXT_PARAMETER) and while calling the report u can send it as a parameter in the RUN_PRODUCT call.
Pls check the syntax for adding parameters and calling report from form in the form builder help. -
Call a web services from oracle forms 10
I have to call a web services from oracle forms.
The version of the database is oracle 11gr2. the version of the forms is 10.1.2.0.2.
I allready did the proxy creation and the import class within forms.
I have 2 questions:
1.
I created the following procedure:
PROCEDURE call_WS IS
vobject1 ORA_JAVA.JOBJECT;
vobject2 ORA_JAVA.JOBJECT;
BEGIN
vobject1 := WSEvaluarReglaCondicionComerci.new();
vobject2 := WSEvaluarReglaCondicionComerci.listarValoresAtributoEvento(vobject1, 702, 2217, null, null, null);
END;
the function I calling:
FUNCTION listarValoresAtributoEvento(
obj ORA_JAVA.JOBJECT,
a0 ORA_JAVA.JOBJECT,
a1 ORA_JAVA.JOBJECT,
a2 ORA_JAVA.JOBJECT,
a3 VARCHAR2,
a4 ORA_JAVA.JOBJECT) RETURN ORA_JAVA.JOBJECT;
Note that the parameters is ORA_JAVA_JOBJECT and I need to send numbers. I understand that when I import the classes, because in the WS those parameters are defined as BigDecimal, Forms understand them as java object but when I compile it reports the error: "numero o tipo de argumento erroneo al llamar..." type error.
So the question is, how Cast the numbers to Java Object to send them.
I have read in a web page that one option is to change in the web service the type of the parameters but that is not an option.
2.
The WS returns a super big XML as answer, so how I can parse the result into an Object type?...
The object structure is:
TYPE opciones_obj AS OBJECT
(strindice VARCHAR2 (4000),
nombrecompleto VARCHAR2 (4000),
nombre VARCHAR2 (4000),
strtipodato VARCHAR2 (4000),
codigoopcion NUMBER,
floatval FLOAT,
strtipo VARCHAR2 (4000),
strval VARCHAR2 (4000));
and the tags to extract is:
COLUMNS strindice VARCHAR2 (4000)
PATH 'ns2:mapEntry[ns2:key="strIndice"]/ns2:value',
nombrecompleto VARCHAR2 (4000)
PATH 'ns2:mapEntry[ns2:key="nombreCompleto"]/ns2:value',
nombre VARCHAR2 (4000)
PATH 'ns2:mapEntry[ns2:key="nombre"]/ns2:value',
strtipodato VARCHAR2 (4000)
PATH 'ns2:mapEntry[ns2:key="strTipoDato"]/ns2:value',
codigoopcion NUMBER
PATH 'ns2:mapEntry[ns2:key="codigoOpcion"]/ns2:value',
floatval FLOAT
PATH 'ns2:mapEntry[ns2:key="floatVal"]/ns2:value',
strtipo VARCHAR2 (4000)
PATH 'ns2:mapEntry[ns2:key="strTipo"]/ns2:value',
strval VARCHAR2 (4000)
PATH 'ns2:mapEntry[ns2:key="strVal"]/ns2:value') x;
xquery / xmltype aparently is not an option because the xml is too big.
I will appreciate your answers.
Thanks.
Edited by: user13058213 on 26-ene-2012 16:02i created jar file to call it from forms
Could you be a little bit less vague about what you exactly did?
Anyway; see here http://bit.ly/10VVoMR
cheers -
Calling a procedure from Oracle Forms with OUT parameter
HI,
Can anyone tell me in detail how to call a procedure with OUT parameters from Oracle Forms 6i ?
Thanks in advance.Hello,
Just provide the out parameter in the call:
Declare
amount number; -- OUT number argument populated by the procedure
Begin
-- call the X procedure --
x( amount ) ;
End;Francois -
How can i pass parameters to every form sucessively or repeatedly
How can i pass parameters to every form sucessively or repeatedly
Eg: I have username which is specified in first form
I want to display and use the username in each and every form after that form
please tell me how to do
i have one solution
i.e., Normal way to pass parameters from one form to another!
Is any procedure to pass paramters to all form at a time???excellent ...
thanks for adding up to my post ..
You can make use of parameters
Every forms shud have same parameter name and u pass on the values of these
Its one of the best ways -
Hi,
I want to pass parameters from hbj link to the component where the event method is going to be called. And also when I click the event how it is going to redirect other jsp.
Regards,
Suresh.BHello Reinuka,
It is possible to send parameter to Web Dynpro iview.
In the iview application parameters add Param1 =.
Place this code wherever you want to call that iview.
WDPortalNavigation.navigateAbsolute("ROLES:"+iview,WDPortalNavigationMode.SHOW_INPLACE,(String) null, (String) null, WDPortalNavigationHistoryMode.NO_DUPLICATIONS,(String) null,(String) null,"Param1 = ");
"ROLES:"+iview=Iview Path
"Param=Paramvalue"=Parameter and its value
Youcan receive the value as
String parmvalue=WDWebContextAdapter.getWebContextAdapter().getRequestParameter("Param");
Regards,
Sridhar
Maybe you are looking for
-
I just tried to run the latest update and now my Apple TV doesn't work
All I get is a picture of a USB with an arrow pointing up to the iTunes icon. Iv'e tried holding the menu and Play button and it looks like it is going to do something then the picture pops up again. How can I reset it? I've even unplugged it from
-
Program monitor goes blank when editing certain clips
A few days ago a 2 new problems occurred. 1. The project I have is sett to 720, 24 fps. The clips I use is from 5D MK3, shot in 720, 50fps. Some of the clips I made duplicates of, and interpreted to 24fps for a slomo effect. The 24fps clips works fin
-
I have 2 ACE appliances running in active/standby. On each appliance I have port 3 used for FT and port 4 used for server traffic. Every one of the connections terminates on a 3750 10/100 switch. The switch ports (all configured as access ports) a
-
How do I clear out my iTunes...?
I have an 11 inch macbook air laptop. I am trying to clear out some 34gigs of movies/itunes I have stored on the hard drive. I have 2 full TV seasons that I add to weekly, and want to be able to save those episodes. I am running out of space on the 1
-
I uninstaled my photoshop cc trial, will it reinstall if i buy a month of it?
i would also like to know this befor purchasing illustrator