Pass variable into xMII applet???
Is it possible to pass a javascript variable into the xMII applet?
I guess what I asking is could I place a variable that I created in the head of the html file and then call for it in the applet.
The variable is called in the Applet name below.
For Example:
<html>
<head>
<script>
var TEST = alert("")
</script>
</head>
<body>
<tr>
<td>
<applet name="TEST" codebase="/Illuminator/Classes" code="iGrid" archive="illum8.zip" width="775" height="350" mayscript>
<param name="DisplayTemplate" value="/Production/gridQA_Moistures">
<param name="QueryTemplate" value="/Production/qryQA_Moistures">
<param name="UpdateEvent" value="Grid_Updated">
<param name="Param.1" value="%">
<param name="Param.2" value="%">
<param name="Param.3" value="%">
<param name="Param.4" value="%">
</applet>
</td>
</tr>
</body>
</html>
Similar Messages
-
Deferred Tasks - Passing Variables into Workflow
Hi everyone
I am experiencing difficulties with deferred tasks in IDM 8.1. I have managed to create a deferred task on a user, with the task name being Generate Email. I also passed in an attribute id, and these can be seen in the user view under waveset.properties.tasks.
<Activity id='1' name='Add Deferred Task'>
<Action id='1' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='addDeferredTask'/>
<Argument name='type' value='User'/>
<Argument name='name'>
<ref>accountId</ref>
</Argument>
<Argument name='authorized' value='true'/>
<Argument name='subject'>
<s>Configurator</s>
</Argument>
<Argument name='task'>
<ref>taskToAdd</ref>
</Argument>
<Argument name='date'>
<new class='java.util.Date'/>
</Argument>
<Argument name='owner'>
<ref>WF_CASE_OWNER</ref>
</Argument>
<Argument name='taskDefinition'>
<new class='com.waveset.object.GenericObject'>
<map>
<s>id</s>
<ref>accountId</ref>
</map>
</new>
</Argument>
</Action>
</Activity>I have set up a scheduler that correctly scans all the user objects for this workflow name, and the Generate Email workflow is periodically run.
The problem is when it gets to the Generate Email workflow, all the variables that were set when the deferred task was created are gone. Both <ref>id</ref> and <Variable name=id input=true/> return null.
Setting the following in the TaskSchedule object did not help, as the string value $(id) is passed into the workflow instead of the id itself. I cannot debug the TaskSchedule as the Netbeans IDE does not allow me to put in breakpoints on this file.
<Variables>
<Object>
<Attribute name='id' value='$(id)'/>
</Object>
</Variables>My question is, how do I pass variables into a workflow via a deferred task?Hi,
Here is an example that I found that may assist.
<Activity name='setDefTask'>
<Action application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='addDeferredTask'/>
<Argument name='name' value='$(user)'/>
<Argument name='task' value='$(taskType)'/>
<Argument name='date' value='$(date)'/>
<Argument name='description' value='$(taskDescription)'/>
<Argument name='taskDefinition'>
<Object>
<Attribute name='Arg1' value='value1'/>
<Attribute name='Arg2' value='value2'/>
<Attribute name='Arg3' value='value3'/>
</Object>
</Argument>
</Action>
<Transition to='end'/>
</Activity>Hope it helps -
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] -
Passing variable into pdf document
I have created a pdf document that I want to share with my marketing team. However, in the document I want the url to be dynamic and show that individual's url. For example, if my domain is www.xyz123abc.com In the pdf, I want to setup the url in the document as www.xyz123abc.com/REPSITE. Then when the pdf is opened from each individual's site, we will pass the REPSITE variable into the pdf document. If my marketing page is www.xyz123abc.com/jim. When someone visits my website and opens the pdf, they will see www.xyz123abc.com/jim. When my partner Bob's site is visited, the pdf will display www.xyz123abc.com/bob.
So how can I dynamically pass variables from a website into the pdf?Don't know if there is a better way, but you could use the 'identity Object'. Just make sure that the Identity is set in the application preferences for each employee
var userName = identity.name
Edit: Sorry, after rereading your post, I don't think this is what you are asking for. Perhaps the 'HostContainer Object' wll allow you to do what you want? -
I need to know how to pass a variable into getURL.
Is it possible to use a param name in the html with a value
of a URL (google.com) and pass that into the flash... and then in
the actionscript replace the link with a var that calls the param?
hope that makes sense.
ThanksAll you need to know here?:
http://www.adobe.com/devnet/flash/articles/google_search.html -
Pass Variables into AS3 through Query String?
Man! I've been searching ferociously and can't seem to find a solution that works for me. I am trying to pass variables via query string on a PHP page to Flash, and then have the swf add movie clips to the stage depending on the information it receives.
Here is what the PHP outputs:
swfobject.embedSWF("flash/detailScore.swf?a=0-0&b=0-0&c=30-54&d=30-20&e=42-18", ...
And here is my AS3 code:
function loaderInfoSh(e:Event):void{
var myQueryStrings=this.loaderInfo.parameters;
a = myQueryStrings.a;
b = myQueryStrings.b;
c = myQueryStrings.c;
d = myQueryStrings.d;
e = myQueryStrings.e;
addTheResults(a,1);
addTheResults(b,2);
addTheResults(c,3);
addTheResults(d,4);
addTheResults(e,5);
this.loaderInfo.addEventListener(Event.COMPLETE, loaderInfoSh);
The addTheResults function takes the coordinates, adds a MC instance to the stage and positions it accordingly.
var colorMCArray:Array = new Array();
function addTheResults(val,colnum:Number){
if(val == null){val = "52-46";} // so I can test it locally
var daColor:String;
switch (colnum){
case 1:
daColor = "f3951c";
break;
case 2:
daColor = "74b47d";
break;
case 3:
daColor = "436494";
break;
case 4:
daColor = "9b74ac";
break;
case 5:
daColor = "b43d44";
break;
var dash:int = val.indexOf("-");
var lateral = val.slice(0,dash);
var vertical = val.slice(dash+1);
lateral --;
vertical --;
// adding the MC instance
var comm:tileB = new tileB();
comm.name = "comm"+colnum;
addChild(comm);
colorMCArray[colnum] = comm;
//Change the color
var colorTransform:ColorTransform = colorMCArray[colnum].transform.colorTransform;
var thiscolor = "0x"+daColor;
colorTransform.color = thiscolor;
colorMCArray[colnum].transform.colorTransform = colorTransform;
colorMCArray[colnum].x = 5;
colorMCArray[colnum].y = 536;
colorMCArray[colnum].x += (lateral * 9);
colorMCArray[colnum].y += (vertical * 9)*-1;
colorMCArray[colnum].addEventListener(MouseEvent.MOUSE_OVER, btnro);
colorMCArray[colnum].addEventListener(MouseEvent.MOUSE_OUT, btnrout);
I don't know what I'm doing wrong here.Was this the "e" in the code below you were pertaining to as the culprit? "e" is not a keyword. It's just the shortcut for the word "event" for the variable name of type Event which is the Event object that triggered the call of function loaderInfoSh. In your code you assigned e = myQueryString.e which should have given you a type mismatch error.
function loaderInfoSh(e:Event):void{
var myQueryStrings=this.loaderInfo.parameters;
a = myQueryStrings.a;
b = myQueryStrings.b;
c = myQueryStrings.c;
d = myQueryStrings.d;
e = myQueryStrings.e;
addTheResults(a,1);
addTheResults(b,2);
addTheResults(c,3);
addTheResults(d,4);
addTheResults(e,5);
this.loaderInfo.addEventListener(Event.COMPLETE, loaderInfoSh); -
Passing variables into CVI from TestStand.
Is there a different way to send variables into CVI from TestStand other than the input buffer? Parsing that string is annoying and bulky. Isn't there an easier way?
Hi,
Here is a short cut to another example which will use the StationGlobals -
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=313&HOID=506500000008000000301F0000&UCATEGORY_0=_8_&UCATEGORY_S=0
There are loads of other examples either as part of the examples provided by TestStand installation or in the Resource Library under TestStand on the NI website
Good Luck
Ray Farmer
Regards
Ray Farmer -
Trouble passing variable into package
I am having an issue reading a variable in a script task that I'm passing in from a windows service. I should be able to pass the param in from .NET and load it into one of my package vars right? The windows service is a file watcher service.
Windows Service code
Package pkg;
Application app;
DTSExecResult pkgResults;
Variables vars;
app = new Application();
pkg = app.LoadPackage(pkgLocation, null);d because I log it to a log file.
vars = pkg.Variables;
vars["User::FileName"].Value = sFileName.ToString();
pkgResults = pkg.Execute(null, vars, null, null, null);
The sFileName variable in the service is populated because I write it to a log file.
In the package I list the FileName variable as read/write. Have checked the spelling.
package code snippet:
public void Main()
//get file and path info
string sFileName = Dts.Variables["User::FileName"].Value.ToString();
the package fires but the variable is empty and I log an exception to the sysssislog:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentOutOfRangeException: Index and length must refer to a location within the string. Parameter name: length
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at ST_5a4733488a6149abb109d633296e2c38.csproj.ScriptMain.Main() --- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object
target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()
I cannot find what the issue is. In the package I log to a text file the value of FileName variable and as expected it is empty.
I appreciate your help witThe scripting task which is designed to retrieve the file name from the package var User::FileName is listed in the scripting tasks read/write variables and it is a package level variable. Is that what you mean by "expects" Arthur? If so then yes. But is
there a property setting on the script task that has to be set?
I could use the config file but the file name changes daily with a date stamp suffix. I could also just sweep the directory when the file watcher executes the package but that all seems so sloppy considering that I should be able to pass the filename in
as a variable.
Thanks for talking through this with me. I appreciate it. -
Problem with passing variable into subroutine
Applescript newbie stumped again...
for some reason when call the subroutine below from my code, I get an error message on the bolded variable.
Error is:
Can't make "test" into type integer.
I am calling the subroutine like this:
createFolder(folderCreationPath, appFolderName)
And am passing in two variables that I have concatenated folder name & path name.
on createFolder(folderLocation, folderName)
tell application "Finder"
if (the folder folderName of folderLocation exists) then
display dialog folderName & " already exists."
else
make new folder at folderLocation with properties {name:folderName}
end if
end tell
end createFolder
When I display the variables inside the subroutine, both appear to be strings.
Any help would be appreciated.
Thank you.If I knew how to upload a file to the forum I would do so...
Copy & paste into script editor would reformat.
Here's the full script:
---SubRoutines------------------------------------------------------------------ ------------------------------------------------------------------
on createFolder(folderLocation, folderName)
display dialog "FolderName: " & folderName & "
Folder Location: " & folderLocation & "
" & folderLocation & folderName
tell application "Finder"
if (the folder folderName of folder folderLocation exists) then
display dialog folderName & " already exists."
else
make new folder at (folderLocation as alias) with properties {name:folderName}
end if
end tell
end createFolder
---Main Code--------------------------------------------------------------------------- ------------------------------------------------------------
set projectName to "Project " & the text returned of (display dialog "What is the name of your Project?" default answer "")
set projectLocation to choose folder
---create root project folder
createFolder(projectLocation, projectName)
---create subFolders
--List of Folder names:
set FolderMediaType to {"Project", "Media & Imports", "Exports"}
set projectApplication to {"FCP", "Soundtrack", "LiveType", "Motion", "DVD Studio Pro", "Web Videos"}
set projectLocation to projectLocation & projectName --Set's project location to include project folder
repeat with iProjectApplication from 1 to count (projectApplication)
set folderCreationPath to ((projectLocation as string) & ":") --set's folderCreation to include project folder
set appFolderName to ((iProjectApplication as string) & "-" & (item iProjectApplication of projectApplication))
createFolder(folderCreationPath, appFolderName)
set folderCreationPath to projectLocation & ":" & appFolderName & ":"
repeat with iFolderMediaType from 1 to count (FolderMediaType)
set mediaFolderName to iFolderMediaType & "-" & (item iFolderMediaType of FolderMediaType)
createFolder(folderCreationPath, mediaFolderName)
end repeat
end repeat -
Pass variable into ValueColumn of SPC Chart
I need to pass the ValueColumn field into the chart. How do I do this. I think I have it set up properly, but I can not get data unless I manually set it up in the display template, which I do not want to do. What do I need to do to make this work? The Title works fine.
<tr>
<td>
<applet name='Chart1' codebase='/Illuminator/Classes' code='iSPCChart' archive='illum8.zip' width='775' height='350' mayscript>
<param name='DisplayTemplate' value='../FR/dspFR_ATD_Production_SPC'>
<param name='QueryTemplate' value='../FR/qryFR_ATD_Production_SPC'>
<param name='ValueColumns' value='Pitch'>
<param name='Title' value='Pitch Data'>
<param name='Param.1' value='%'>
<param name='Param.2' value='%'>
<param name='Param.3' value='%'>
<param name='Param.4' value='%'>
</applet>
</td>
</tr>You have the parameter name and assignment correct so that's not the problem. Try right-clicking on the applet and selecting raw data details, then observe the column heading names in your query results - do you see one called 'Pitch' and is it numeric?
Relative template paths don't work, so unless the "../" is there to hide something I would imagine your query is throwing a FatalError and producing the 'No Data Points' message.
The title is merely text so that will appear even if the query fails or there are other issues.
Regards,
Jeremy -
Issue passing variable into shell script
Please see terminal session.
- calling pwd, unset, or echo alleviate the issue.
- running the script 'plain' also exihibit an issue
- calling 'cat test.sh' causes an issue
I can repeat the issue on OSX 10.5.8
On Ubuntu, two a's always print out with: A=a B=$A ./test.sh
Terminal session:
bash-3.2$ ls -l test.sh
-rwxr-xr-x 1 axure staff 16 Mar 29 09:27 test.sh
bash-3.2$ cat test.sh
echo $A
echo $B
bash-3.2$ pwd
/Users/axure
bash-3.2$ A=a B=$A ./test.sh
a
a
bash-3.2$ A=a B=$A ./test.sh
a
bash-3.2$ $A
bash-3.2$ $B
bash-3.2$ echo $A
bash-3.2$ echo $B
bash-3.2$ unset
bash-3.2$ A=a B=$A ./test.sh
a
a
bash-3.2$ A=a B=$A ./test.sh
a
bash-3.2$ pwd
/Users/axure
bash-3.2$ A=a B=$A ./test.sh
a
a
bash-3.2$ A=a B=$A ./test.sh
a
bash-3.2$ unset
bash-3.2$ cat test.sh
echo $A
echo $B
bash-3.2$ A=a B=$A ./test.sh
a
bash-3.2$ unset
bash-3.2$ A=a B=$A ./test.sh
a
a
bash-3.2$ A=a B=$A ./test.sh
a
bash-3.2$ unset
bash-3.2$ ./test.sh
bash-3.2$ A=a B=$A ./test.sh
a
bash-3.2$bash-3.2$ ls -l test.sh
-rwxr-xr-x 1 axure staff 16 Mar 29 09:27 test.sh
bash-3.2$ cat test.sh
echo $A
echo $B
bash-3.2$ pwd
/Users/axure
bash-3.2$ A=a B=$A ./test.sh
a
a
As I would expect
bash-3.2$ A=a B=$A ./test.sh
a
NOT what I would expect. I tested this using bash 3.2 and got the same results, HOWEVER, when I tested this with bash 4.0, I got what I expected, namely your first results everytime.
So I think there is a bug in bash 3.2. You can get the bash sources, and build your own bash if you wish, or use a different method of setting 1 time envionment variables for use in a subprocess.
bash-3.2$ $A
bash-3.2$ $B
bash-3.2$ echo $A
bash-3.2$ echo $B
As expected, as the way you set A & B were as 1 time environment variables that were only seen by the subprocess created when test.sh was run. A & B were NOT created in the current shell environment, so the current shell environment would not have any values for A & B
bash-3.2$ unset
bash-3.2$ A=a B=$A ./test.sh
a
a
bash-3.2$ A=a B=$A ./test.sh
a
Again, now what I would expect, but as I have already stated, I think there is a bug in bash 3.2 that does not exist in bash 4.0.
Now a bigger question, why are you passing A & B as 1 time envionment variables? Why not just pass them on the command line?
test.sh a a
where test.sh would be
echo $1
echo $2
Or you could use export to create environment variables A & B
export A=a
export B=$A
test.sh
Now A & B would still exist after test.sh, which I assume you do not want to do.
You could try ceating test.sh as a bash function and see if that changes the behavior
test()
echo $A
echo $B
A=a B=$A test
You would have to define test() in your shell initialization scirpt if you needed each time you started a terminal session.
While I have used 1 time environment variables, I more frequently just pass arguments on the command line. -
Pass variable into execute sql task
hi
i want to execute my stored proc, in ssis package . i have 2 parameter, so i need pass values from another table one by one.
i need to execute stored proc for each from another table, by passing values
how to do ithi
i want to execute my stored proc, in ssis package . i have 2 parameter, so i need pass values from another table one by one.
i need to execute stored proc for each from another table, by passing values
how to do it
You can do it as follows
1. Add a variable of type object in SSIS
2. Add a execute sql task with query as
SELECT field1,field2
FROM Table
Set resultset option as Full resultset and in resultset tab map the resultset to object variable.
3. Add a ForEach loop with ADO enumerator and map it to object variable. Inside loop add two variable to get each iterative values for field1 and field2
4. Inside loop add a execute sql task and set command as
EXEC ProcedureName ?,?
Map the parameters to two variables created inside the loop.
On executing package the procedure gets executed for each record in the table.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
How to pass variable into lov sql query using like operator
hi.
i want to use a lov where i want to pass a variable using like operator.
my query is
select empno,name from table where empno like ':ed%';
my empno is A001 TO A199 AND B001 TO B199 so i want show either A% or B% empno
how can i do this ?
reagrdskindly press Shift+F1 at a time you face this error to see the exact Oracle error message.
and provide us with that detail
and its better if you start new topic for that error... because that will be new error,,,
-- Aamir Arif
Edited by: Aamiz on Apr 7, 2010 12:27 PM -
Pass Variables into Flash from URL
I have a real simple request for some reason cannot pull it
off. I have a url that looks like this:
http://mywebserver/directory1/directory2/webpage.html?name=Mark
I am trying to pull the variable "mark" into a swf. The URL
will change depedning on the user and I plan on adding additional
variables as well (lastname, state, age, etc).
Easy answer to this? If so, please excuse my ignorance. I use
actionscript 2 but would consider myelf a novice as I am more into
design.Using FlashVars would work, as would SWFObject - which is
what I'd use. Glad
yout got it though.
Dave -
www.offroadfire.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
How to pass variables into flex movies form the url
I used to do this in Flash 8 using swfobject, but it does not
seem to work with Flex.
Anyone can provide an example on how to do this.
Thanks,
GilbertZClaes,
Thanks. But where do i put the following code on the html
page (from the example of your link):
<%
String fName = (String) request.getParameter("firstname");
String mName = (String) request.getParameter("middlename");
String lName = (String) request.getParameter("lastname");
%>
Gilbert
Maybe you are looking for
-
Oracle Applications in redhat AS 2.1 with a pentium D
I need to install red hat linux AS 2.1 in a "Pentium D 820 2.8GHz 2x1MB Dual Core" platform to perform the first step in a future migration. The problem is that need to install Oracle Applications 11.0.3 (and is certify up to red hat 2.1) I'm not sur
-
Diff. bet. ws_upload and Gui_uplod
Hi Friends, 1) wht is the difference between ws_upload and gui_upload 2) how to handle scroll bar in bdc table control Thanks in advance, Srinadh
-
i have prob to report generate(like a VB data report).Actually wht i want is to generate a report and to have a preview of the same and print also.If possible do sent me some code related to this problem or give me idea whwre i can get it. Thanks san
-
On trying to open a CS6 Indesign job InDesign CC it will not open. I've tried other InDesign jobs and they open OK.
-
Hi all, Pls help, im getting FRM error when i try to open one of the form in Receivable AR > Setup > Receipts > Receipt Classes It gives me this error >> FRM-40735: PRE-FORM trigger raised unhandled exception NO_DATA_FOUND. What could be the problem?