Looping Through a Structure

New Here ,
Jan 11, 2021 Jan 11, 2021

Copy link to clipboard

Copied

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:

structure.GIF

 

I thank you in advance.

Views

50

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation