The first parameter of the lineitemarray( function is the field name. The documentation says that this field name should be quoted. However, it turns out that Panorama 6 would work even if the field name was not quoted. Panorama X implements lineitemarray( as a custom function, and doesn't work if the field name is not quoted.
Two possible fixes:
- Add a new tokenname( function that uses the [Operand getTokenName] method to extract the field name even if it isn't quoted, and use that in the custom function. I'm not sure if that will work or not.
- If that doesn't work, the entire function would have to be rewritten from scratch in Objective-C.