How to pass parametrs into application
I have a applet which i would like to run as a application. Question is how to pass parametrs which applet need. WHen i use this.getParameter("nameofparam") i got stupid NullPointerException.
Thanks for any advice
Tomas
The getParameter method tries to look at the HTML document in which the applet is embedded, so it will always return null if there's no HTML document to inspect (note that the method itself isn't throwing a NullPointerException - that's thrown when you try to do something with the null parameter).
So you'll have to use a completely different way of setting the parameters. The simplest is to provide a default value for if getParameter returns null:
String parameter = getParameter("nameofparam");
if (parameter == null)
parameter = "Default value";Alternatively you could pass parameters at the command line and reference them with the array passed to the main method, or if your application has a GUI they could be taken from a menu, etc.
Similar Messages
-
How to pass parameter into a source variable of a invoke activity
I'm an new BPELer, I created a invoke activity to submit Oracle Appplications concurrent program, but I don't know how to pass parameter into source variable.
BTW, I have created the mapper file (.xsl) file.
could anyone tell me how to do that?
Thanks,
VictorHi.
How you start application? I think you send message to webservice(BPEL process is webservice too). So construct message with variable and value.
But I created only processes where input value doesn't matter. I haven't use mapper yet too. -
Hello friends,
I am displaying values ie, amounts in the screen using write statements here i have to display the
sign left side , i am using Function module 'CLOI_PUT_SIGN_IN_FRONT'
Does anybody help me - How to pass paramter into this Function module.
Regards,
PhaneendraIf you look to the code of the function module, you can see it is condensing the value.
I would make a copy of this function, and remove the condense lines to give the result you want.
data: text1(1) type c.
search value for '-'.
if sy-subrc = 0 and sy-fdpos <> 0.
split value at '-' into value text1.
condense value.
concatenate '-' value into value.
else.
condense value.
endif. -
How to pass parameter into transaction iview ?
Hi experts,
I want to know "how to pass parameter into transaction iview ".
Regards,
Krishna Balaji THi Krishna,
Not sure if this can help you.
1) Passing a parameter to a transaction iview (I saw a resolved suggestion)
Passing a parameter to a transaction iview
2) Passing a parameter from the portal to R3 (helpful info for you)
Passing a parameter from the portal to R3
3) Create SAP Transaction iView using SAPGUI for Windows (Great Blog and info about TA Iview)
Create SAP Transaction iView using SAPGUI for Windows
Please check the following link for Transaction Iviews
http://help.sap.com/saphelp_nw2004s/helpdata/en/02/f9e1ac7da0ee4587d79e8de7584966/frameset.htm
Just some info: Portal is basically what the end user can see. What he can do, is still maintain in the backend system. If there are parameters setup already for the user in the backend system (in SU01), then those parameters should still valid for the transaction that the parameters are linked to.
Hope that helps and award points for helpful suggestions.
Ray -
How to passing value into Captivate from html?
How to passing value into Captivate from html?
Or
How to communicate between objects in one slides?Hi czhao0378 and welcome to the forums!
Captivate does not natively allow you to communicate your own
data, either internally or externally. The only way to make this
happen is to create your own functionality, either via custom-built
Flash objects or JavaScript code executed in the browser or a
combination of both.
The only example I've seen of any "data passing" inside
Captivate is a custom text input/output solution that was posted on
the Captivate Developer Exchange:
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&loc=en_us&extid=1253 021
This solution consists of an input box that takes information
from the user on one slide and a second box that displays that
information on another slide. The functionality was built in Flash
and is embedded in Captivate as a Flash "animation". Unfortunately,
since this is a custom functionality, the information is not
included in the user completion results Captivate can pass to a
Learning Management System.
Since the solution mentioned above relies on a Flash
Actionscript variable to hold the information that is displayed,
you can also pass the information from HTML to Captivate using the
"SetVariable" command in JavaScript. This would at least allow you
to display your own HTML-based data inside Captivate.
Beyond that, I'm not aware of any other way to gather and
pass data in Captivate. -
JRC with JavaBeans datasrc - how to pass params into javabean.getResultSet?
Hi.
I'm developing javabeans data sources for crystal reports for the java/JRC engine. I've seen the document entitled Javabeans Connectivity for Crystal. It TALKS ABOUT passing params into the methods that return java.sql.ResultSets but there is absolutely no example code anywhere that I can find on how to do it.
What I don't understand is: Since the JRC engine is basically controlling the instantiation of the javabean, other than calling some type of fetch method in the constructor, how the heck am I supposed to pass in db connection info and a sql string?
Anybody got sample code for how to call/where to call parameters that I would put in a custom getResultSet method??
Thanks.I don't think that a Connection Pool class would be an ideal candidate for becoming a JavaBean. One of the most prevalent use of a JavaBean class it to use it as a data object to collect data from your presentation layer (viz. HTML form) and transfer it to your business layer. If the request parameter names match the Bean's property names, a bean can automatically get these values and initialize itself even though it has a zero argument ctor. Then a Bean could call methods in the business layer to do some processing, to persist itself etc.
-
How to pack code into application?
I'm interesting fro development cell phone application. I noticed many topics about code, samples but how to pack code into particular application? Which platform or language(Java or any other) I should use for packing code into final application? I prefer no particular platform or phone. But I have Nokia. That's the reason why ask you. Please can you help me?Thank you!
This site might be of help. http://www.forum.nokia.com/main/resources/
Knowledge not shared is knowledge wasted!
If you find it helpfull, it's not hard to click the STAR.. -
How to pass date into a sp?
Hi,
Could anybody know how to pass a parameter of type date into a
sp? Below are something I tried:
1.
create or replace package empTest AS
PRAGMA SERIALLY_REUSABLE;
TYPE curType IS REF CURSOR;
function Details (
hd date)
RETURN curType;
END;
CREATE OR REPLACE PACKAGE BODY empTest AS
PRAGMA SERIALLY_REUSABLE;
function Details (
hd date)
RETURN curType IS
sum_cv curType;
err_num NUMBER;
err_msg VARCHAR2(200);
sql_statement VARCHAR2(3000);
BEGIN
DBMS_OUTPUT.PUT_LINE(hd);
sql_statement :=' SELECT * from emp where hiredate <
to_date(''hd'', ''Dd-Mon-YY'') ';
DBMS_OUTPUT.PUT_LINE(sql_statement );
OPEN sum_cv FOR sql_statement ;
IF NOT sum_cv%ISOPEN THEN
OPEN sum_cv FOR sql_statement;
END IF;
RETURN sum_cv;
END Details ;
END;
RUN EXEC :CV := empTest.Details('10-DEC-01');
ORA-01858: a non-numeric character was found where a numeric was
expected
2. sql_statement :=' SELECT * from emp where hiredate <
to_date(hd) ';
Run in the same way:
ORA-00904: invalid column name
3. sql_statement :=' SELECT * from emp where hiredate < to_date
(''hd'') ';
Run in the same way:
ORA-01858: a non-numeric character was found where a numeric was
expected
ThanksUse the call syntax ...
empTest.Details(to_date('10-DEC-01','DD-MON-RR'));
.. or better yet ...
empTest.Details(to_date('10-DEC-2001','DD-MON-YYYY'));
As you are passing a date you do not need to use the to_date function in the cursor SQL statement. -
How to pass variables into an alert
Hi,
I have set up an alert control step in my BPM, and completed all the required config to see the alert is created in my alert inbox. However, I want to pass some parameters into the alert message, such as po number. Does anyone know how to do it? I already defined the variables in the alert category container.
Your help is appreciated!
HartHi Hart
I don't know if my way is "recommended" but...:)
1. don't define container variable in alert def
2. select "dynamic text" in your alert category
(if you select this you'll be able to pass text from "alert message" to the alert)
now it should work
passing variables into the long text
of the alert message works for me just great
Hope it will for you to:)
Kind Regards,
Michal Krawczyk
https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/u/34500 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] -
How to pass parameter into extract function (for XMLTYPE)
I have a table PROBLEMXML with XMLTYPE field xml_column. In this column there are several deffinitions for the problem. There is no max amount of deffinitions and it can be no definition at all. I need to return all definitions for every problem as a string wirh definitions separated by ";".
Query
SELECT extract(prob.Def,'/Definitions/Definition[1]/@var') || ';'|| extract(prob.Def,'/Definitions/Definition[2]/@var')
FROM PROBLEMXML j ,
XMLTABLE (
'/problem'
PASSING j.xml_column
COLUMNS probid VARCHAR (31) PATH '/problem/@id',
Def XMLTYPE PATH '/problem/Definitions') prob
where PROBLEM_ID =1;
returns exactly what I want a;m.
But
declare
my_var varchar2(2000) :=null;
n1 number;
n2 number;
begin
n1:=1;
n2:=2;
SELECT extract(prob.Def,'/Definitions/Definition[n1]/@var') || '|'|| extract(prob.Def,'/Definitions/Definition[n2]/@var') into my_var
FROM ETL_PROBLEMXML_STG_T j ,
XMLTABLE (
'/problem'
PASSING j.xml_column
COLUMNS probid VARCHAR (31) PATH '/problem/@id',
Def XMLTYPE PATH '/problem/Definitions') prob
where PROBLEM_ID =1;
dbms_output.put_line(my_var);
end;
returns NULL.
Is there is a way to pass parameter into extract function?I need to return all definitions for every problem as a string wirh definitions separated by ";".In XQuery, there's the handy function "string-join" for that.
For example :
SQL> WITH etl_problemxml_stg_t AS (
2 SELECT 1 problem_id,
3 xmltype('<problem id="1">
4 <Definitions>
5 <Definition var="var1"></Definition>
6 <Definition var="var2"></Definition>
7 <Definition var="var3"></Definition>
8 </Definitions>
9 </problem>') xml_column
10 FROM dual
11 )
12 SELECT j.problem_id,
13 prob.probid,
14 prob.def
15 FROM etl_problemxml_stg_t j,
16 XMLTable(
17 'for $i in /problem
18 return element r
19 {
20 $i/@id,
21 element d { string-join($i/Definitions/Definition/@var, ";") }
22 }'
23 passing j.xml_column
24 columns
25 probid varchar2(30) path '@id',
26 def varchar2(100) path 'd'
27 ) prob
28 ;
PROBLEM_ID PROBID DEF
1 1 var1;var2;var3 -
I can't find any obvious way of doing this.
for example, i have a value sitting in a BPEL variable, how do i use that value inside an XSL transformation?
in the BizTalk world, i could easily map two input schemas onto one output schema, so one of the input can contain any extra values i want to pass into the transformation.
but BPEL doesn't allow that.
the last resort i have now is use embeded java code to update the message after the transformation.
but then when it comes to updating repeating nodes, the built-in getVariableData function doesn't return a NodeList, it only returns the first found Node...
all in all, it's been very painful and hacky to get it to work.
Anyone knows a better way to do this?
Thanks!maybe this post will help:
[http://blogs.oracle.com/rammenon/2007/05/07/] (+Passing BPEL Variable contents into XSLT as Parameters+) -
How to pass parameter into cursor for loop ?
Hi Experts,
I want to pass parameter l_bom_header_tbl(i).assembly_item_name into the for statement below How to achieve this?
for j in 1 .. l_bom_components_tbl.COUNT LOOP
ThanksMaybe i failed to describe in detail,so here i go:
I have two for loops:
for i in 1 .. l_bom_header_tbl.COUNT LOOP --1st For Loop
V_bom_header_tbl.organization_code :='DSC';
V_bom_header_tbl.assembly_item_name:= l_bom_header_tbl(i).assembly_item_name ;
k:=1;
I want to pass parameter l_bom_header_tbl(i).assembly_item_name into the for statement below: How to achieve this?
for j in 1 .. l_bom_components_tbl.COUNT LOOP *2nd For Loop*
v_bom_components_tbl(k).Assembly_Item_name := l_bom_header_tbl(i).assembly_item_name ;
k := k + 1;
end LOOP;
end loop;
end;
I want to pass a paramter into second for loop in such a way that it accepts from the first for loop
for j in 1 .. l_bom_components_tbl.COUNT LOOP -2nd loop
Edited by: ILovePlSql on Mar 22, 2010 12:25 PM -
How to pass arguments into a Captivate project
Hello,
We use dotNetNuke (DNN) as our Content Management System. We are using tokens in DNN to personalize the screens. We have access to the uses first name and email. I would like to pass this information into a Captivate project. I have seen references in my research to using Javascript to invoke the Captivate project, but I have not found any samples of the source code, nor examples of how to use the passed values in the Captivate presentation. Can someone validate that this functionality exists for Captivate 8 and perhaps point me to a few examples?
Thanks,
PeterSorry. I think I was a bit too vague in my answer.
And I don't know about how you are getting your token value, but that part is up to you.
Just make sure to put it in place of where I wrote "whateveryourtokenvalueiscalled".
1.
create a variable in cp to hold your value. (e.g. holdName)
2.
Add this inside the <head></head> tags of your page (after you export it):
<script>
function = getMyValues () {
if(window.cpAPIInterface)
//assign your token value to the cp variable you created in the project
window.cpAPIInterface.setVariableValue("holdName",whateveryourtokenvalueiscalled);
</script>
3.
Back in your cp project, call to the function at some point.
For example, on page 2, add to the page's action
On Enter:
Execute Javascript
Then in the script window, type this to start up the function:
getMyValues();
I hope that makes sense. I'm not really great at explaining scripting unfortunately. -
How to pass array into xslt from java
i have a xslt in which i am passing some parameter from java there is one parameter which is a array in java which i need to pass becouse array length is not defined so that xslt will work dynakically according to the parameter.
right now i am passing parameter but not able to send the array parameter that's why my code is not fully dynamic
please give suggestion.
anaghit is not possible to pass array by using XSLT, you can wirite all values into a String with certain delim symbol, pass this string, then use xsl.substring() to get different values.
-
How to bundle jvm into application?
does any one know what steps to take to bundle a jvm into my java application?
many thanksthis has been asked a million times
search google or this site
Maybe you are looking for
-
How do you create a form to capture customer information
Hello, I have been looking for a form to capture customer information. Name, address, phone, email, & maybe even which service they're interested in. They fill out the form and then there's a submit button at the end which they click to send the inf
-
Logic pro 9 wont save automation data on multi license verrsion
I use Logic Pro 9, installed as an image on an Apple xserve for which we have purchased a multi license agreement. Logic will not let the user save automation data.
-
Two inserts using FORALL in oracle version 10.1.0.5.0 - 64bi.
Hi all, I am trying to insert values into one table based on the another table insert statement returning values. but i am unable to achieve this requirement using below code. DB Version : BANNER
-
How to make a subform expand AND contract?
Newbie here. Maybe I'm approaching this from the wrong direction. Hopefully someone can provide me with the proper method. I have created a series of subforms which I'd like to initially display as hidden with only a "header/button" visible for each
-
Where can i save pdf files in icloud? Wo kann ich in der icloud PDF Dateien speichern?
Where can i save PDF files in icloud? Wo kann ich in der icloud PDF Dateien speichern?