Setting License Key in Vue2 & Wijmo 5.20181.436

Posted by: venkata.vimjam on 1 June 2018, 12:30 am EST

    • Post Options:
    • Link

    Posted 1 June 2018, 12:30 am EST

    How can i set the license key to the grid ? I tried wjcCore.setLicenseKey(“Key”) but its not working.

    Additional details -

    Wijmo was installed using npm manager.

    Wijmo Version : 5.20181.436. Grid is initialized using code.

    VueJs2 Component style class.

    import * as wjcCore from “/node_modules/wijmo/wijmo”;

  • Posted 4 June 2018, 12:32 am EST

    Hi,

    It should be as following:

    
    /** main.js */
    import * as wjcCore from "wijmo/wijmo";
    
    wjcCore.setLicenseKey(key);
    

    ~Manish

  • Posted 6 June 2018, 1:42 am EST - Updated 3 October 2022, 7:30 am EST

    Tried that, it did not work.

  • Posted 7 June 2018, 12:23 am EST

    Hi Venkata,

    We are sorry, we are unable to replicate the issue at our end with following code snippet in main.js file.

    Please share the issue you are facing while setting license for application.

    
    import Vue from 'vue'
    import App from './App'
    import router from './router'
    import 'wijmo/wijmo.vue2.grid'
    import * as wjCore from 'wijmo/wijmo'
    Vue.config.productionTip = false
    wjCore.setLicenseKey('****DistributionKey***')
    /* eslint-disable no-new */
    new Vue({
      el: '#app',
      router,
      components: { App },
      template: '<App/>'
    })
    
    
    

    ~Manish

  • Posted 19 June 2018, 4:52 pm EST

    I had similar issue because I didn’t know I need to create distribution key.

  • Posted 21 June 2018, 12:25 am EST

    Hi,

    Yes, you required a distribution key for your application domain.

    Please let us know for further inquiries.

    ~Manish

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels