Expand my Community achievements bar.

Attention: Experience League Community will undergo scheduled maintenance on Tuesday, August 20th between 10-11 PM PDT. During this time, the Community and its content will not be accessible. We apologize for any inconvenience this may cause.

function util.scand() and recalculate() it's not working

Avatar

Former Community Member
Hello guys!



I'm designing a dynamic form which I have some tables with text field that need to be filled. In these tables I add rows at run time:



table._row.addInstance(1);

xfa.form.recalculate(1);



And I have another text field which I validate if a date was typed correctly:

var date = this.rawValue;

date = util.scand("yyyy-mm-dd", date );

if (date == null)

{

xfa.host.messageBox("Please enter a valid date.");

}



It was working fine!

But I did another things with this form, like add a data connection with a XML simple data, and applied to a drop-down-list. And defined all the pages of my form as flowed and added contents into subforms. After these modifications, the functions above doesn't work anymore.



When I try to add a row to a table, I get this message:

xfa.form.recalculate is not a function

4:XFA:form[0]:PG1[0]:subfContent[0]:Button1[1]:click



and the function on validate event, I get this one:

string.charAt is not a function



Anyone have an idea?



Thanks in advance.
0 Replies