Ticket #391 (closed ideas: wontfix)

Opened 2 years ago

Last modified 19 months ago

two dimensional array

Reported by: sullah Owned by: lmajano
Priority: low Milestone: 3.0.0
Component: Architecture Version:
Severity: normal Keywords: utility methods
Cc: sullah

Description

New useful methods, two dimensional array are useful for interacting with Ajax stuff. ColdFusion? 8 require two dimensional array for binding

<cfselect bind="cfc:coldboxproxy.getCountryList()">

  • query to two dimensional array
  • struct to two dimensional array
  • xml to two dimensional array

Change History

Changed 2 years ago by lmajano

Can you expand more on this Sana. I am not very familiar with it, put samples or anything that can guide us.

Changed 2 years ago by sullah

This is related to CF8 ajax stuff, but also some time I do generate 2 dimensional array and use with javascript to pull-out different contents based on drop down selection ( <select> ).

At the moment just think this very handy for using CF8 Ajax. As above syntax for (cfselect bind="to cfc return values should be 2 dimensional array">)

<cfset TwoDimensionalArray[1][1] = '0' />
<cfset TwoDimensionalArray[1][2] = 'Please select one name' />
		
<cfloop query="qry">
<cfset TwoDimensionalArray[qry.CurrentRow + 1][1] = trim(qry.id)>
<cfset TwoDimensionalArray[qry.CurrentRow + 1][2] = trim(qry.fname)>
</cfloop>

Its not really important, because lot of developers might not find this useful. This could be moved to v2.7 If time allowed in v2.6 then we will rethink about this.

Changed 2 years ago by lmajano

  • status changed from new to closed
  • version 2.5.2 deleted
  • resolution set to worksforme
  • milestone 2.6.0 deleted

Changed 2 years ago by sullah

  • status changed from closed to reopened
  • resolution worksforme deleted
  • milestone set to 2.7.0

Changed 19 months ago by lmajano

  • status changed from reopened to closed
  • resolution set to wontfix
Note: See TracTickets for help on using tickets.