Products Downloads


French version


 

The Adelia Web PSEUDO OBJECT is a virtual object that specifies a process associated with an Adelia event. The only way to manipulate it is via methods.

 

 

START_PERIODIC_EVT

Runs a periodic Adelia Web AJAX event. This event is re-run automatically on an indefinite basis at specified time intervals.

 

In order to start an event:

    • The event must be named EVT (name of the event block linked with the virtual object in the 4GL editor), i.e. it must be defined by an ::ADELIA_EVT(objectName) (or ::ADELIA_EVT_NOVALID or ::ADELIA_EVT_UPL) instruction placed in a <SCRIPT> tag.
      Adelia events linked with a Javascript event (e.g. <input type='button' onclick=' ::ADELIA_EVT(MY_OBJ)'/>) cannot be started by the program; such events must be started via the user interface.
    • The event must be an AJAX event (with the :AJAX parameter) for which a timer (:TIMER parameter) has been defined. Example:

<script language="javascript" type="text/javascript">

function foo()

{

   ::ADELIA_EVT(MY_OBJ,:AJAX,:ASYNC,:COMP=1,:TIMER=300MS)

}

</script>

 

Syntax

CALL_METHOD VirtualObjectName START_PERIODIC_EVT EvtName FormName

Parameters
 

ALPHA(128) EvtName

Name of the event that triggered the Adelia event. Force this value to EVT.

 

ALPHA(128) FormName

Name of the form containing the object named VirtualObjectName to be processed.

This parameter is optional. If it is not specified, the first form on the page is used.

If the page is part of a page layout that also contains other forms, you must specify a form name in order to avoid any ambiguity.

Conditions for use None.
 

 

 

STOP_PERIODIC_EVT

Stops a periodic Adelia Web AJAX event from being triggered.

 

In order to start an event:

    • The event must be named EVT (name of the event block linked with the virtual object in the 4GL editor), i.e. it must be defined by an ::ADELIA_EVT(objectName) (or ::ADELIA_EVT_NOVALID or ::ADELIA_EVT_UPL) instruction placed in a <SCRIPT> tag.
      Adelia events linked with a Javascript event (e.g. <input type='button' onclick=' ::ADELIA_EVT(MY_OBJ)'/>) cannot be started by the program; such events must be started via the user interface.

    • The event must be an AJAX event (with the :AJAX parameter) for which a timer (:TIMER parameter) has been defined. Example:

<script language="javascript" type="text/javascript">

function foo()

{

   ::ADELIA_EVT(MY_OBJ,:AJAX,:ASYNC,:COMP=1,:TIMER=300MS)

}

</script>

If any identical processes are also pending processing (in the browser queue), they will be canceled.

 

Syntax

CALL_METHOD VirtualObjectName STOP_PERIODIC_EVT EvtName FormName

Parameters
 

ALPHA(128) EvtName

Name of the event that triggered the Adelia event. Force this value to EVT.

 

ALPHA(128) FormName

Name of the form containing the object named VirtualObjectName to be processed.

This parameter is optional. If it is not specified, the first form on the page is used.

If the page is part of a page layout that also contains other forms, you must specify a form name in order to avoid any ambiguity.

Conditions for use None.
 

 

↑ Top of page