Newbies abeetlott Posted August 24, 2010 Newbies Posted August 24, 2010 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 !
Newbies abeetlott Posted August 24, 2010 Author Newbies Posted August 24, 2010 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...) :)
Baloo Posted September 27, 2010 Posted September 27, 2010 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
Recommended Posts
This topic is 5509 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now