Chris
10/20/2020, 10:47 PMbattk
10/20/2020, 10:49 PMChris
10/20/2020, 11:02 PMbattk
10/20/2020, 11:10 PMChris
10/21/2020, 5:08 PMbattk
10/21/2020, 5:11 PMbattk
10/21/2020, 5:12 PMChris
10/21/2020, 6:07 PMundefined
back from the return new lib1();
statement.Chris
10/21/2020, 6:08 PMvar lib = loader.newInstance('myType');
comes back undefined
even though it’s clearly there in the loader method. I don’t get it…battk
10/21/2020, 6:19 PMChris
10/21/2020, 7:55 PMdefine({
newInstance: function (type) {
switch (type) {
case 'makeKeyFile':
require(['/SuiteApps/com.sample.app/lib/create_key'],
function (createKey) {
return createKey;
// also tried return new createKey();
});
break;
case 'lib2':
require(['/lib2'], function (lib2) {
return new lib2();
});
break;
default:
return null;
}
}
});
Chris
10/21/2020, 7:55 PMvar createKey = loader.newInstance('makeKeyFile');
battk
10/21/2020, 10:21 PMbattk
10/21/2020, 10:28 PMbattk
10/21/2020, 10:29 PMbattk
10/21/2020, 10:30 PMbattk
10/21/2020, 10:32 PMbattk
10/21/2020, 10:36 PMChris
10/21/2020, 10:39 PMChris
10/21/2020, 10:41 PMbattk
10/21/2020, 10:42 PMChris
10/21/2020, 10:43 PMChris
10/21/2020, 10:55 PM