SEEWARNING Before creating your site, it is advised to read the documentation:Before beginning.


An EXTEND User action triggers either an action carried out directly by the XTEND server, or a call to a X3 Web service being either a sub-program or an action associated with an X3 object.
The action uses X3 web services when it is associated with an interface.
An action is used to describe the mapping (correspondence) between XTEND entities/fields and groups/setups of an interface upon receipt (valuation of call setups) and issue (process of sent values).
The action is associated with a dynamic link tokeninserted in the HTML page in a button or anchor tag.
The action is triggered by the user's click.

Predefined actions

Detail of predefined actions:

Code

Setups

Dynamic link

Description

ABLKFIRSTPAGE

No

ADLKFIRSTPAGE

Displays the first page of a block
Syntax MyBlock.MyDynamicLink

ABLKNEXTPAGE

No

ADLKNEXTPAGE

Used to display the next page of a block

ABLKPREVPAGE

No

ADLKPREVPAGE

Used to display the previous page of a block

ABLKLASTPAGE

No

ADLKLASTPAGE  

Used to display the last page of a block

ABLKRESTOREMAINCTX

No

To be created

Return to a list without loosing the pagination
Create a dynamic link with the page that contains a block as target page

ABLKSELECT

No

ADLKSELECT

Used to select the line of a block
MyBlock.MyField displays the value of MyField for the selected line

ABLKUNSELECT

No

ADLKUNSELECT

Used to deselect the selected line of a block

ARESTOREFORM

No

ADLKRESTOREFORM

Restores an HTML form with the initial values
Does not take into account the HTML parameter xrc

ARESTORESESSION

No

ADLKRESTORESESSION

Used in the reconnection page (see site record)
Displays the last page opened before closing the browser

ASESSLOGIN  

Yes

ADLKLOGIN

User login
User code (AUSERCODE) and password (APWD) in setup
The interface and the setups mapping remain to be done

ASESSLOGOUT

No

ADLKLOGOUT

Used to logout the user

ASESSSWITCHCOOKIES

No

ADLKSWITCHCOOKIES

Used to exchange the modes 'without cookies' and 'with cookies'
Use the conditioned block ADISPNOCOOKIES
to display the session status with/without cookies

ASESSSWITCHLANG

Yes

No

Change the user language
Language code as a parameter

ASESSSWITCHSITE

Yes

No

Changes site
Codes X3SOLUTION/X3FOLDER/XTENDLANG/XTENDSITE as a setup

ATRACESET

No

ADLKTRACESET 

Update of the XTEND log

SEEINFO In order to run, action AXTDLOGIN must be configured with the login interface you have created for this site.

Prerequisites

SEEREFERTTO Refer to documentation Implementation

Screen management

Header

Tab General

Tab Interface mapping

This tab displays the correspondence (mapping) between the XTEND fields and the setups of the sub-programs or X3 object fields.

Grids

Parameters upon receipt (Entities to Interface)

The grid 'Entities/Setup --> displays the correspondence between the action setups specified previously and the setups of the Web service associated with the interface.

SEEINFO In order to select an action parameter, the entity column should not be valuated.
In that case, the action parameter list is displayed by pressing the F12 key in the 'Field/Setup..' cell

It is also possible to 'map' directly the field of an entity to a Web service setup by specifying the entity code in the column entity.

Parameters upon receipt (Interface to Entities)

The grid 'Interface --> Entities displays the correspondence between the setups of the Web service associated with the interface and the XTEND entities created by the action.

___________________________

During the mapping of an X3 object Web service, setup AMODSTAMP of group ADXTEC contains the TimeStamp (identifier of last modification) of the X3 object.

AMODSTAMP is a supplied field token.

It is used to manage the update conflicts on objects that may take place in Web service mode (asynchronous).

If this setup is sent back to X3, the X3 process compares its value with that of the object stored in the database, and generates an error if these values differ('objet being modified on another workstation').

About Multiple Mapping

The standard mapping (field by field) calls on the declaration of a 4GL setup by field.

In some cases, it is required not to declare a single setup by field, but to group field values in a single 4GL setup:

  • If the number of fields if superior to 50 (HTML form with a lot of entry fields).
    An X3 Web service does not accept more than 60 setups out of which 10 are used by XTEND as technical setups.
  • If the number of fields can be changed by the setups and if no modification of the Web service and the action mapping is required after each change.

GESAYA_1.jpg

XTEND authorizes the use of a single multi-dimensioned 4GL setup to save all the fields values via the columns 'Multi' and 'Index' of the mapping.

The correspondence value/field is defined by the position (index) in the grid.

'Multi' and 'Index' are active only if the interface setup is of dimension >1.

Standard mode (field by field)

Creation of a single mapping line.
The Multi setup has the value 'Yes' to indicate that a field will be created by XTEND entity with the value corresponding to the index of the current line.

The Index setup is not used.

Mode N values of an X3 setup -> N Xtend fields

Creation of as many mapping lines as XTEND fields to value.
The Multi setup has the value 'No' to indicate that it is necessary to enter only one XTEND field with the value of the X3 setup whose index is specified in the Index column.

Mode N Xtend fields -> N values of an X3 setup

Creation of as many mapping lines as values to add to the X3 setup.
The Multi setup has the value 'No' to indicate that it is necessary to enter the grid cell whose index is specified in the Index column with the XTEND field value.

Reports

By default, the following reports are associated with this function :

  PRTSCR : Screen print

This can be changed using a different setup.

Specific Buttons

Validation

This button is used to update the XTEND dictionary in XML format.

The X3WEB server takes into account only the dictionary with this format.

There is one XML file per dictionary.

For instance, the ACT.xml file corresponds to all the web actions for the current web site.

Copy

This button is used to copy a Web action.

Error messages

The only error messages are the generic ones.

Tables used

SEEREFERTTO Refer to documentation Implementation