Thanks Mischa.
Good suggestion, I will do that. I dont know what I was thinking, I
guess I was not thinking at all ;-) .
Its amazing how you get stuck to one idea and cannot see other
options.
Ajas.
On 8/5/08, Mischa Uppelschoten ext 10 <[EMAIL PROTECTED]
> wrote:
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="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 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]>
To: [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="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 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
-------------------------------------------------------------
--
<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
-------------------------------------------------------------