Hi Layla,
have you used the code-completion function to write the code. IF Formcalc works fine, then it just has it root at the access of the data.
Please try if you can display the value via an popup using "xfa.host.messageBox"-Function.
And again, make sure you use the code-completion to build the path.
~Florian