Hello everyone I have numerous PDF files that are Template files that have data pushed into them when opened from vb application
When I have the following javascript:
importTextData("/c/cu00.inf",0);
importTextData("/c/laser.dau",0);
for(var i=0;i<this.numFields;i++)
{var r=this.getNthFieldName(i)
var f=this.getField(r)
f.setAction("MouseExit",'this.dirty=false')
};
The script imports the data fine
But when I modify the script to the following:
if (AP1_FULL_NAME.Value = "")
{importTextData("/c/cu00.inf",0);
importTextData("/c/laser.dau",0);
for(var i=0;i<this.numFields;i++)
{ var r=this.getNthFieldName(i)
var f=this.getField(r)
f.setAction("MouseExit",'this.dirty=false')
};}
else {
};
It fails with the following reason:
ReferenceError: AP1_FULL_NAME is not defined
1age:Open
Problem is this field does exist.
If you need more clarification let me know.
Chris
When I have the following javascript:
importTextData("/c/cu00.inf",0);
importTextData("/c/laser.dau",0);
for(var i=0;i<this.numFields;i++)
{var r=this.getNthFieldName(i)
var f=this.getField(r)
f.setAction("MouseExit",'this.dirty=false')
};
The script imports the data fine
But when I modify the script to the following:
if (AP1_FULL_NAME.Value = "")
{importTextData("/c/cu00.inf",0);
importTextData("/c/laser.dau",0);
for(var i=0;i<this.numFields;i++)
{ var r=this.getNthFieldName(i)
var f=this.getField(r)
f.setAction("MouseExit",'this.dirty=false')
};}
else {
};
It fails with the following reason:
ReferenceError: AP1_FULL_NAME is not defined
1age:Open
Problem is this field does exist.
If you need more clarification let me know.
Chris