kenmck
asked on
How do you pass a numeric string value from one form to another form
I can pass two parameter (busgroup_id & dept_id) from one form to the next using the code below when the values are hard coded:
<td height="18"><font face="Arial, Helvetica, sans-serif" size="2"><a href="../document_view_gpl ist.cfm?bu sgroup_id= 2&dept_id= 17">HO</a> </font></t d>
What I would like to do is pass two parameters one of which is a numeric string, rsGroup__var3 (I would also be intrested in finding out how to do a text string) from one form to the next.
I have tried this code, without success:
<td height="18"><font face="Arial, Helvetica, sans-serif" size="2"><a href="../document_view_gpl ist.cfm?bu sgroup_id= #rsGroup__ var3#&dept _id=17">HO </a></font ></td>
Can anyone tell me how to do this?
Thanks,
<td height="18"><font face="Arial, Helvetica, sans-serif" size="2"><a href="../document_view_gpl
What I would like to do is pass two parameters one of which is a numeric string, rsGroup__var3 (I would also be intrested in finding out how to do a text string) from one form to the next.
I have tried this code, without success:
<td height="18"><font face="Arial, Helvetica, sans-serif" size="2"><a href="../document_view_gpl
Can anyone tell me how to do this?
Thanks,
When ever you want to display the output of a variable use
<cfoutput>#var_name#</cfou tput>
and you dont have to worry about the numeric value suppose this is the test code
<cfset rsGroup__var3=4>
<td height="18"><font face="Arial, Helvetica, sans-serif" size="2"><a href="../document_view_gpl ist.cfm?bu sgroup_id= <cfoutput> #rsGroup__ var3#</cfo utput>&dep t_id=17">H O</a></fon t></td>
in document_view_gplist.cfm you can do this calculation
<cfset add=1+rsGroup_var3>
<cfoutput>#add#</cfoutput>
in case of text string here is eg
<cfset text_var="This is the test put as long as string here ">
<td height="18"><font face="Arial, Helvetica, sans-serif" size="2"><a href="../document_view_gpl ist.cfm?bu sgroup_id= <cfoutput> #rsGroup__ var3#</cfo utput>&dep t_id=17">H O</a></fon t></td>
in document_view.gplist.cfm file you just do
<cfoutput>#rsGroup_var3#</ cfoutput>
you will get whloe text
Harry
<cfoutput>#var_name#</cfou
and you dont have to worry about the numeric value suppose this is the test code
<cfset rsGroup__var3=4>
<td height="18"><font face="Arial, Helvetica, sans-serif" size="2"><a href="../document_view_gpl
in document_view_gplist.cfm you can do this calculation
<cfset add=1+rsGroup_var3>
<cfoutput>#add#</cfoutput>
in case of text string here is eg
<cfset text_var="This is the test put as long as string here ">
<td height="18"><font face="Arial, Helvetica, sans-serif" size="2"><a href="../document_view_gpl
in document_view.gplist.cfm file you just do
<cfoutput>#rsGroup_var3#</
you will get whloe text
Harry
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Like this:
<cfset rsGroup__var3 = 1>
<cfoutput>
<td height="18"><font face="Arial, Helvetica, sans-serif" size="2"><a href="../document_view_gpl
</cfoutput>
Then on document_view_gplist.cfm you should be able to access the variable as #url.busgroup_id#