Websydian v6.1 online documentationOnline documentation - WebsydianExpress v3.5

Page Structure

Overview

This function is used to maintain the structure of a page. The structure is the overall definition of the page and describes the contents of the page. A template can be created based on the structure.

You can read more about pages and templates here.

Page elements are grid, fields and events. Only one grid can be defined per page.

Tree structure page

The structure are constructed with the page elements, below you see a table of the icons used for the page elements.

Icons for page element types

Icon Element type
Page
Grid
Field - output (used in page and grid area)
Field - input (used in events)
Event

Add

To add a new page element to the structure, you must select the page element that should contain the new page element and then press "Add".

This will take you to the function "Page structure - Select element type" where you must decide which element type your new page element is. You are only shown allowed page element types. Which means that it is not possible to add a page element that does not make sense.

To add a grid you must enter the number of rows in the grid. The number of columns are decided by the fields in the grid.

To add a field you must enter the Replacement marker name which is the name used when referring to the field in the RPG program.

Then there is the Field label which is the name of the field in the structure and also the label for the field on the screen. Either as a label before the field (page area) or as a top label of a column (grid area).

Then you can enter test data for your own test.

For fields in events (input fields) you must also enter a field length.

To add an event you must enter the name of the event which is the event id, that are used internally in programs. It is also the name of the event handler, which is an RPG program.

The Event label is the text that is shown on the button or the link on the screen - it must be entered.

You must also decide whether the event is a link or a button.

Update

To update a page element, select the page element and press "Update". On the update page you can update information about the page element.

Remove

When you press "Remove" you will be asked to confirm the deletion. If you confirm the page element will be deleted. All page elements under the chosen page element will also be deleted.

Templates created based on the actual page are not deleted.

Pages

Pressing "Pages" leads you to the Page Modeler.

Create/View template

Pressing "Create/View template" leads you to the Create template function, where you can enter the name for the template that will be created based on this page. As default the page name will be suggested.

The name of the folder where the template will be saved can also be selected.

If a template with that name already exists you can confirm that the new template should overwrite the existing template.

Developer info

Pressing "Developer info" shows a page with information about the page. All names of fields and events are shown.

It is possible to print the developer information.

This page shows exactly which fields the developer can populate in the RPG program generating the final HTML page based on the template.