August 24, 201015 yr Newbies Hello everybody ! My job is to get datas from an enormous FM database (bad organised ^^) and to show them on a simple website. I'm getting easily those datas with commands like $record->getField('FieldName'); My problem is, there is values I must get in FM wich are in a sort of array, "rubriques multivaluées" in french, "multivalued field" maybe in english ^^. I see a FM script that get the 2nd field like that : fieldName[2] Of course I tried this in my "getField()" method, even fieldName[1], but that return nothing... I can get the first value of this field but not others... Thx for helping !
August 24, 201015 yr Author Newbies oh in fact, I can only do it with the new version of FM server... (i'm on 10 and it's on 11 or something like that...) :)
September 27, 201015 yr In the off chance you haven't figured this out yet (and for folks searching down the road), you need to set the second parameter of getField to the index of the repeating field. i.e. $record->getField('FieldName', 2); To get the second repeating value from the field
Create an account or sign in to comment