SqlLite 1.0 plugin emulator Icenium 1.9

5 posts, 0 answers
  1. Marco
    Marco avatar
    7 posts
    Member since:
    Nov 2013

    Posted 05 Nov 2013 Link to this post

    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?
  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 06 Nov 2013 Link to this post

    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.
  3. Marco
    Marco avatar
    7 posts
    Member since:
    Nov 2013

    Posted 06 Nov 2013 Link to this post

    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.
  4. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 08 Nov 2013 Link to this post

    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.
  5. Marco
    Marco avatar
    7 posts
    Member since:
    Nov 2013

    Posted 11 Nov 2013 Link to this post

    Dear Steve,
    the new code works perfectly. 

    Thank you
Back to Top