Expand my Community achievements bar.

xfa-object and alerts

Avatar

Former Community Member

Hello,

i want to  check some fields before the user sets its signature (he or she enters  the element with the mouse, the active cursor is in an empty field).

I've alreay written some code, but how ever there is a big unknown difference:

(string is the name of the field)

This codesnippet returns the correct value of the obj.

obj = xfa.form.topmostSubform.Page1.resolveNode(string);
app.alert({cMsg:obj});   
value = obj.rawValue;
app.alert({cMsg:value});

This codesnippet returns null.

obj = xfa.form.topmostSubform.Page1.resolveNode(string);

//app.alert({cMsg:obj});

value = obj.rawValue;
app.alert({cMsg:value});

Can anyone tell me where is the problem and how to solve it?

Probably i have to cast the object? but how can i do it?

0 Replies