Question Robert Shoults · Apr 3, 2019

How do I programmatically create a web application definition?

I have a need to dynamically create a web application definition in a namespace using ObjectScript.  I am having trouble finding a cache class or routine that let's me do this. 

Thanks

Comments

Dmitry Maslennikov · Apr 3, 2019

Web applications defined in Security.Applications class in %SYS namespace.

zn "%SYS"
set props("Path") = "/opt/my/app/csp"
set props("Description") = "My Cool Application"
do ##class(Security.Applications).Create("/csp/test", .props)
0
Evgeny Shvarov  Apr 27, 2019 to Dmitry Maslennikov

Hi @Dmitry Maslennikov ! And how to make this app a default app for the namespace and also enable IRIS Analytics (DeepSee) in it?

0
Eduard Lebedyuk · Apr 3, 2019

If you're doing provisioning, consider using %Installer. It allows creation of Web Applications, among other things.

0