[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Accessing Related Images in MVC Widget Template

  • Thread starter Thread starter jread
  • Start date Start date
Status
Not open for further replies.
J

jread

Guest
Looks like you enabled the field to allow for multiple images to be selected thus the item returned from item.Fields.Picture is of type System.Array and holds a collection of the images. If you want it to be an single item selector you must change the way the field works. So try accessing the field like this: @if(item.Fields.Picture != null){ foreach(var pic in item.Fields.Picture){ } }

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