Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5162 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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 !

  • 1 month later...
Posted

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

This topic is 5162 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.