# Create Base Webster+ Page(s)

> Source: https://manual.pvxplus.com/nomads-graphical-application/nomads-development/library-object-selection/create-base-webster-pages

The **Create Base Webster+ Page(s)** utility is the first step in converting existing NOMADS panels into Webster+ HTML pages in situations where an existing application is being moved to a Web environment using Webster+.

Where possible, information from the screen library is converted to Webster+ **[Short Codes](https://manual.pvxplus.com/webster/short-codes)**. However, not everything that is supported in NOMADS has an existing short code or option in Webster+.

The utility creates ***both*** an HTML file ***and*** a PxPlus program for every panel converted. The HTML file is located in the **[Webster+ Pages Directory](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/library-object-selection/menu-options#webster)** defined for the current screen library. The program's location is determined according to the **PREFIX** rules currently in effect.

Important Note:

The HTML pages and programs that are created are a *starting point only* and will require editing to complete functioning Webster+ pages.

*(The Create Base Webster+ Page(s) utility was added in PxPlus 2025.)*

To invoke this utility, use one of the following methods:

| **Location** | **Method** |
| --- | --- |
| From **[NOMADS Library Object Selection](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/library-object-selection/overview)** | Select *Webster+ > Create Base Webster+ Page(s)* from the top menu bar.<br>Note:  <br>This menu option is enabled only when a Webster+ *pages* directory has been defined.  <br>  <br>This is done by selecting the [Define Webster+ Pages Directory](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/library-object-selection/menu-options#webster) option from the Webster+ menu. |
| From **[NOMADS Library Object Selection](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/library-object-selection/overview)** | Select an individual *Object Name* in the Object List. Then, right click to display the popup menu. Select the *Create Base Webster+ Page* option. |

If this utility is accessed from the right click popup menu, only the selected panel is converted, and the conversion happens without displaying an additional dialog. When the conversion is completed, a message box displays.

***Example:***

![](https://manual.pvxplus.com/migration-assets/1bf9ee518abfcaaf52e9679241928408ca5c5deab20fccf95fa464f4ea2464bf.jpg)

If the utility is accessed from the *Webster+* menu at the top, the **Create Base Webster+ Page(s)** window displays.

![](https://manual.pvxplus.com/migration-assets/940970a85b74a4e9ccac796f1f6a3ab82911d6fc09b5c863485d650e312cb0a6.jpg)

This window consists of the following:

|  |  |
| --- | --- |
| *Screen Library* | Displays the path to the current screen library and is locked for editing. |
| *Webster+ Pages Directory* | Displays the Webster+ **p*ages*** directory defined for the screen library and is locked for editing. |
| *(Objects Grid)* | All of the Dialog and Window objects from the screen library, ***except*** for those last generated as File Maintenance panels, are loaded into the grid. |
| *Convert (Check Boxes)* | In the *Convert* grid column, select the check box beside the NOMADS Object Name to be converted to Webster+. A single check box or multiple check boxes can be selected in random or consecutive order.<br>To select ***all*** of the check boxes, click the *Select All* check box in row 1. |
| *Convert* | Button that is used to convert the selected Object Names. When the conversion is completed, a message displays to indicate the total number of panels that were converted. |
| *Exit* | Exits the utility. |

## What is Converted for the HTML Pages?

Every .HTML page created by the **Create Base Webster+ Page(s)** utility will share some common code at the beginning to specify the title (the **[\[ttl\]](https://manual.pvxplus.com/webster/short-codes#ttl)** short code) and the program associated with the page (the **\[form program =xxxxxx.wbs\]**).

Below this section, the HTML page contains short codes for the various object types on the panel.

**On Exit** logic defined for the NOMADS Panel Header is ***not*** converted.

The converted HTML file ends with the **[\[/form\]](https://manual.pvxplus.com/webster/short-codes#form)** short code.

***Which Control Types are converted?***

This table lists the control types that are converted and provides additional information about the conversion.

| **Control Type** | **Conversion Information** |
| --- | --- |
| **Common to Multiple Types** | Foreground and Background control colors are converted using the **[text_xxxxx](https://manual.pvxplus.com/webster/webster-defined-classes#text)** and **[fill_xxxxxx](https://manual.pvxplus.com/webster/webster-defined-classes#fill)** classes.<br>Width and Height approximations are converted using the **[size](https://manual.pvxplus.com/webster/short-code-options#size)** option.<br>*Initially Disabled* attribute is usually converted using the **[disabled](https://manual.pvxplus.com/webster/short-code-options#disabled)** option, ***except*** where mentioned below.<br>Tips are converted using the **[tip](https://manual.pvxplus.com/webster/short-code-options#tip)** option.<br>Font and Font Size are converted by setting **[font_xxxxx](https://manual.pvxplus.com/webster/webster-defined-classes#font_x)** classes.<br>The Bold Font attribute is converted via the **[bold](https://manual.pvxplus.com/webster/webster-defined-classes#bold)** class.<br>Control Properties defined as expressions are evaluated prior to creating the HTML page.<br>Controls with **Button Pressed** or **On Change** logic are given events (named for the control name), referencing methods created in the **.wbs** program; e.g. event=MULTI_LINE\_!\_CHANGED. |
| **[Buttons](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/button-control/overview)** | Conventional button controls are converted using the **[\[button\]](https://manual.pvxplus.com/webster/short-codes#button)** short code, and Web-Style buttons (hyperlinks) are converted using the **[\[link\]](https://manual.pvxplus.com/webster/short-codes#link)** short code.<br>Images are supported using the **[\[symbol\]](https://manual.pvxplus.com/webster/short-codes#symbol)** short code.<br>Drop buttons are supported using the **[dropmenu](https://manual.pvxplus.com/webster/short-code-options#dropmenu)** option with a corresponding **[\[menu\]](https://manual.pvxplus.com/webster/short-codes#menu)** short code and separate events for each **[menu](https://manual.pvxplus.com/webster/short-code-options#menu)** option. |
| **[Charts](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/chart-control/chart)** | Only Charts that are loaded with the **[SmartLoad](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/chart-control/chart#chartproperties)** option will be converted to Webster+ using the **[\[chart\]](https://manual.pvxplus.com/webster/short-codes#chart)** short code.<br>Smart Load charts are converted using the **[query](https://manual.pvxplus.com/webster/short-code-options#query)** and optional **[queryif](https://manual.pvxplus.com/webster/short-code-options#queryif)** options.<br>If **Conditional Trigger Test** logic references a control on the panel, that control must have **On Change** logic defined to trigger an event in order to update the page display.<br>Support for the **[event](https://manual.pvxplus.com/webster/short-code-options#event)** option. |
| **[Check Boxes](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/check-box-and-tri-state-control/overview)** | Converted using the **[\[checkbox\]](https://manual.pvxplus.com/webster/short-codes#checkbox)** short code.<br>Images are ***not supported***.<br>Support for the **[onright](https://manual.pvxplus.com/webster/short-code-options#onright)**, **[off](https://manual.pvxplus.com/webster/short-code-options#off)**, **[on](https://manual.pvxplus.com/webster/short-code-options#on)** and other options. |
| **[Drop Boxes](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/drop-box-control/drop-box-properties)** | Converted using the **[\[list\]](https://manual.pvxplus.com/webster/short-codes#list)** short code with the **[size=](https://manual.pvxplus.com/webster/short-code-options#size)** option only specifying a width.<br>Support for Data Classes defined as drop boxes.<br>Support for **[Dynamic Data Classes](https://manual.pvxplus.com/data-dictionary/data-classes/dynamic)** using the **[Load from File](https://manual.pvxplus.com/data-dictionary/data-classes/dropbox#load_file)** option for List Values.<br>Note:  <br>In Webster+, drop boxes using Dynamic Data Classes will be sorted alphabetically by return value (value or translation value).<br>Smart Load drop boxes are converted using the **[query](https://manual.pvxplus.com/webster/short-code-options#query)** and optional **[queryif](https://manual.pvxplus.com/webster/short-code-options#queryif)** options.<br>Initially disabled drop boxes are converted using the **[locked](https://manual.pvxplus.com/webster/short-code-options#locked)** option.<br>Data values use the **[\[data\]](https://manual.pvxplus.com/webster/short-codes#data)** short code and the **[rowsep](https://manual.pvxplus.com/webster/short-code-options#rowsep)** and **[colsep](https://manual.pvxplus.com/webster/short-code-options#colsep)** options. |
| **[Fixed/Fonted Text](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/text-control/text)** | Converted using the **[\[show\]](https://manual.pvxplus.com/webster/short-codes#show)** short code.<br>**[Align](https://manual.pvxplus.com/webster/short-code-options#align)** option supported as "left" *(default)*, "right" or "center". |
| **[Folders](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/folder-controls/folder-properties)** | Created using the **[\[folder\]](https://manual.pvxplus.com/webster/short-codes#folder)** short code and class of either "web" or "bar" for the main panel.<br>Panels comprising the folder tabs are converted using **[\[tab\]](https://manual.pvxplus.com/webster/short-codes#tab)** short codes.<br>A panel with a folder and three tabs will be converted into one HTML file with one associated **.wbs** program even if the tab panels were not selected for conversion. |
| **[Frames (Boxes)](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/frame-control/frame)** | Only Frame controls with a height of 1 line or less are converted to Webster+ as horizontal lines spanning the entire (whole) section, regardless of the width defined for the NOMADS control. |
| **[Grids](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/grid-control/grid-properties)** | Created using the **[\[grid\]](https://manual.pvxplus.com/webster/short-codes#grid)** short code.<br>Program option to point to a method created in the **.wbs** program to load the grid data into a memory file.<br>Support for grid header definitions using the **[\[col\]](https://manual.pvxplus.com/webster/short-codes#col)** short code with **[ttl](https://manual.pvxplus.com/webster/short-code-options#ttl)**, **[width](https://manual.pvxplus.com/webster/short-code-options#width)**, **[align](https://manual.pvxplus.com/webster/short-code-options#align)** and **[source](https://manual.pvxplus.com/webster/short-code-options#source)** options.<br>Support for the **[gridlines](https://manual.pvxplus.com/webster/short-code-options#gridlines)** option. |
| **[Horizontal Line Shapes](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/shape-control/shape)** | Converted as horizontal lines spanning the entire (whole) section, regardless of the width defined for the NOMADS control. |
| **[Images](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/image-control/image)** | Converted using the **[\[image\]](https://manual.pvxplus.com/webster/short-codes#image)** short code.<br>Support for the **[file](https://manual.pvxplus.com/webster/short-code-options#file)** and **[align](https://manual.pvxplus.com/webster/short-code-options#align)** options.<br>All images are scaled to fit within the designated size in Webster+. |
| **[List Boxes](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/list-box-controls/list-box-type)** | Converted using the **[\[list\]](https://manual.pvxplus.com/webster/short-codes#list)** or **[\[tree\]](https://manual.pvxplus.com/webster/short-codes#tree)** short code with the **[size=](https://manual.pvxplus.com/webster/short-code-options#size)** option specifying both width and height.<br>Support for Data Classes defined as list boxes.<br>Support for **[Dynamic Data Classes](https://manual.pvxplus.com/data-dictionary/data-classes/dynamic)** using **[Load from File](https://manual.pvxplus.com/data-dictionary/data-classes/listbox#load_file)** option for List Values.<br>Note:  <br>In Webster+, list boxes using Dynamic Data Classes will be sorted alphabetically by return value (value or translation value).<br>Smart Load list boxes converted using the **[query](https://manual.pvxplus.com/webster/short-code-options#query)** and optional **[queryif](https://manual.pvxplus.com/webster/short-code-options#queryif)** options.<br>If **Conditional Trigger Test** logic references a control on the panel, that control must have **On Change** logic defined to trigger an event in order to update the page display.<br>Column header data is converted using the **[\[col\]](https://manual.pvxplus.com/webster/short-codes#col)** short code with the **[ttl](https://manual.pvxplus.com/webster/short-code-options#ttl)**, **[align](https://manual.pvxplus.com/webster/short-code-options#align)** and **[source](https://manual.pvxplus.com/webster/short-code-options#source)** options.<br>Initially disabled list boxes are converted using the **[locked](https://manual.pvxplus.com/webster/short-code-options#locked)** option.<br>Data values use the **[\[data\]](https://manual.pvxplus.com/webster/short-codes#data)** short code and the **[rowsep](https://manual.pvxplus.com/webster/short-code-options#rowsep)** and **[colsep](https://manual.pvxplus.com/webster/short-code-options#colsep)** options.<br>Tree view list boxes that are ***not*** Smart Controls are converted using a **[program](https://manual.pvxplus.com/webster/short-code-options#program)** option to point to a method created in the **.wbs** program to load the tree view data into a memory file. |
| **[Multi-Lines](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/multi-line-control/multi-line-properties)** | Converted using the **[\[input\]](https://manual.pvxplus.com/webster/short-codes#input)** short code.<br>Support for **[format](https://manual.pvxplus.com/webster/short-code-options#format)**, **[default](https://manual.pvxplus.com/webster/short-code-options#default)**, **[uppercase](https://manual.pvxplus.com/webster/short-code-options#uppercase)**, **[align](https://manual.pvxplus.com/webster/short-code-options#align)**, **[locked](https://manual.pvxplus.com/webster/short-code-options#locked)**, **[query](https://manual.pvxplus.com/webster/short-code-options#query)** and password options.<br>Numeric multi-lines or those with a format or query defined are all converted as one line high. |
| **[Radio Buttons](https://manual.pvxplus.com/nomads-graphical-application/creating-panel-controls/radio-button-control/overview)** | Converted using the **[\[radio\]](https://manual.pvxplus.com/webster/short-codes#radio)** short code.<br>Images are ***not supported***.<br>Radio buttons sharing the same control name will be converted into separate whole sections (either aligned vertically or horizontally).<br>Support for the **[onright](https://manual.pvxplus.com/webster/short-code-options#onright)** option. |

## What is Not Converted for the HTML Pages?

This table provides information about what is not converted for the HTML pages.

|  |  |
| --- | --- |
| Logic Associated with the Panel Header:  <br>  <br> **Pre-Display** Logic<br>**Post-Display** Logic<br>**On Exit** Logic | If there is logic to be executed at any time while loading the form, this can be accomplished with the use of the **[\[execute\]](https://manual.pvxplus.com/webster/short-codes#execute)** short code.<br>***Example:***<br>\[execute perform "*panel_name.wbs*;*method_name*",err=\*proceed\]<br>***Where:***<br>*panel_name.wbs* is the name of the program created by the utility.<br>*method_name* is the name of the method manually added to that program. |
| Foreground and Background Colors for the Panel | This can be controlled by other means in Webster+. |
| Some Control Types:<br>Shapes other than Horizontal lines<br>Frames with Heights of more than 1 line<br>Horizontal Scrollbars<br>Vertical Scrollbars<br>Charts not loaded via SmartLoad<br>External Controls<br>Embedded Panels | These controls are converted only as red text (using the **[\[show\]](https://manual.pvxplus.com/webster/short-codes#show)** short code) as a reminder to the developer that they were not actually converted to the Webster+ HTML page.<br>The HTML added for these controls should be removed after the conversion is completed. |
| **Post Create** and **When Receiving Focus** Logic for individual controls | While the **On Change** (**When Button Pressed**, **When Entry is Selected** or **On Change**) logic is converted to a Webster+ event, any **Post Create** or **When Receiving Focus** logic defined for a control is ***not*** converted. |
| Precise Screen Layout | Controls within approximately the same line in NOMADS will be converted on the same Webster+ line with ***three*** non-breakable spaces (**&nbsp**) between each control for separation.<br>Each approximate line is surrounded by the **[\[section whole\]](https://manual.pvxplus.com/webster/short-codes#section)** and \[\\section\] short codes.<br>After conversion, the HTML file should be edited by replacing all or some of these whole sections with the appropriate Webster+ section short codes - \[section half\], \[section third\], \[section quarter\] and \[section flex\] - to control the Webster+ screen layout and resizing as required. |
| Background Colors for Check Boxes and Radio Buttons | In NOMADS, these colors control the color of the actual check box or radio button portion of the control only.<br>In Webster+, the **[fill_xxxxx](https://manual.pvxplus.com/webster/webster-defined-classes#fill)** classes control the background color of the entire control; therefore, these colors are ***not*** converted. |
| Visual Classes | Since most appearance-related attributes are controlled via style sheets in the Web, only Foreground and Background colors for controls are converted.<br>All Theme and Visual Class settings are ignored. |
| Initially Hidden Attribute | Webster+ has no hidden option. Controls may be hidden by adding code to the panel's **.wbs** program to use the Hide method in the Webster+ Object. |
| Dependencies | Any dependencies defined for the panel are ***not*** converted. Dependencies may be added to the panel's **.wbs** program by using the **[\[depends\]](https://manual.pvxplus.com/webster/short-codes#depends)** short code. |
| Italics Font Attribute | Webster+ does ***not*** support this via an option. The Font Name specified with the **[font_xxxx](https://manual.pvxplus.com/webster/webster-defined-classes#font_x)** class would need to include 'Italics'. |

See **[Example HTML Page](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/library-object-selection/create-base-webster-pages#Mark1)** below.

See **[Example HTML Page Running in Webster+](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/library-object-selection/create-base-webster-pages#Mark2)** below.

## What is Converted for the PxPlus (.wbs) Program?

The PxPlus programs created contain an initial section common to all programs. The name of the program (determined by the panel name) and the path to the bound HTML page are the only variables. This logic intercepts the events triggered by changes to the Web page and sends program control to the proper methods defined for the events below.

Any button control with **When Button Pressed** logic defined will result in a method called **EVENT_CONTROL_NAME_PRESSED** (where CONTROL_NAME is the name of the button control).

Any other control type with **On Change** logic defined will result in a method called **EVENT_CONTROL_NAME_CHANGED** (where CONTROL_NAME is the name of the control).

All of the above event methods are created as an outline with only the method label, a remark line indicating what happened in NOMADS and the EXIT statement. It will be necessary for the developer to review the NOMADS code indicated and translate it appropriately to work in Webster+.

See **[Example PxPlus .wbs Program](https://manual.pvxplus.com/nomads-graphical-application/nomads-development/library-object-selection/create-base-webster-pages#Mark3)** below.

## Example – NOMADS Panel Conversion

For this example, a simple NOMADS panel (Sample) has been defined as shown below:

![](https://manual.pvxplus.com/migration-assets/7018749e559603bed7680d685a9a44d7b40851153e8ff9cc2879dbe317eefc5c.jpg)

When converting the Sample panel above, an .HTML file (*sample.html*) will be created in the Webster+ ***pages*** directory defined for the screen library, and a *sample.wbs* PxPlus program will be created according to the current **PREFIX** rules.

***Example HTML Page*** *(sample.html)*

```
<!DOCTYPE html>
<html>
<head>
<meta name="author" content="Susan" />
</head>
<body>
[ttl]sample[/ttl]<br>
[form program=sample.wbs]<br>
[section whole]

[show "Sample Panel to be converted to Webster+" size=37.5/1.88 align=left class=font_200,text_#0000ff,fill_default]&nbsp;&nbsp;&nbsp;
[/section]
<br>
[section whole]

[show "Input 1:" size=10 align=left]&nbsp;&nbsp;&nbsp;
[input MULTI_LINE_1$ size=28 event=MULTI_LINE_1_CHANGED]&nbsp;&nbsp;&nbsp;
[/section]
<br>
[section whole]

[show "Input 2:" size=10 align=left]&nbsp;&nbsp;&nbsp;
[input MULTI_LINE_2$ size=33 event=MULTI_LINE_2_CHANGED]&nbsp;&nbsp;&nbsp;
[/section]
<br>
[section whole]

[show "Box/Frame BOXES_1$ not converted" size=15/5 align=center class=text_red bold]&nbsp;&nbsp;&nbsp;
[/section]
<br>
[section whole]

[/section]
[section whole]
[radio RADIO_BUTTON_1$ size=23/2.25 event=RADIO_BUTTON_1_PRESSED]Radio Button 1[/radio]&nbsp;&nbsp;&nbsp;<br>[radio RADIO_BUTTON_1$ size=22/2.25]Radio Button 2[/radio]&nbsp;&nbsp;&nbsp;<br>[radio RADIO_BUTTON_1$ size=22/2.25]Radio Button 3[/radio]&nbsp;&nbsp;&nbsp;<br><br>

[/section]
<br>
[section whole]

[checkbox CHECK_BOX_1$ size=16/2.25 event=CHECK_BOX_1_PRESSED]Check Box[/checkbox]&nbsp;&nbsp;&nbsp;
[/section]
<br>
[section whole]

[show "Locked 1:" size=10 align=left]&nbsp;&nbsp;&nbsp;
[input MULTI_LINE_3 size=15 locked]&nbsp;&nbsp;&nbsp;
[show "Locked 2:" size=10 align=left]&nbsp;&nbsp;&nbsp;
[input MULTI_LINE_4 size=15 locked]&nbsp;&nbsp;&nbsp;
[/section]
<br>
[section whole]

<hr>

[button id=BUTTON_1$ size=14/2.75 event=*close class=text_#ffffff,fill_#0000ff text="Exit"]&nbsp;&nbsp;&nbsp;<br><br>
[/form]
```

***Example HTML Page Running in Webster+***

![](https://manual.pvxplus.com/migration-assets/4c1ad04be0955ec340fcb8320d6e79cfff73a52ac8dc451759db47ff8e60b947.jpg)

After conversion, all of the elements, except the frame control, have been converted and look similar; however, the alignment is not the same since there are only whole sections in use.

The developer would need to edit the HTML files as follows:

- Remove the short codes created for any controls not converted.
- Correct alignment by removing **&nbsp** codes and assign **[\[section\]](https://manual.pvxplus.com/webster/short-codes#section)** short codes for whole, half, third, quarter or flex sections as desired.
- Fine-tune the converted file as needed.

***Example PxPlus* .*wbs Program*** *(sample.wbs)*

```
! sample.wbs - Webster program for sample panel
 ! Initially generated by Create Base Webster+ Page(s) Utility on 15/04/25
 !
  %webster'BindFile$="c:\webster2024\pages/sample.html"
 !
 ! Handle events
  GOTO LNO("EVENT_"+_event$,ERR=*NEXT)
  %webster'msgbox("Invalid event: "+_event$,"Internal Error - "+PGM(-3),"!")
 !
  EXIT
 !
 EVENT_MULTI_LINE_1_CHANGED:
 ! Perform ";change_input_1"
  EXIT
 !
 EVENT_MULTI_LINE_2_CHANGED:
 ! Perform ";change_input_2"
  EXIT
 !
 EVENT_RADIO_BUTTON_1_PRESSED:
 ! Perform ";change_radio_button"
  EXIT
 !
 EVENT_CHECK_BOX_1_PRESSED:
 ! Perform ";change_check_box"
  EXIT
```

## See Also

**[Short Codes](https://manual.pvxplus.com/webster/short-codes)  
[Short Codes Examples](https://manual.pvxplus.com/webster/webster-code-examples)**  
**[Short Code Options](https://manual.pvxplus.com/webster/short-code-options)**  
**[Webster+ General Configuration](https://manual.pvxplus.com/webster/general-configuration)**  
**[Webster+ Setup and Configuration](https://manual.pvxplus.com/webster/webster-setup)**  
**[Webster+ Object Methods](https://manual.pvxplus.com/webster/webster-object-methods)**  
**[Webster+ Object Properties](https://manual.pvxplus.com/webster/webster-object-properties)**  
**[Webster+ Defined Classes](https://manual.pvxplus.com/webster/webster-defined-classes)**
