This is a migrated thread and some comments may be shown as answers.

SqlLite 1.0 plugin emulator Icenium 1.9

4 Answers 37 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Marco
Top achievements
Rank 1
Marco asked on 05 Nov 2013, 11:07 AM
Dear Telerik,
with the new version of Icenium 1.9 and the new SQLite Integrated plugIn the following code

if (window.sqlitePlugin !== undefined) {
     console.log("plugin opening");
     app.db = window.sqlitePlugin.openDatabase({name:"termo1",bgType:1});
}
else {
    console.log("normal opening");
    app.db = window.openDatabase(this.dbName, this.dbVersion, this.dbDisplayName, this.dbSize);
}

is not working anymore since also in the emulator the window.sqlitePlugin is defined.

Can you please help me solving this issue?

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 06 Nov 2013, 08:00 AM
Hello Marco,

The very same code is used in our SqLite sample demo app which you can clone and run locally on your end. In Icenium v.1.9 we introduced a breaking change related to the handling of the integrated plugins, namely:

"Icenium no longer lists newly enabled integrated plugins in the `Plugins` folder in the Project Navigator. If you want to update the version of an integrated plugin that has been added to your project in an earlier version of Icenium, delete its files and folders from the Plugins folder in the Project Navigator and enable the plugin from the Project Properties."

Give this a try and let us know if you're still having problems.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Marco
Top achievements
Rank 1
answered on 06 Nov 2013, 12:57 PM
Dear Steve,
your sample uses the Sqlite plug-in 0.0.4
I cloned your sample from Icenium today. With this version the code that i posted works perfectly but since you updated icenium to the version 1.9 with the new Sqlite plug-in 1.0.0 I updated my project to use it and the code does not work anymore.
Your sample project seams not to be updated with the new integrated plug-in system.
0
Steve
Telerik team
answered on 08 Nov 2013, 01:50 PM
Hi Marco,

You're correct! I've updated the sample to work with the latest version of the built-in SqLite plugin, please clone it again and let me know if further help is needed.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Marco
Top achievements
Rank 1
answered on 11 Nov 2013, 08:09 AM
Dear Steve,
the new code works perfectly. 

Thank you
Tags
General Discussion
Asked by
Marco
Top achievements
Rank 1
Answers by
Steve
Telerik team
Marco
Top achievements
Rank 1
Share this question
or