DesignerJSClass Meta-Tag
See Also: Class Meta-Data Tags
Purpose
Used by the Studio to determine the JavaScript class name that will be used to model the class in the WebApp Designer.
Syntax
{ DesignerJSClass={JavaScriptEngineClassName} }
Where { JavaScriptEngineClassName } must belong to one of the classes in the standard JavaScript engine class library, e.g., df.WebButton.
Use
In order to protect the Studio from executing “unknown” JavaScript code, the WebApp Designer will ignore any JavaScript subclass that you may create.
The Studio uses the DesignerJSClass meta tag to determine which JavaScript class to use in the WebApp Designer to represent each class. This value must be one of the standard classes in the DataFlex JavaScript engine.
Normally, you will never need to set this meta-tag as your subclass will inherit the DesignerJSClass setting from its superclass. The WebApp Designer, therefore, will model your JavaScript subclass using the nearest superclass that belongs to the standard JavaScript engine class library.
Example
The example below demonstrates a new web form class declaration that references a new JavaScript class (“my.SpecialForm”) that is unknown to the Studio’s WebApp Designer. In this case, it is necessary to declare a DesignerJSClass meta tag to instruct the Studio to use the standard df.WebForm JavaScript class to represent this class in the WebApp Designer.
{ DesignerJSClass=df.WebForm }
Class cMySpecialForm is a cWebBaseForm
Procedure Construct_Object
Forward Send Construct_Object
Set psJSClass to “my.SpecialForm”
End_Procedure
End_Class