Passing variable into url
Am sure am missing something but why doesnt this work???
If I hardcode the string value it works fine...
<cfset Str_Order =#rsorder.order_id#>
<cfoutput> #Str_Order# </cfoutput>
<p><a href="MyAccount.cfm?view=customsinvoice&OrderID=' #Str_Order# ' "> test</a></p>
Lose the single quotes.
Saurav's idea should work as well.
In either case, you should also encode for url.
<cfoutput>
<p><a href="MyAccount.cfm?view=customsinvoice&OrderID=#URLEncodedFormat(Str_Order)#"> test</a></p>
</cfoutput>
jason
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 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> -
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 -
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 -
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 -
Passing variables along url for database update of record?
Hi,
Over past few days i have been asking questions about dreamweaver CS4 database tools stating that i dont understand them.
Well things have change now and i am loving cs4 even more. I watched over 10 videos teaching how to use the database tools in dreamweaver and i have successully saved myself from buying something like datassist etc saving money and realising there is more functionality by using what is already built into dreamweaver.
I basically have a list page that lists all records from database, 15 records per page, a delete page, insert page and update page.
What i am focusing on with some help is the list page and update page.
Using dreamweaver tools built in when i click on the unique id on the list page it bines the id to the url and loads the update page with all user details intact great stuff. Now on the update page i set it to filter by id and url parameter which obviously works and needs to be as i am using the id link.
Thing i want to do now is link the username and email address to the update page like i did for the id, problem is when i create the link using dreamweaver tools same like i did for ID apart from this time it passes the username to the url which is good but it does not show the users information on update page.
Now i think this maybe something to do with on the update page that it is filtered to id and url paramenter, so how do i basically link the username and email address to the update page so when i click on the username or email address it shows there information on the update page?
it works fine for id but i think because it is set to filter via id url parameter why it wont work the username and email address so i am trying to figure out how to come over this so i can click on username or email address and let the same thing happen as when i do for ID.
Now sorry i don't think this may make any sence i am relatively new to dreamweaver and doing my best to explain.
Thank you
guypcHi i am sorry for confusing.
I have a database that has
id
status
username
first_name
last_name
email
password
ip
date_time
activation key
now on my list page i have it showin: ID / Status / Username / First Name / Last Name / Email
now after creating a recordset and making it show 15 records per page etc i then clicked on the id in table and choose from properties window browse (the folder icon) then selected the file update.php and then clicked on parameters gave the name id and value id so when i then click on a users id it takes me to the update.php page and shows there information as it suppose to by passing the user id along the url.
This is fine. now i want to make the username and email address do the same so when i click on them it takes me to the update page and loads the user information from DB like it does with the ID. Basically same thing but different text link.
Is that better explained?
it just basically allows me to select either id, username or email address instead of just id, just preference really.
thank you
guypc -
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
Maybe you are looking for
-
Sending a string over ethernet at 1 Hz.
I am trying to send a string file at 10 Hz over ethnet to another PC. It is a motion file. I am enclosing a snippet of the file below. START_TIME,24-OCT-2004 16:44:54,0 00:02:21 00:00:00,INIT_POS,v1_m1,33.7487,-118.035,16.97 AR RU 00:00:00,mot,v1_m1
-
What to do if message: [Win32 API error 126 ("Dasangegebene Modul wurde nicht gefunden") when calling ::LoadLibrary from getFunction] apears
-
iTunes (10.3.1) does not allow me to preview songs. TV shows, etc. preview fine. This has been the case for the last few updates. (Macbook 1.83,Core 2 Duo (OS 10.6.7)
-
[SOLVED] Mapping a compose key in console
I am trying to successfully (re)map the keys for the console to turn the right control key into a compose key. Please note, this is for the CONSOLE. I already have it working in X using Xmodmap. Although this is specifically about a compose key, it s
-
I do not look no files in the archive?
I do not look no files in the archive?