[progress Communities] [progress Openedge Abl] Forum Post: Re: Iterate The Fields In A...

  • Thread starter Thread starter onnodehaan
  • Start date Start date
Status
Not open for further replies.
O

onnodehaan

Guest
Hi Ken, Here is a (incomplete, sloppy) snippet Ithat gives you a general idea about how you could achieve this. define variable jsonErrors as Progress.Json.ObjectModel.JsonArray. jsonErrors = jsonObject:GetJsonArray('errors'). do iCount = 1 to jsonErrors :length: assign lineObj = new Progress.Json.ObjectModel.JsonObject() lineObj = jsonErrors:GetJsonObject(iTeller1) cNames = lineObj:getNames(). do iTeller2 = 1 to extent(cNames): cName = cNames[iTeller2]. // this gives you: 45, 46, etc, cValue = string(lineObj:GetJsonText(cName)). // this gives you: Please provide valid Checking Account Number, etc end. end.

Continue reading...
 
Status
Not open for further replies.
Back
Top