Link

Syntax

AddClass(name, class_object)

Description

Use this method to add an Application Class object to the JSON Object.

Parameters

Name Description
name Specifies the name of the class that needs to be added as a string.
class_object Specifies the class to add to the JSON Object as an Application Class object.

Returns

None.

Example

Local PTPP_COLLECTIONS:Shortcut &oCref;
&oCref = create PTPP_COLLECTIONS:Shortcut(%Portal, "PT_CHANGE_PASSWORD_GBL");
   
Local PSM_JSON:Object &oObject = create PSM_JSON:Object();
   
&oObject.AddClass("MyClass", &oCref);