Hi,
I've got an Oracle DB with blob's in which SQL statements are stored.
I want to retrieve the SQL from the Blob and then run the SQL with getDateSetByQuery from Servoy. But I'm getting the following error:
org.mozilla.javascript.PropertyException: Constructor for "TypeError" not found.
The way I retrieve the text from the blob is the following:
var query = new java.lang.String(sql); //sql is the blobfield in the DB
I figured out that it's a type conversion error, because if I display the the var query in an infodialog, I see the text correct.
I then tried doing the following, just to test:
application.setClipboardContent(new java.lang.String(sql))
var query = application.getClipboardString();
After setting the text from the blob into the clipboard and then retrieve it again into var query, when I use var query in the getDateSetByQuery, all works fine.
How can I get this to work without copying and retrieving to/from the clipboard?
tnx in advance...
Paul