1 Reply Latest reply on Nov 3, 2010 11:10 AM by SForrest96

    xfa-object and alerts

    ChristianPam

      Hello,

       

      i want to check some fields before the user sets its signature.

       

      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?