Modeling Services > Rogue Wave Script Integration > Accessing Server Objects from Scripts > Accessing Server Object Attributes
 
Accessing Server Object Attributes
All the attributes declared to the server model interpreter are Rogue Wave Script properties of the Rogue Wave Script object.
Example
var network = new Network();
network.identifier = "MyNetwork";
When you set a value to an attribute whose type is a user-defined type, this value is built from a string before it is assigned. It is therefore assumed that the user-defined type can be built from a string representation. You must therefore provide a constructor that takes an IlsString instance as its argument.
You can acces all the attributes that have been declared to the server model interpreter for your type, as well as all the inherited attributes that were declared for the super type. The inheritance relationship must be declared to the server model interpreter. See the macro ILS_OBJECT1_BEGIN in the Rogue Wave Server Reference Manual and “Managing Inheritance”. for more information.

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.