Skip to main content
Participant
January 11, 2021
Question

Looping Through a Structure

  • January 11, 2021
  • 0 replies
  • 152 views

Can anyone help me make this loop work.  

This is how my structure is created:

 

<cfset resData = ConvertXmlToStruct(gatewayResponse.Filecontent, StructNew())>

<cfset resTran = 'resData.Body.PosResponse.Ver1.0.Transaction.ReportBatchHistory.Details'>

<cfloop index="idx" from="1" to=#StructCount(resTran)# step="1">

    more cf code....

</cfloop>

 

Here is the structure:

 

I thank you in advance.

    This topic has been closed for replies.