I've just installed acrobat 8.1
I want to work with forms and database connection (sql server).
Connection is ok, SQL request is ok.
my scrip is
[color=#FF0000]
try {
connect = ADBC.newConnection("liaisonODBC");
if (connect == null) throw "Impossible de se connecter";
statement = connect.newStatement();
if (statement == null) throw "Impossible objet statement";
} catch(e) {
app.alert(e);
}
statement.execute('SELECT pa_nom as nom FROM "my database"WHERE PA_ID=11')
statement.nextRow();
var row = statement.getRow();
this.getField("nom")= row.nom.value;
[/color]
the message in the console is :
this.getField is not a function
24:XFA:topmostSubform[0]:Page1[0]:nom[0]:click
I dont understand why ?
on my computer there is not global.js or config.js files is it normal ?
this.getField("nom").value = row.nom.value;
George Kaiser