I'm new with LiveCode and I'm developing my first app that should read a table from an oracle DB an place the result on a table field or a data grid.
So first of all I have a problem with connection.
Thi is the code of my first card:
Code: Select all
/*this is the connection string I use in another software
Provider=OraOLEDB.Oracle;Data Source=ORA10G_UX;User ID=myusername;Password=mypassword; */
global tSQL
on Opencard
put revOpenDatabase("oracle",OraOLEDB.Oracle, ORA10G_UX, myusername,mypassword) into connID
put "SELECT * from PROG_MAN " into tSQL
put revDataFromQuery(tab,return,connID,tSQL) into tRecords
end Opencard
card "card id 1002": execution error at line n/a (External handler: exception) near "revdberr,invalid connection id"
What's wrong in my code?
Then I place this code in my table script but obviously nothing appear due to connection error.
Code: Select all
on mouseup
global tRecords
put tRecords into test
put test into field "Table field"
end mouseup