Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

ScriptLoader

rajeevhanda
Kilo Expert

I created a UI script in the scoped application as follows:

var sn_cmp = sn_cmp || {};

sn_cmp.PUI = (function() {

        "use strict";

        function AppUI(){

                  g_form.setValue('xyz','xyz');

        }

return {

        AppUI:function(){

                  return AppUI();

        },

type:   "PUI"

};

})();

In the onChange client script, I am calling it using:

ScriptLoader.getScripts('sn_cmp.AppUI.jsdbx',getData);

But still I am getting error in the clone:

1 REPLY 1

shahebaz5
Kilo Contributor

call script in this manner 

ScriptLoader.getScripts(['scripts/get_wsdl_url.js'], function() {  });