Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Importing Data Problem - URGENT

Status
Not open for further replies.

FireFett

Programmer
Mar 31, 2000
42
US
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
1:page:Open

Problem is this field does exist.

If you need more clarification let me know.

Chris
 
FireFett,
What happens if you just retrieve the value in the field mentioned? Does it still create the same error?

Is that field placed in the form multiple times?
Samaba
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top