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="CFML2WDDX"
    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="WDDX2CFML"
  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 http://www.fusionlink.com
-------------------------------------------------------------

Reply via email to