Migrate a WebPanel to Responsive Web Design without WorkWithPlus

This item shows an example of the effort needed in order to migrate just one Web Panel developed manually with GeneXus (without WorkWithPlus) from HTML design to Responsive Web Design.

Initial Web Form - HTML

The Person transaction's Web Form editor shows the General and Additional Information sections with fields Id, First Name, Last Name, Full Name, Nickname, Birth Date, Hobby, Gender, Company, and Company Name, plus Home Number, Is Home Address Required checkbox, and a Home address multiline box.

At runtime, it looks like this:

The rendered Person form shows tabs General, Additional Information, and Emails under an "Informacion General" header, with input fields for Id (0), First Name (focused), Last Name, Full Name, Nickname, Birth Date, Hobby, Gender dropdown, Company, and Company Id, plus Confirm and Cancel buttons.

Step 1: Empty the Web Form and change the Base Web Form to abstract

In the Person Web Form editor, a right-click context menu is open over the empty form canvas showing Cut, Copy, Paste, Delete, Properties, Table, Format, Heading, Insert Image, Add Layout as Root Form (highlighted), Convert to Abstract Layout, and View Source.

Step 2: Delete the html node and drag tab control

The Person Web Form editor shows an empty three-page tab control (TabPage1, TabPage2, TabPage3) on the canvas, with a red arrow pointing from the Toolbox's Tab item under Containers toward the tab control, illustrating dragging a Tab onto the form.

Step 3: Customize the first tab's caption

The Properties panel for the selected Tab1 control shows Item Control Name TabPage1, Control Name Tab1, Tab Control Class "Tab", Tab Control Visible True, History Management False, and Caption "General"; a red arrow links the TabPage1 tab (renamed to General) on the canvas to the Caption property.​​​​​​​

Step 4: Add a responsive table and drag the attributes of the first tab

The Person Web Form editor's General tab lists fields Person Id, First Name, Last Name, Full Name, Nickname, Gender, Birth Date, Company, and Company Name; red arrows point from the Toolbox's Attribute/Variable and Html items toward the form, indicating controls that can be dragged onto the tab.​​​​​​​

Step 5: Add an html node in order to add a bootstrap panel control

The Person Web Form General tab shows the same field list (Person Id, First Name, Last Name, Full Name, Nickname, Gender, Birth Date, Company, Company Name) with an Html1 control now placed at the bottom of the table ("<Html: Html1>"); a red arrow points from the Toolbox's Html item to this placed control.​​​​​​​

Step 6: Double click in the html node, add panel

The Person Web Form editor shows an empty DVelop_Bootstrap_Panel1 control on the canvas; a red arrow points from the Toolbox's DVelopUserControls section, specifically DVelop.Bootstrap.Panel (highlighted), toward the panel control on the form.​​​​​​​

Step 7: customize the panel title, and add a layout control

Inside the DVelop_Bootstrap_Panel1 control's Cell, a Layout named Layout1 has been added, shown both on the canvas ("Layout: Layout1") and in a structure tree at bottom left (RootForm > Html1 > Layout1); a red arrow points from the Toolbox's Layout item under Containers toward the placed Layout1 control.​​​​​​​

Step 8: Add a responsive table in the layout with 2 columns and add the attributes inside

Inside the Layout1 control, a Table2 grid has been added with attribute/variable fields Created Date, Updated Date (PersonUpdateDate selected), Created User, and Updated User; the bottom-left structure tree shows RootForm > Html1 > Layout1 selected.​​​​​​​

Step 9: Proceed to customize second and third tab in the same way as the first one

The Person form's Additional Information tab shows Person Hair Length and Person Hair Style dropdowns, a Music group with Person Has Favorite Music Band checkbox and Person Favorite Music Band textbox, plus Hobby and Home address fields; multiple red arrows point from Toolbox items (Attribute/Variable, Text Block, Table, Group) toward these placed controls.​​​​​​​

The Person form's Emails tab shows a GRID control (Grid1) with columns Email, Description, and Comments bound to attributes EmailDir, EmailDescription, and EmailComentarios; a red arrow points from the Toolbox's Grid item under Containers toward the grid on the canvas.​​​​​​​

Step 10: Add the actions in an action group

On the Person form's Additional Information tab, a dropdown menu at the top-left action-group bar shows "Add Action Group" highlighted in red (with "Delete Action Group" greyed out below it), above the existing Person Hair Length/Style and Music fields.​​​​​​​

After adding ActionGroup1 to the Person form, a dropdown menu offers Insert Attribute/Variable, Insert Button (highlighted), Insert Image, Insert Text Block, and Insert Group as options to place inside the new action group.​​​​​​​

GeneXus Web Form designer for the Person transaction shows the Additional Information tab with attributes PersonHairLength, PersonHairStyle, PersonHasFavoriteMusicBand, PersonFavoriteMusicBand, PersonHobby, PersonHomeAddress, and PersonHomeTelNumber. Two red boxes highlight the Confirm/Cancel action buttons at the top and the <ActionGroup1> placeholder control at the bottom of the layout.​​​​​​​

Step 11: Customizations for different browser sizes

After migrating the Web Form to Abstract layout, you could configure the specific Responsive Web Design properties:

  • Width of the controls for the different browser's sizes
  • Visible/Hidden of the controls for the different browser's sizes​​​​​​​

Summary:

All these steps were needed in order to migrate just one Web Form from HTML to Responsive Web Design.

So, in order to migrate the whole application you would have to go through this process for each Web Form of the application, which is a tedious, manual and very hard work.