Property reference

glide.packages_call.add_new

The glide.packages_call.add_new property determines whether to prepend 'new' when generating script changes for GlideScriptable alternatives. Admins should care about this setting for improving code readability during object instance construction.

Default
true
Type
boolean
Application
Global

Key questions about this property

The answers below summarize the purpose, scope, default effect, and review scenarios for this property.

What does it do? This property controls the inclusion of 'new' in proposed script changes for GlideScriptable objects, enhancing clarity in code.
What area does it affect? Script generation
What does the default mean? The default value is "true", which means this behavior is enabled by default.
When should you review it? Review this property when adjusting script readability preferences or during code refactoring.

Out of the box property record

Raw metadata from the property record.

Property name glide.packages_call.add_new
Sys ID 19d225015f123000a9ad2572f2b4774b
Type boolean
Application Global
Default value true
Description When generating a proposed script change to replace Packages calls with GlideScriptable alternatives, add "new" to improve readability when a new object instance is being constructed. e.g., if true, "var d = Packages.com.glide.glideobject.GlideDateTime();" will generate a proposed change of "var d = new GlideDateTime();" If false, the proposed change would be "var d = GlideDateTime();"
Updated 2012-12-12 18:40:28

Sources

Official references and nearby text excerpts where this property appears.

More in glide (other)

Other properties in the same namespace.

All 384 properties in glide (other) →