Ask a Question related to Macromedia ColdFusion, Design and Development.
-
WestSide #1
Dynamic Structure Question?
Hi,
I wanted to know if possible. Can I have a dynamic structure name?
some generic query
<cfquery name="qryTest" datasource="#request.dsn#">
SELECT uniqueID, Name, Total
FROM tablename
WHERE status = 1
</cfquery>
<cfloop query="qryTest">
<cfset #uniqueID# = StructNew()>
</cfloop>
So this would hopefully create "x" number of empty structures with their own
UniqueID's...
The plan is to put more keys in each of the newly created structures. Each of
those keys will then have their corresponding values (ideally)
Or do I have to use SetVariable() or something?
Any help appreciated
-WestSide
<cfquery name="qryTest" datasource="#request.dsn#">
SELECT uniqueID, Name, Total
FROM tablename
WHERE status = 1
</cfquery>
<cfloop query="qryTest">
<cfset #uniqueID# = StructNew()>
</cfloop>
WestSide Guest
-
FMS app structure question
Hi I'm still feeling my way with media server and need a little help. I'm making a chat app with multiple rooms. I need to have a directory... -
Site Structure Question
I'm in the process of implemeting Contribute 3.1/CPS 1.1 under IIS6. Our organizational structure requires that user wear many hats, so in the site... -
Creating Dynamic Structure
Hi, I want to create a dynamic structure of structures. I wrote the following code but I am getting errors with that. I have three entities... -
nested structure question....
Hi, I posted a previous question somewhat similar to the one below, however, I am trying to determine if I can even use structures in this... -
DB structure question
Access 2000. I'm trying to create a DB that stores records of books, but my understanding of DBases is very simple at best so, I have a table... -
toniu27 #2
Re: Dynamic Structure Question?
<cfquery name="qryTest" datasource="#request.dsn#">
SELECT uniqueID, Name, Total
FROM tablename
WHERE status = 1
</cfquery>
<cfset mystruct = structnew()>
<cfloop query="qryTest">
<cfset mystruct[uniqueID] = StructNew()>
</cfloop>
toniu27 Guest



Reply With Quote

