Hi Pekka,
I posted a blog long time ago that explains how to access data nodes. Accessing from fields is very similar.
Accessing data nodes in SAP Interactive Forms | SCN
For form fields "datasets" needs to be replaced with "form" and "value" with "rawValue".
Regards,
Juergen