Class namespace

In SmartClient.js 8 is it possible to have you own class namespace?

So instead of creating isc.MyClass, could I do myApp.MyClass? And if so, with multiple levels as well, thus myApp.employees.Search.

We’ve got a similar requirement, in that we would prefer to define our classes in our corporate namespace (e.g. alu.ClassName), rather than the ‘isc’ namespace.

This doesn’t appear to be possible with SmartClient 8.

Are there any future plans to add namespace support to SmartClient?

You can already do this:

window.myNS = {};
myNS.MyClass = isc.defineClass("myNS_MyClass");
myNS.MyClass.create({...})

Just remember that for settings like “editorType” you’ll need to use the “myNS_MyClass” version of the className.

Thanks very much. That’s exactly what I’m looking for.