I would only pass company_id
and employee_no in the url and then run the
query again to find the other info on your
target system. I would agree that passing
that amount of info through the url will
not make you happy in the long run. If you
can't run the query on the remote system,
I would consider using a form post.
/m
: Hi there,
: : I am using wddx to pass a structure as a url parameter. All I am doing is this : shown below, based on condition that query returns only 1 recordset : : <cfoutput query="qryempdetails"> : : <cfset st_Employee = structNew()> : : <cfset structInsert(st_Employee, "company_id", company_id)> : <cfset structInsert(st_Employee, "employee_no", employee_no)> : <cfset structInsert(st_Employee, "employee_name", employee_name)> : <cfset structInsert(st_Employee, "ee_id", employee_co_id)> : <cfset structInsert(st_Employee, "manager_employee", manager_employee)> : <cfset structInsert(st_Employee, "company_name", company_name)> : <cfset structInsert(st_Employee, "email_address", email_address)> : <cfset structInsert(st_Employee, "view_full", view_full)> : <cfset structInsert(st_Employee, "phone", ss_phone)> : <cfset structInsert(st_Employee, "hr_limit", hr_limit)> : : </cfoutput> : : Store this struct with wddx : : <cfwddx : action="" : input="#st_Employee#" : output="thisUser"> : : The reason I had to do this is because from /A/B/test.cfm, I have to relocate : to /subApp/home.cfm and in /subApp/Application.cfm which gets called, i set : client vars using the wddx url var like this : : <cfwddx : action="" : input="#thisUser#" : output="st_Employee"> : : and finally use it to set client vars. : : Is there a better/alternate way to achieve this? I heard wddx as url parameter : could be messy in the long run. : : Please advise. : -- : <Ajas Mohammed /> : http://ajashadi.blogspot.com : We cannot become what we need to be, remaining what we are. : No matter what, find a way. Because thats what winners do. : You cant improve what you dont measure. : Quality is never an accident; it is always the result of high intention, : sincere effort, intelligent direction and skillful execution; it represents : the wise choice of many alternatives. : ------------------------------------------------------------- : To unsubscribe from this list, manage your profile @ : http://www.acfug.org?fa=login.edituserform : : For more info, see http://www.acfug.org/mailinglists : Archive @ http://www.mail-archive.com/discussion%40acfug.org/ : List hosted by FusionLink : ------------------------------------------------------------- Mischa Uppelschoten The Banker's Exchange, LLC. 4200 Highlands Parkway SE Suite A Smyrna, GA 30082-5198 Phone: (404) 605-0100 ext. 10 Fax: (404) 355-7930 Web: www.BankersX.com Follow this link for Instant Web Chat: http://www.bankersx.com/Contact/chat.cfm?Queue=MUPPELSCHOTEN ----------------------- Original
Message -----------------------
From: "Ajas Mohammed" <[EMAIL PROTECTED]>
Date: Tue, 5 Aug 2008 15:39:36
-0400
Subject: [ACFUG Discuss]
passing a structure as wddx in url parameter.
Any alternate method to avoid wddx?
Hi there,
I am using wddx to pass a structure
as a url parameter. All I am doing is this
shown below, based on condition that query
returns only 1 recordset
<cfoutput query="qryempdetails">
<cfset st_Employee = structNew()> <cfset structInsert(st_Employee, "company_id", company_id)> <cfset structInsert(st_Employee, "employee_no", employee_no)> <cfset structInsert(st_Employee, "employee_name", employee_name)> <cfset structInsert(st_Employee, "ee_id", employee_co_id)> <cfset structInsert(st_Employee, "manager_employee", manager_employee)> <cfset structInsert(st_Employee, "company_name", company_name)> <cfset structInsert(st_Employee, "email_address", email_address)> <cfset structInsert(st_Employee, "view_full", view_full)> <cfset structInsert(st_Employee, "phone", ss_phone)> <cfset structInsert(st_Employee, "hr_limit", hr_limit)> </cfoutput>
Store this struct with wddx
<cfwddx
action="" input="#st_Employee#" output="thisUser"> The reason I had to do this is because
from /A/B/test.cfm, I have to relocate to
/subApp/home.cfm and in /subApp/Application.cfm
which gets called, i set client vars using
the wddx url var like this
<cfwddx
action="" input="#thisUser#" output="st_Employee"> and finally use it to set client vars.
Is there a better/alternate way to achieve
this? I heard wddx as url parameter could
be messy in the long run.
Please advise.
-- <Ajas Mohammed /> http://ajashadi.blogspot.com We cannot become what we need to be, remaining what we are. No matter what, find a way. Because thats what winners do. You can't improve what you don't measure. Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives. ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by FusionLink ------------------------------------------------------------- ------------------------------------------------------------- To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com ------------------------------------------------------------- |
- [ACFUG Discuss] passing a structure as wddx in ... Ajas Mohammed
- re: [ACFUG Discuss] passing a structure as... Mischa Uppelschoten ext 10
- Re: [ACFUG Discuss] passing a structur... Ajas Mohammed
- Re: [ACFUG Discuss] passing a stru... Dean H. Saxe
- Re: [ACFUG Discuss] passing a ... Ajas Mohammed
- re[2]: [ACFUG Discuss] pa... Mischa Uppelschoten ext 10
- Re: re[2]: [ACFUG Dis... Ajas Mohammed