accessing external packages error

Hi Johan,

I am trying to access external package using the following code;

var result = plugins.dialogs.showQuestionDialog( "", "Are you sure to import the wine list?", "Yes", "No");
if (result == "No") {
   return;
}
if (source == "") return;

var file = java.io.File(source);
var workbook = Packages.jxl.Workbook.getWorkbook(file); //****GETTING AN ERROR
var sheet = workbook.getSheet(0);

I get an error at:
var workbook = Packages.jxl.Workbook.getWorkbook(file);

The error is :
[JavaPackage jxl.Workbook.getWorkbook] is not a function.

This function worked perfectly in the previous version. RC 2.2.xx

I need this to be urgently fixed.

Thanks

Hi,

Fortunately this works in the clients.

Only does not work in the developer.

Thanks

have to check for this (you call a static function with the packages so maybe this is in interperted code not very well supported)

Hi Johan,

The above package & its method work if I download the following jar provided by you seperately and I have copied to the Servoy/lib folder.

http://downloads.servoy.com/downloads/servoy22x/js.jar

I affraid using the above js.jar would screw up things.
But I have not screwed up any thing still.

Please clarify.

Thanks

no you need that new js.jar.
Using the old one will not work.

Ok Thanks!!