• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

114

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
Resources
Documentation