How to pass environment variables to adf application?
Hi,
I Created form function with this settings to open my adf application:
Type : SSWA plsql function
Maint Mode = None
Context : Resp
Web HTML : test.jsp
Web host: 192.168.1.30:8890
This works fine. But how can I pass environment variables as parameters?
I like to pass username and org_id.
Thanks in advance
KdeGraaf,
Sounds real interestign what you are saying. But I don't know what you mean with:"the application server name appended till html folder($COMMON_TOP/html) "
Basically if u make a SSWA jsp function with only jsp name say A.jsp.At runtime the url is automatically converted tohttp://<application server>:<port number>/OA_HTML/A.jsp
By the way $COMMON_TOP/html folder is the location for all jsps' in EBS.
Where can I find some information about making a OAF page wrapper? Because I have totaly now experience with OAF.
Make a OAF page, say page A, in process request of page get all the context data say, responsibility, org etc, and set it in http session.Then redirect the flow to ur ADF application page. If ur new and have no knowledge how do we build a page in OAF, u can download OAF developers guide from metalink. Search old threads u would get get the metalink id.--Mukul
Similar Messages
-
How to pass environment variables in Host file
Hi Gurus,
I'm having a requirement where I need to send my report output file as an attachment to customer. I achieved this by using host program and connecting to db server by using ftp. I am placing my output file in db server. From there onwards by using pl/sql scripts I am sending output file as attachment. The program is working fine for me no issues.
Now in this program i am hardcoding ip number, user name of Ip and pwd of ip. Our client don't want all those info needs to be displayed in the host(.prog) FILE.
For this i've written all variables in the .env file. But the .prog file triggers from application server. And I've written my variables in .env file which is in db server(different ip). When I am reading these values in the .prog it is throwing error saying the .env does not exists in the application server. Which is true since this is residing at db server.
Please help me how can i pass global variables to this .prog file. Remeber that I am able to send output file by hardcoding user name and password.
Appreciate your help in advance.
Regards,
NagendraHi Hussain,
Thanks for your reply.
My requirment is not related to the apps password. I know the four parameters which we can default, my requirement is further ahead.
In my host program I am connecting to db server. As it is evident .prog file runs from appl server. I need to transfer file from appl server to db server. For that I want to use global variables kind. Like if I write in .env file then I can use that parameters in across all the programs. But what I've seen from instance is that my .env file resides in db server means if i want to initialize those global variables i need to connect db server then only I can connect.
Now I need to use global variables in appl server where I don't have any .env file at this level. If say parameters through program we can pass but it is password of db server which I need to secure from users and rest others for that I need to declare global variables at appl server level. How is that possible.
The threads I've checked them already those are related to passing parameters which is possible but my requirement is to pass parameter which is hidden and through programatically it has to trigger in to the program. If my program is pure shell file and resides and db server then no issues. Here the complexity is that .prog file resides in appl server and I want to do transfer from appl server to db server.
Thaks for your patience.
Regards,
Nagendra
Edited by: 838961 on Mar 19, 2012 12:23 AM -
How can I pass environment variables to the child process?
How can I pass environment variables to the child process? This is what I tried and it didn't work.
static public void main (String[] args) throws Exception {
ProcessBuilder b = new ProcessBuilder("java", "-cp", ".", "Child");
Map<String, String> map = b.environment();
map.put("custom.property", "my value");
b.redirectErrorStream(true);
Process p = b.start();
BufferedReader reader = new BufferedReader (new InputStreamReader(p.getInputStream()));
String line = null;
while (null != (line = reader.readLine())) {
System.out.println(line);
public static void main(String[] args) {
System.out.println("The value of custom.property is : " + System.getProperty("custom.property"));
}and the result is:
The value of custom.property is : nullComplete test:
static public void main (String[] args) throws Exception {
ProcessBuilder b = new ProcessBuilder("java", "-Dcustom.property=my property value", "-cp", ".", "Child");
Map<String, String> map = b.environment();
map.put("custom.property", "my environment value");
b.redirectErrorStream(true);
Process p = b.start();
BufferedReader reader = new BufferedReader (new InputStreamReader(p.getInputStream()));
String line = null;
while (null != (line = reader.readLine())) {
System.out.println(line);
public static void main(String[] args) {
System.out.println("Property value of custom.property is : " + System.getProperty("custom.property"));
System.out.println("Environment value of custom.property is : " + System.getenv("custom.property"));
} -
How to pass session variable value with GO URL to override session value
Hi Gurus,
We have below requirement.Please help us at the earliest.
How to pass session variable value with GO URL to override session value. ( It is not working after making changes to authentication xml file session init block creation as explained by oracle (Bug No14372679 : which they claim it is fixed in 1.7 version Ref No :Bug 14372679 : REQUEST VARIABLE NOT OVERRIDING SESSION VARIABLE RUNNING THRU A GO URL )
Please provide step by step solution.No vague answers.
I followed below steps mentioned.
RPD:
****-> Created a session variable called STATUS
-> Create Session Init block called Init_Status with SQL
select 'ACTIVE' from dual;
-> Assigned the session variable STATUS to Init block Init_Status
authenticationschemas.xml:
Added
<RequestVariable source="url" type="informational"
nameInSource="RE_CODE" biVariableName="NQ_SESSION.STATUS"/>
Report
Edit column "Contract Status" and added session variable as
VALUEOF(NQ_SESSION.STATUS)
URL:
http://localhost:9704/analytics/saw.dll?PortalGo&Action=prompt&path=%2Fshared%2FQAV%2FTest_Report_By%20Contract%20Status&RE_CODE='EXPIRED'
Issue:
When I run the URL above with parameter EXPIRED, the report still shows for ACTIVE only. The URL is not making any difference with report.
Report is picking the default value from RPD session variable init query.
could you please let me know if I am missing something.Hi,
Check those links might help you.
Integrating Oracle OBIEE Content using GO URL
How to set session variables using url variables | OBIEE Blog
OBIEE 10G - How to set a request/session variable using the Saw Url (Go/Dashboard) | GerardNico.com (BI, OBIEE, O…
Thanks,
Satya -
How to pass a variable more than one values?
How to pass a variable more than one values?
You can't.
During 1 session, 1 ODI variable can have only 1 value at a time.
If you need more than 1 value, you will have to do somethink like a loop inside your package, and refresh the variable value each time. -
How to pass a variable value into a custom planning function via a web
Can some one tell me
How to pass a variable value into a custom planning function via a web template?
What are the different types of Planning function parameters available and what is the difference between them?
Thanks
babuHi Sutrtha,
Yeah I got the pop up asking to select the variables used, I have selected ENTITY_ID that was used by the interfaces, but on execution of the package the Scenario did not work as the passeed variable #ENTITY_ID is set to 0 instead of the value I am passing.
Am I missing something?
Regards
B -
How to build ear files for ADF application using Ant task
How to build ear files for ADF applications using Ant. The ojdeploy ant task can not find application-level deployment profiles. I am trying to automated build and release for ADF application.
Any help is highly appreciated.
Thanks
ShivaHi Timo
Thanks for your reply.
I have successfully created ear file using ojdeploy on jenkins. however when am trying to auto deploy using WLDeploy ant task am getting the following
error :
weblogic.application.ModuleException: :oracle.mds.config.MDSConfigurationException:MDS-01335: namespace "/oracle/webcenter/quicklinks/scopedMD" mapped to metadata-store-usage "WebCenterFileMetadataStore" but its definition was not found in MDS configuration
Please advise how to handle this.
As am a newbie to ADF, could you please advise if it is possible for the ADF application deployments can be automated for different environments using jenkins due to this MDS dependencies.
Appreciate your help.
Thanks
Shiva -
How to set environment variables in WL ?
Hi,
How to set environment variables in WL ?
Thanks,
SriviHi,
You can set the environmet variable in Weblogic by using the below commands
setWLSEnv.cmd/sh ==>Set the CLASSPATH to include the WebLogic Server classes.
Overview of WebLogic Server Domains
or you can use to set the Environment variable along with domain specific varables using the SetDomainEnv.cmd
To run SetDomainEnv.sh in Linux please use
. ./setDomainEnv.sh it require two dots (Dont miss it )
http://docs.oracle.com/cd/E28280_01/web.1111/e13749/weblogicserver.htm#ADMRF205
Hope it helps -
How to set environment variable ORACLE_HOME ?
Hi
I trying to install SAP Solution manager 4.0 SR3:
OS: Linux RHEL4u4
DB: Oracle
SAPinst now stops the installation.
To proceed with the installation, install the Oracle database as follows:
1.Log in as user orassm.
2.Set the DISPLAY variable.
3.Change to directory /oracle/stage/102_32/database/SAP.
4.Start './RUNINSTALLER'.
After you installed the Oracle database software, proceed with the database instance
installation by choosing 'OK' in this dialog box.
./RUNINSTALLER
oracle_stage is not set (OK)
oracle_base is not set (OK)
oracle_home is not set (OK)
oracle_sid is not set (OK)
oracle_home_name is not set (OK)
oracle_inst_group is not set (OK)
from_location is not set (OK)
tmp_netca_file is not set (OK)
tmp_dbca_file is not set (OK)
Working in /oracle/stage/102_32/database/SAP ...
The environment variable ORACLE_HOME is not set! abort ...
How to set environment variable ORACLE_HOME ?
Regards
Erici
Switch shell to bash:
orassm:x:502:503:SAP Database Administrator:/oracle/SSM:/bin/bash
[root@csp-p-sm00 ~]# su - orassm
[orassm@csp-p-sm00 ~]$
But when try to run ./RUNINSTALL
[orassm@csp-p-sm00 SAP]$ ./RUNINSTALLER
oracle_stage is not set (OK)
oracle_base is not set (OK)
oracle_home is not set (OK)
oracle_sid is not set (OK)
oracle_home_name is not set (OK)
oracle_inst_group is not set (OK)
from_location is not set (OK)
tmp_netca_file is not set (OK)
tmp_dbca_file is not set (OK)
Working in /oracle/stage/102_32/database/SAP ...
The environment variable ORACLE_HOME is not set! abort ...
Additionaly I've post csh.cshrc and csh.login
/etc/cshrc
csh configuration for all shell invocations.
by default, we want this to get set.
Even for non-interactive, non-login shells.
[ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]
if $status then
umask 022
else
umask 002
endif
if ($?prompt) then
if ($?tcsh) then
set prompt='[%n@%m %c]$ '
else
set prompt=\[`id -nu`@`hostname -s`\]\$\
endif
endif
if ( $?tcsh ) then
bindkey "^[[3~" delete-char
endif
setenv MAIL "/var/spool/mail/$USER"
limit coredumpsize 0
if ( -d /etc/profile.d ) then
set nonomatch
foreach i ( /etc/profile.d/*.csh )
if ( -r $i ) then
source $i
endif
end
unset i nonomatch
endif
/etc/csh.login
System wide environment and startup programs, for login setup
if ($?PATH) then
if ( "$" !~ /usr/X11R6/bin ) then
setenv PATH "$:/usr/X11R6/bin"
endif
else
if ( $uid == 0 ) then
setenv PATH "/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"
else
setenv PATH "/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin"
endif
endif
setenv HOSTNAME `/bin/hostname`
set history=1000
if ( ! -f $HOME/.inputrc ) then
setenv INPUTRC /etc/inputrc
endif
Regards
Eric -
ADF : How to pass a variable from one frame to another frame ?
Hi,
I have an html page divided into 3 frames, all inside a frameset. Each frame are linked to a specific .jsf page (src attribute). When I list a list thanks to a ADF datatable in ONE frame, each row has a "show more" button. When I click this button I succeeded to print row detail inside the same frame thanks to the processScope ADF's native variable. The problem is that I want to display the row detail in another frame, clicking from this current frame. So for this I need to reload the other frame which display the content of the processScope variable.
For this I use the javascript code :
=> parent.frames['bottomRight'].location.reload()
Just before refreshing, I put the variable in the processScope of course like it appears in the backing bean :
FacesContext context = FacesContext.getCurrentInstance();
CLPRMBuilding building = (CLPRMBuilding)
context.getApplication().getVariableResolver().resolveVariable(context, "building");
if (building == null)
return "error";
AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
afContext.getProcessScope().put("buildingDetail", building);
Next, when the user click on the button "show more" a binding CoreCommandButton component is done. And the accessor's code is executed :
public void setShowMoreCommandButton(CoreCommandButton showMoreCommandButton) {
this.showMoreCommandButton = showMoreCommandButton;
showMoreCommandButton.setOnclick("parent.frames['bottomRight'].location.reload()");
And so the other frame is reloaded ! But the "buildingDetail" variable seems not to be present in the processScope because in the jsf page displayed by the other frame no content is printed, like if the variable were not initialized. How to do then ? How to pass the buildingDetail variable to the other frame which I need to reload to refresh it's content ?elaine_g wrote:
I am wondering why does (r.a) give an error outside the method? What's the reason it only works when used inside the (b/r.a) maths function? This is illegal syntax:
class B {
int b;
A r = new A();
r.a; //syntax error
}Why? Class definition restricts what you can define within a class to a few things:
class X {
Y y = new Y(); //defining a field -- okay
public X() { //defining a constructor -- okay
void f() { //defining a method -- okay
}... and a few other things, but you can't just write "r.a" there. It also makes no sense -- that expression by itself just accesses a field and does nothing with it -- why bother?
This is also illegal syntax:
int doB() {
A r = new A();
r.a; // error: not a statement
}Again, all "r.a" does on its own is access a field and do nothing with it -- a "noop". Since it has no effect, writing this indicates confusion on the part of the coder, so it classified as a syntax error. There is no reason to write that. -
Passing environment variables to managed server during nmStart
I'm trying to script automated start with WLST using node managers but noticed that we're having some applications depending on some environment variables being set during startup.
How can I pass these from the node manager? Is it possible?
I'm trying to keep the number of nodemanagers to a minimum, otherwise I just could have just used a second one with these variables defined.
Edit: Could I just use os.environ perhaps for this?
Edit2: Say I wan't to use the admin console to restart said managed servers, is it possible to set these variables when starting from the adminconsole through the node manager?
Edited by: user13100625 on Aug 23, 2011 11:23 AM
Edited by: user13100625 on Aug 23, 2011 12:04 PMos.environ did not work because the nodemanager forks a new process inherited on it self... seems like I need a second nodemanager...
-
How to pass many variables to servlet using a URL? Ajax related.
I have 100 text boxes in my JSP and want to pass the values stored in these text boxes to a servlet with out the need for submitting the entire page using AJAX frame work.
I know how to peform the above in ajax if I have only 1 textbox. But how can I do that with 100 text boxes. I don't want to build a huge URL with 100 parameters.
I am thinking may be create an array and send it to the servlet, but don't have an idea if we can do it.
Please help me .You can make a POST request using an XMLHttpRequest, but you won't be "passing many variables using a URL", which seems to be one of your requirements, and which makes your question confounding(after all how do you pass many variables using a URL without putting many variables in the URL):
req.open("POST", url, true)
req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
req.send("first=Eric&last=Kaiser"); -
How to pass in variables using the command line when starting ActionScript native app
How do I pass in variables or startup arguments using the command line when starting an ActionScript native app? For example, I have my app call MySweetWidget and it has been compiled with Adobe AIR captive runtime so now I have MySweetWidget.exe.
In the command line, I am calling MySweetWidget.exe and would like to pass in variables or properties to the application. I would assume that those variables are then read from the loaderInfo.parameters object.
Please let me know if the Adobe AIR runtime supports passing in parameters to the native runtime. If so, I would like help determining the correct format of how to pass in the variables. Then would you read those from the loaderinfo.parameters object?
Thanks,
JeffI found the answer to my own question:
Yes it is a supported feature. It is documented on the following page:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/NativeApp lication.html#event:invoke
When you subscribe to the invoke event of the NativeApplication it will subsequently dispatch the event and you read the e.arguments Array object to get the startup arguments passed into the native application. -
How to add environment variable programmatically??
Hi all,
I want to add TOMCAT_HOME environment variable programmatically. How can I do this?
Is there any dos command to set an environment persistently?
Pls help guys...
Thanks in advance
MithunkThe way environmental variables work is that they are passed to newly created tasks by the task that creates them. So, for example, when a command shell calls Java it passes a copy if it's current environmental variables, and if Java calls Runtime.exec it can override the set it passes on.
The comands within a shell that set environmental variables can do so because they are part of the command shell, not separate programs run by it.
In short a program run by a shell can't alter the environmental variables belonging to the shell. They move only from the calling task to the called. -
How to read environment variable
How do I read an environment variable within TS?
I was thinking of calling getenv("VARIABLE_NAME") except it returns a char * and TS only allows Boolean or Numeric return type.
I wonder if LV has any function for doing the same thing.With the new ability in TestStand 4.2 to get the standard output from a command line, you can do this with a call executable step.
Simply call cmd.exe as the executable, and pass it the following expression. Then all you have to do is set Locals.EnvironmentVariableName to the name of the environment variable you want the value of and define where you want the standard output to be stored.
"/C \"echo %"+Locals.EnvironmentVariableName+"%\""
I'm attaching a sequence file that shows this. The attachment is necessarily saved in TestStand 4.2, since it uses a feature introduced in that version.
Josh W.
Certified TestStand Architect
Formerly blue
Attachments:
get env var.seq 6 KB
Maybe you are looking for
-
Interchangeable batteries 1.33, 1.5GHz G4 12 inch
I'm about to get a second 12 inch G4, an upgrade from my 1.33Ghz machine. Are the batteries from the two models (1.5Ghz and 1.33GHz) interchangeable? I'd like to use both for my new Powerbook, leaving the 1.33 machine at home on AC. Any advice apprec
-
[Bug?] iTunes 10.4 and type an 'umlaut' in artist/album etc.
If i try to edit an artist in the artist field and type a german 'umlaut' like äöü in the input field the autotext in this field will stop working and the autotext is inserted. So I can't edit/assign a artist/album etc. name with a german umlaut with
-
Payment advice Vs Remittance advice
Folks: Could you please explain me the difference between Payment advice and Remittance advice. Thanks Gita
-
Mass approval of Leave tasks..
Dear Team, Is it possible to Approve all leave requests at a single go. If it is Possible, What needs to be done at WORKFLOW Part and What needs to be done at EP Part. Please specicy both coding and configuration part of them. Please help. Thanks a l
-
"Mini Bridge could not be launched because the Mini Bridge extension is not installed."
Why? I have uninstalled and reinstalled. I have searched for an answer, no luck. Any ideas? Thank you! Amy