Book a Demo

Author Topic: Setting namespace root from javascript  (Read 3419 times)

Thomas Arnbjerg

  • EA User
  • **
  • Posts: 88
  • Karma: +0/-0
    • View Profile
Setting namespace root from javascript
« on: June 02, 2023, 07:09:00 pm »
Hi all,

Does anyone know how to set a newly created package as namespace root from JavaScript?


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Setting namespace root from javascript
« Reply #1 on: June 02, 2023, 08:34:56 pm »
t_package.namespace = 1
Not sure if there's  property with the same name. Give it a try.

q.

P.S. It's IsNamespace and a boolean.
« Last Edit: June 02, 2023, 08:37:06 pm by qwerty »

Thomas Arnbjerg

  • EA User
  • **
  • Posts: 88
  • Karma: +0/-0
    • View Profile
Re: Setting namespace root from javascript
« Reply #2 on: June 02, 2023, 10:22:52 pm »
Thanks - It worked.
Setting the package property 'IsNamespace' to 1. Marks the package a namespace root (refresh the project browser to see this).