Checking for Environment Variable in code
I need to check to see if an environment variable called "MY_TIME" exists on the system. The value of it does not matter(just use 'none'). I need for windows and unix. I believe they should work the same.
The java.lang.system.getenv() is deprecated on 1.3.x, 1.4.x but available on 1.5. I'd like to use another way besides the getenv().
Thanks.
Something like:
if( ENVIRONMENT VAIABLE EXISTS ON MY SYSTEM) {
//do something
}
http://www.google.com/search?hl=en&lr=&q=System.getenv
http://www.javaworld.com/javaworld/javaqa/2001-07/01-q
a-0706-env.htmlI just read that javaworld article. How wonderful that they throw an error. That is so incredibly stupid. It is also incredibly, moronically stupid that nothing is said about that in the JavaDocs. So, I was wrong in my earlier comment about being able to use getenv() in pre 1.5 JVM's. In general, though, deprecated methods aren't unusable. You just need to take care when using them.
You may consider using System.exec() to check env variables. Unfortunately that approach requires that you use system-dependent commands, so you'll have to determine which system you are using at runtime.
Similar Messages
-
SCCM Version = SCCM 2012 R2 CU3
Background
I would like to setup some sort of safety check to help prevent accidentally sending and OSD out to all the servers managed by SCCM. The solution I am trying to use is making the TS do a check for a custom variable. If the variable is NOT set to TRUE
then it should reboot the machine back to the currently installed OS.
The variable is called "AllowOSD"
AllowOSD is set correctly on my "Test Servers" collection
I'm using the built in "Reboot Computer" step in the TS
The condition on the Reboot Computer step is very basic - "Task Sequence Variable AllowOSD is not equal TRUE".
I am testing the TS on a VM guest (Hyper-V)
I'm deploying via PXE for these tests...
The Issue
As soon as the TS starts I get the annoyingly generic 0x80004005 error - smsts.log posted on github -
smsts.log-A
Possibly related issue:
I have a vbscript that prompts for, and sets, the computer name. This works fine if placed after the format disk step, but if I place it before the format disk step then I get error 0x800700A1. If I format the internal HD first then I don't get an error
and it all works fine.
smsts.log posted on github - smsts.log-B
Be aware VM_1 and VM_2 have unformatted disks (vhdx). I don't want them to be formatted before checking that the task sequence should really be running in the first place. As already mentioned, I am trying to prevent someone wiping out a bunch of servers
by accident.
My Task Sequences are based on the defaults created by the wizard. Here are the step I'm using...
* Reboot if AllowOSD is not TRUE
Restart in Windows PE
* set Computer Name
Partition DIsk 0 - DIOS
Partition Disk 0 - UEFI
Install Operating System
Apply Windows Settings
Apply Network Settings
Setup Windows and Config Manager
* = steps I have created.
All other steps are defaults as created by wizard.
Please note the "Restart in Windows PE" step does a conditional check on "_SMSTSInWinPE" without any errors. it is looking like the use of custom variables is not supported until the local HD is formatted and mounted. Can
anyone confirm this behaviour, or what I can do to get around this problem.
I have tried using a vbscript but triggering a reboot from VB does nothing, hence using the Reboot Computer step in the TS.
Thanks
"Well I'm all out of ideas." - 85As others have stated, your options are limited the moment you rely on PXE and WinPE but I think all you need to do is refine your collection target a bit.
Why not instead of deploying your TS to All Systems (which is what I'm guess you're doing) and trying to put a condition in, deploy to a collection that is based on a workstation collection then include unknown computers? Then any "known workstation"
will have a MAC stored and thus be permitted to use the TS, unknown machines will be as well ... but "known servers" will be blocked?
COnsidering the PXE looks for permitted MAC addresses this should work (Ill try it in my own lab).
Tested and verified:
Simply create a collection with a parent collection of all systems.
Add a workstation query:
select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.OperatingSystemNameandVersion LIKE "%Workstation%"
Then "include" unknown computers.
End result is any machine that has "server" in it's version that has already been deployed will not be able to use the deployment. If you'd rather base existing computer on an OU or group membership just modify the first query how you see fit.
This will let known workstations (or whatever) and unknown machines get deployed to ... but known machines NOT in that collection will be skipped. -
Authority-check for a particular company code
Hi,
I need to check authorization for a particular company code.In my bdc call transaction program i'm fetching mass data from excel file and for every record i've to check the company code field.If the company code is not the required one then that record should not be processed.
So before filling the bdc data i wrote like
LOOP AT gt_inrec INTO gs_inrec.
AUTHORITY-CHECK OBJECT 'F_BKPF_BUK'
ID 'ACTVT' field '02'
ID 'BUKRS' field '2800'.
IF NOT sy-subrc = 0.
MESSAGE e058(zz) WITH gs_inrec-bukrs.
EXIT.
ENDIF.
PERFORM fill_bdc.
ENDLOOP.
but it is not exiting for different company codes and is allowing records with all company codes.
can anybody pls tell me how to rectify this?
thanks in advance,
poornimaI need to perform authority check on the field NAME1 present in the standard screen - customer master ( T.Code-XD02). Only certain users should be allowed to edit the field and others should be restricted.
I have created a field exit FIELD_EXIT_AD_NAME1 for the ADRC-NAME1 field.
Now inside this field exit i need to write the authority-check code.
I have created the authorisation object Z_KNA1_NAM for the field NAME1 using the SU20 and SU21.
For this scenario how do i write the authority-check code in my field exit?
Below is my field exit code,is that correct?
FUNCTION FIELD_EXIT_AD_NAME1.
""Local Interface:
*" IMPORTING
*" REFERENCE(INPUT)
*" EXPORTING
*" REFERENCE(OUTPUT)
AUTHORITY-CHECK OBJECT 'Z_KNA1_NAM'
ID 'NAME1' FIELD SY-UNAME
ID 'ACTVT' FIELD '03'.
IF SY-SUBRC = 0.
MESSAGE 'Not Allowed to Edit the Name 1 Field' TYPE 'E'.
ENDIF.
ENDFUNCTION.
In the above code i have given SY-UNAME in the code line 2 - ID 'NAME1' FIELD SY-UNAME ,is that correct? what should i give there?
Please help me on this issue.
Cheers,
P.S.Chitra -
How to check for the variable passed to a function inside a component
I'm trying to pass a variable to a function inside of a
component in a conditional statement.
How to check the existance of this variable inside the
function so that I can use the right <CFarguments>:
in aForm.cfm I have:
<cfinvoke component="#application.cfcroot#.business.Order"
method="selOrderItems"
returnvariable="q_OrderItems"
OrderItemAbbreviation="Min"></cfinvoke>
<cfset MCompIDs = ValueList(q_OrderItems.OrderItemID)>
<cfif listFind(MCompIDs,attributes.CompID)>
<cfset isM = true>
<cfelse>
<cfset isM = false>
</cfif>
<cfinvoke component="#application.cfcroot#.business.Order"
method="selOrderItems"
returnvariable="q_OrderItems"
OrderItemAbbreviation="SMEnroll"></cfinvoke>
<cfset SM_CompIDs =
ValueList(q_OrderItems.OrderItemID)>
<cfif listFind(SM_CompIDs,attributes.CompID)>
<cfset isSM = true>
<cfelse>
<cfset isSM = false>
</cfif>
<CFIF isSM>
<cfset temppath = frmcreator.buildFrm(isSMFlag=isSM)>
<CFELSE>
<cfset temppath = frmcreator.buildFrm(isMFlag=isM)>
</CFIF>
On aFormComp.cfc where the function is,
I checked the existance of isSMFlag this way and I got error
saying that :
Context validation error for tag CFARGUMENT.; The tag must be
nested inside a CFFUNCTION tag.
How can I properly check the existance of isSMFlag inside the
function so I can use the right cfarguments?
<CFFUNCTION NAME="buildFrm" access="public"
returntype="String" output="No">
<cfif StructKeyExists(arguments, "isSMFlag")>
<CFARGUMENT NAME="isSMFlag" REQUIRED="YES"
TYPE="NUMERIC">
<cfelse>
<CFARGUMENT NAME="isMFlag" REQUIRED="YES"
TYPE="NUMERIC">
</cfif>
........ etc
</CFFUNCTION><CFFUNCTION NAME="buildFrm" access="public"
returntype="String"
output="No">
<cfif StructKeyExists(arguments, "isSMFlag")>
<CFARGUMENT NAME="isSMFlag" REQUIRED="YES"
TYPE="NUMERIC">
<cfelse>
<CFARGUMENT NAME="isMFlag" REQUIRED="YES"
TYPE="NUMERIC">
</cfif>
........ etc
</CFFUNCTION>
NOT this way, that is for sure.
The <cfargument ...> tag is for defining the arguments
a function
accepts either optional or not, but they are not required.
Give this a
try to see the differences.
test.cfc
<cfcomponent>
<cffunction name="a">
<cfdump var="#arguments#">
</cffunction>
<cffunction name="b">
<cfargument name="foo">
<cfargument name="bar">
<cfdump var="#arguments#>
</cffunction>
</cfcomponent>
test.cfm
<cfset something = createObject("component","test")>
<cfoutput>
#something.a("blue","green")#
#something.b("blue","green")#
</cfoutput>
Not tested or debugged so watch out for typos. -
hello...
i have 2 classes...one.java and Two.java....
In two.java i extends One.java...
Two.java is not compiling....
if I place those 2 files in j2sdk1.4.1/bin folder ..then its compiling successfully.....please help me to solve this..Perhaps you mean that the java compiler cannot be found in any other directory but the bin directory. You need to add the bin directory to the PATH environmental variable to be able to compile classes anywhere in a command prompt/shell. If you are using windows, you'll find the environmental variables by:
1) right clicking my computer and choosing properties
2) click advanced
3) click environmental variables
Check here for more information about common setup problems:
http://java.sun.com/docs/books/tutorial/getStarted/problems/index.html -
Code is not working check for solution . The code is not working after look up table.
In this code i am multiplying two binary images , one is a rectangle and another is an image. i am getting the rectangle, but not the image. The image part is not working after the look up table. Waiting for the solution
Attachments:
binary morphology.vi 33 KBHey. I'm thinking the problem is in theis block:
LOOP AT C_T_DATA INTO WA_MC17I30HDR.
READ TABLE LT_AFIH
WITH KEY AUFNR = WA_MC17I30HDR-AUFNR
INTO WA_AFIH BINARY SEARCH.
IF SY-SUBRC = 0.
WA_MC17I30HDR-ZZNPLDA = WA_MHIS-NPLDA.
MODIFY C_T_DATA FROM WA_MC17I30HDR.
ENDIF.
ENDLOOP.
You are reading LT_AFIH into WA_AFIH. But then you are assigning NPLDS from WA_MHIS. From what I can see, WA_MHIS hasn't been filled with anything. Try changing:
WA_MC17I30HDR-ZZNPLDA = WA_MHIS-NPLDA.
To:
WA_MC17I30HDR-ZZNPLDA = WA_AFIH-NPLDA.
Hope that does the trick.
Thanks
Edited by: Siboda_Eric on May 26, 2010 3:49 PM -
Unable to debug/correct the CMOD code for a variable used in a query
unable to debug/correct the CMOD code for a variable used in a query
i am using the data in a DSO in a query and using a custom coding variable in that query , but this data not coming in that query ..
can anyone suggest how to debug that cmod code for the variable?
code is written in CMOD tocde for the variable.belowis the code that i have written for a custom coding for a variable
*******Start***
IF i_step = 2.
CASE i_vnam.
WHEN 'IC_COMPCD'.
TYPES: BEGIN OF gt_itab_DyAuthTable,
username TYPE /bic/afiop_o1200-/BIC/IC_USER,
companycode TYPE /bic/afiop_o1200-COMP_CODE,
END OF gt_itab_DyAuthTable,
BEGIN OF gt_itab_Cocd_all,
companycode TYPE /BI0/MCOMP_CODE-COMP_CODE,
END OF gt_itab_Cocd_all.
DATA: gi_itab_DyAuthTable TYPE STANDARD TABLE OF gt_itab_DyAuthTable,
wa_itab_DyAuthTable TYPE gt_itab_DyAuthTable.
DATA: gi_itab_Cocd_all TYPE STANDARD TABLE OF gt_itab_Cocd_all,
wa_itab_Cocd_all TYPE gt_itab_Cocd_all.
SELECT /BIC/IC_USER
COMP_CODE FROM /bic/afiop_o1200
INTO CORRESPONDING FIELDS OF TABLE gi_itab_DyAuthTable
WHERE /bic/ic_user = sy-uname.
LOOP AT gi_itab_DyAuthTable INTO wa_itab_DyAuthTable.
IF wa_itab_DyAuthTable-companycode EQ '*'
OR
wa_itab_DyAuthTable-companycode EQ ' '.
SELECT COMP_CODE FROM /BI0/MCOMP_CODE
INTO CORRESPONDING FIELDS OF TABLE gi_itab_Cocd_all.
LOOP AT gi_itab_Cocd_all INTO wa_itab_Cocd_all.
l_s_range-low = wa_itab_Cocd_all-companycode.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDLOOP.
to exit the loop if any one value is */space/all for a user's compcode values
EXIT.
ENDIF.
ENDLOOP.
if control is here means, the comp codes values didnt have */space
LOOP AT gi_itab_DyAuthTable INTO wa_itab_DyAuthTable.
l_s_range-low = wa_itab_DyAuthTable-companycode.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDLOOP.
Endcase.
Endif. -
Warning while running pre-req checks for installing 11g binaries
I am trying to install 11g binaries on my box for upgrading my production db from 10.2.0.4 to 11.1.0.7. I have dev and Prod running from the same box. I already upgraded my dev instance to 11g and its home is /opt/oracle/product/11.10/dev.
I created another path for production as /opt/oracle/product/11.1.0/prod so that I can install the 11g binaries for production in there. When I run the installer, the pre-req checks gives me two warnings -
Checking PATH environment variable...
Check complete. The overall result of this check is: Failed <<<<
Problem: The installer has detected that the PATH environment variable includes other ORACLE_HOME locations in it.
Recommendation: Restart the installer after removing other ORACLE_HOME locations from PATH environment variable.
========================================================
Checking LD_LIBRARY_PATH environment variable...
Check complete. The overall result of this check is: Failed <<<<
Problem: The installer has detected that environment variable LD_LIBRARY_PATH includes other ORACLE_HOME locations in it.
Recommendation: Restart the installer after removing other ORACLE_HOME locations from LD_LIBRARY_PATH environment variable.
I ran ther pre-req again after unsetting the PATH and HOME variable. But it still gives me a warning on the PATH variable. What should I do to avoid this warning?If I were you, I would have defined the HOMEs as "/opt/oracle/product/dev/11.1.0" and "/opt/oracle/product/prod/11.1.0" - that would eliminate the errors you are facing. It is still not too late - you can install the prod binaries as "/opt/oracle/product/prod/11.1.0", then later on "clone" the OH from "/opt/oracle/product/11.1.0/dev" to "/opt/oracle/product/dev/11.1.0" and delete the former.
You could also simply clone "/opt/oracle/product/prod/11.1.0" from "/opt/oracle/product/11.1.0/dev" rather than running the the install/patching process all over again.
HTH
Srini -
Hi all,
I am installing 11g database in order to play with it. My OS is windows 7 premium edition, personnal PC and I am having that message:
Environment variable: "PATH" - This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.
Valeur attendue
: 1023
Valeur réelle
: 1558
Liste des erreurs :
PRVF-3929 : Adding the Oracle binary location to the PATH environment variable will exceed the OS length limit of [ "1023" ] for the variable on the node "DATAEBULLITION" - Cause: The installer needs to update the PATH environment variable to include the value "%ORACLE_HOME%/bin;". However, doing so will cause PATH to exceed the maximum allowable length that this operating system allows. - Action: Ensure that the sum of the lengths of your current PATH environment variable and that of "%ORACLE_HOME%/bin;" does not exceed the operating system limit. Restart the installer after correcting the setting for environment variable
Is anyone could help me as I don't understand what is PATH and how to reinstall it ?
THank youI found the answer by reading other user question.
-
TNS_ADMIN Environment Variable
Hi,
I am trying to install Oracle AS 10g Standard Edition one on my system.The problem is
1. That when I try to install Oracle Portal with Metadata Repository 3.4GB option, I get the error that the environment variable TNS_ADMIN is set to a directory which does not exist.I have checked the environment variables but there is no such variable named TNS_ADMIN.
2. After this the system asks to provide 3 more files
3. Abnormal installation termination errors appear and I have to cancel the installation.
Help will be greatly appreciated,
DayaHi,
Yes, the Oracle Installer also looks for TNS_ADMIN in the registry - it's usually in HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOMEID.
Howevern the environment overrides the registry - so if TNS_ADMIN is set in the environment, then that takes precedence over the TNS_ADMIN setting in the registry.
As mentioned by deltondm, depending on the Platform, you can set the TNS_ADMIN environment variable & try to proceed with the installation.
Regards,
Sandeep -
Error Message:PRVF-3929 - PATH environment variable.
Hello,
I am trying to install Oracle on my laptop and getting the following error message resulting into hault of installation.
INFO: *********************************************
INFO: Environment variable: "PATH": This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.
INFO: Severity:CRITICAL
INFO: OverallStatus:VERIFICATION_FAILED
INFO: -----------------------------------------------
INFO: Verification Result for Node:Indrajit-PC
INFO: Expected Value:1023
INFO: Actual Value:1159
INFO: Error Message:PRVF-3929 : Adding the Oracle binary location to the PATH environment variable will exceed the OS length limit of [ "1023" ] for the variable on the node "Indrajit-PC"
INFO: Cause: The installer needs to update the PATH environment variable to include the value "%ORACLE_HOME%/bin;".
However, doing so will cause PATH to exceed the maximum allowable length that this operating system allows.
INFO: Action: Ensure that the sum of the lengths of your current PATH environment variable and that of
"%ORACLE_HOME%/bin;" does not exceed the operating system limit.
Restart the installer after correcting the setting for environment variable.
Oracle Database Trying ton install - win64_11gR2
MY PC CONFIGURATION:
- Windows 7
- 64 bit
Can you please help me getting this solved please.C:\>Set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Indrajit\AppData\Roaming
asl.log=Destination=file
CLASSPATH=.;C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=INDRAJIT-PC
ComSpec=C:\Windows\system32\cmd.exe
COPLIB=C:\Program Files (x86)\Teradata\Client\13.0\CLIv2\
DataConnectorLibPath=C:\Program Files (x86)\Teradata\Client\13.0\bin
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\Indrajit
JAVA_HOME=C:\Program Files\Java\jdk1.7.0
LOCALAPPDATA=C:\Users\Indrajit\AppData\Local
localtd=1
LOGONSERVER=\\INDRAJIT-PC
NUMBER_OF_PROCESSORS=4
OS=Windows_NT
Path=C:\Program Files (x86)\AXSMOD;C:\Program Files (x86)\Teradata\Client\13.0\A
XSMOD\;C:\Program Files (x86)\Teradata\Client\13.0\bin;C:\Program Files (x86)\Te
radata\Client\13.0\bin;C:\Program Files (x86)\Teradata\Client\13.0\CLIv2\;C:\Pro
gram Files (x86)\Teradata\Client\13.0\ODBC Driver for Teradata\Lib;C:\Program Fi
les\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Fil
es\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\Syste
m32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\ATI
Technologies\ATI.ACE\Core-Static;c:\Program Files\WIDCOMM\Bluetooth Software\;c:
\Program Files\WIDCOMM\Bluetooth Software\syswow64;;C:\Program Files\Dell\DW WLA
N Card\Driver;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\
QuickTime\QTSystem\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;
C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft
SQL Server\100\DTS\Binn\;C:\Program Files\Java\jdk1.7.0\bin;C:\Program Files (x
86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Teradata\Client\
13.0\Shared ICU Libraries for Teradata\lib\;C:\Program Files (x86)\AXSMOD;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 37 Stepping 5, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=2505
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
QTJAVA=C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\Indrajit\AppData\Local\Temp
TMP=C:\Users\Indrajit\AppData\Local\Temp
USERDOMAIN=Indrajit-PC
USERNAME=Indrajit
USERPROFILE=C:\Users\Indrajit
windir=C:\Windows -
Error When Prompting for Substitution Variable
Hi - I'm receiving an error when I try to run the following using the substitution variable - but only when I enter a string; when I enter a numeric value it runs fine.
DECLARE
l_SCR_Info VARCHAR2(50) := '''SCR'||&SCR_NUM||'-'||'''';
begin
dbms_output.put_line(l_SCR_Info);
end;Here is the error I receive when I supply a string value when prompted:
ORA-06550: line 3, column 52:
PLS-00201: identifier 'AB' must be declared
ORA-06550: line 3, column 27:
PL/SQL: Item ignored
ORA-06550: line 10, column 22:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 10, column 1:
PL/SQL: Statement ignoredCan anyone shed some light on what I'm missing here?
Thanks!
ChristineHi,
It looks like you just want one string there:
l_SCR_Info VARCHAR2(50) := '''SCR&SCR_NUM-''';Remeber how substitution variables work: SQL*Plus replaces them with values before sending the code to the back end to be compiled.
If you give a value like AB for the variable, the code you posted is equivalent to:
l_SCR_Info VARCHAR2(50) := '''SCR'|| AB ||'-'||'''';by the time it reaches the compiler. AB is not inside quotes, so the compiler looks for a variable or function called AB.
If you gave a number:
l_SCR_Info VARCHAR2(50) := '''SCR'|| 123 ||'-'||'''';there's no problem; the compile knows what the literal number 123 is. -
How to intercept the Adobe Flash plugin block by firefox checking for vulnerabilities?
The trouble is the grey block, that asking to update Adobe Flash because the version is vulnerability. If the block of Flash object is smaller, then 100px height - there is an empty space, but not gray block with talking about version. I need to intercept the moment using JavaScript, when Firefox checking the version of plugin to make changes in my HTML code to make a GIF, but not flash.
How to intercept the Adobe Flash plugin block by Firefox checking for vulnerabilities from JavaScript code?hello, i don't think that this would be possible (but i'm not sure). what you could do is try to sniff the version of flash that is installed & the firefox useragent and just assume that old versions of the plugin will be blocked in this combination.
if you need more help about that, i'd recommend posting in a forum that is more specialized & knowledgeable in web development like http://forums.mozillazine.org/viewforum.php?f=25, since we here on the firefox support forums are primarily focused on support for end-users... -
@variable and Operating system variables (Windows environment variables)
Hi,
Has anyone experience with using @variable and Operating system variables (Windows environment variables)in XI 3.x Web Intelligence ?
Help gives the example of @Variable(NUMBER_OF_PROCESSORS). Even with syntax correction @Variable('NUMBER_OF_PROCESSORS') it does not seem to work.
It works fine for Desktop Intelligence. Environment variables added are read, after restarting DeskI. If already in an existing DeskI session, newly added (unknown) variable names give a prompt with the variable as prompt text as a result. This is the behavior in Web Intelligence, even for environment variables that are always set (like Path, TMP, ...)
Both WebI Rich Client and WebI via Infoview in XI 3.1 and XI 3.1 SP2 show this behavior (prompt instead of @variable behavior)
Are there settings that need to be made? other syntax ?
Is this a DeskI only feature ?
Thanks!
Raf
Edited by: Raf on Oct 30, 2009 3:44 PMHi Abdellatif,
Ok, that would clarify things.
You have an idea if this is documented somewhere?
Reason we ask:the "xi3-1_designer_en" guide, the specification for the @variable function states:
"BusinessObjects system variables. ...
Report variables. ...
Operating system variables. You can enter Windows environment variables in order to obtain information about your installation.
Custom variables. With Desktop Intelligence, you can use a predefined text file to provide a list of fixed variable values."
There's no explicit referal to DeskI only for OS system variables, like there is for custom variables.
Thanks!
Raf -
Setting environment variables remotely doesn't work for Windows 7
Hi,
$RemoteMachineList = 'machA', 'machB'
$session = New-PSSession $RemoteMachineList
Invoke-Command -Session $session {[Environment]::SetEnvironmentVariable("Role",0,"Machine")}
The above is the code snippet which I've tried for setting a machine level environment variable. After executing this code in a collection of XP and Windows 7 machines, when I go and check the advanced settings->system environment variables, I can see
the new entry "Role" in all the machines. But unfortunately, this env variables actually gets set only in XP machines(I did a set command from a cmd prompt/or an echo command) whereas in Windows 7 machines, this doesn't exists even though it
shows up in the advanced settings->system environment variables.
Tried in several machines, only Windows XP is yielding the required result.
Please help.
Thanks in advance !
-AravindThanks Chen, but still the same result.
I'll narrow down the scenario(actually two scenarios) as per the way it's behaving on Windows 7 machines.
Case - 1
1. I do a SetEnvironmentVariable remotely.
2. I go to that remote machine and search in advanced settings -> system env variables window. Dont click on the OK Button. Close these windows.
Result: Yes it is there as an entry.
3. I open up a command prompt and type 'set'
Result: No it is not set.
4. Again open up advanced settings -> system env variables window. Click on the OK Button. Close these windows.
5. Now open up a command prompt window and type 'set'
Result: It is set now
Case 2:
1. I do a SetEnvironmentVariable remotely.
2. I go to that remote machine and search in advanced settings -> system env variables window. Dont click on the OK Button. Close these windows.
Result: Yes it is there as an entry.
3. I open up a command prompt and type 'set'
Result: No it is not set.
4. I do a system restart.
5. Open up a command prompt and type 'set'
Result: It is set now
Any idea why this is behaving like this(more or less like setting a user level env variable), please ? I've to some way get through this obstacle to advance further. Thanks a lot for the support
Maybe you are looking for
-
Why : Data Control entry not expandable/empty - ADF Task flow based on HT.
Hi All, I've hoping to create an ADF Task flow based on a human task. I have a stand alone ADF application within the ViewController of which I am attempting to create this task flow. The resultant data control entry doesn't seem to be expandable. Qu
-
I just downloaded Maverick and now my Imac is not workgin well. I have to turn off and restart it many times. Can I go back to my previos operating system? is there anything I should do or maybe Maverick is not supported by Imac 2007.1 Intel?
-
How to configure Wake On LAN to work through the Internet?
I'm using an iOS app to wake my desktop computer. It works perfectly fine when I'm within my WiFi range. However, when I'm out of my Linksys E3000 access point, it no longer works over the Internet. So, if anyone can point me to documentation that ha
-
I have a resultset arrayList that I get from an Oracle DB. I display this in a jsp. The problem is that I want the user to click on one item in the resultset, and have it popup in a window that they can easily print. I get all the necessary informati
-
Images aren't showing because of errors, but I want them shown anyway.
So, certain web images aren't showing because they contain errors. I don't care about the errors- I want to see the images anyway. Is there a way that I can get Firefox to do this WITHOUT having to reinstall it? Thanks.