Hierarchical Editor features (version 7 or lower)

WorkWithPlus for Native Mobile hierarchical editor works for both "Panel" and "Work With for Smart Devices" pattern.

This editor contains a tree view which combined with GeneXus default layout editor provides several new functionalities.

In this section, we describe some of the functionalities available in the editor's tree view:

Edit the applied template option:

With this option you can change the applied template for any part of the opened "Work With Smart Devices" or "Panel":

PowerInEditorImg04

Add items directly in the tree:

This functionality allows user to add controls in the panel's layout in a simple way:

PowerInEditorImg01

Reorder controls in tables

Moving controls inside a table can be very difficult using the default layout editor. WorkWithPlus for Native Mobile provides two mechanisms to simplify this task:

Drag and Drop

Users can drag and drop any control inside a table using the mouse. Once the control is dropped in the destination, WorkWithPlus for Native Mobile will reorder the controls so that the dragged control is placed in the position where it was dropped, keeping the rest of the controls ordered as before.

In the following example, the user wants to move the ProductImage attribute up, so it becomes the first attribute in the table.

Simply drag the ProductImage attribute in the tree view, and drop it over the ProductId attribute.

EditorKeyFunctionalitiesImg01

Then, WorkWithPlus for Native Mobile will rearrange the controls, producing the following outcome:

EditorKeyFunctionalitiesImg02

Keyboard reorder 

Users can also reorder controls in a table using the keyboard.

For this, select the control that wants to be moved and press ctrl + UP to move the control up, and ctrl + DOWN to move the control down (UP and DOWN are the standard keyboard keys)

Using the keyboard allows the user to move controls one position at a time.

EditorKeyFunctionalitiesImg03

Number of columns

WorkWithPlus for Native Mobile editor allows the user to change the number of columns in a table, rearranging the content of the table according to the content and the new columns amount.

To change the number of columns in a table select the table in the WorkWithPlus for Native Mobile tree view editor. This will display a new property in the GeneXus properties grid editor.

EditorKeyFunctionalitiesImg04

Change the value of the Number of columns property and then WorkWithPlus for Native Mobile will automatically rearrange the controls.

In the following example, the user wants to display the attributes using 2 columns instead of 1:

EditorKeyFunctionalitiesImg05

Column width and row height

WorkWithPlus for Native Mobile editor allows the user to easily view and edit the width of the column and the height of the row that contains the selected control.

Row height can't be modified if the control's Row Span property is greater than "1".

Column width can't be modified if the control's Col Span property is greater than "1".

In the following example, the user sets the "Row height" property to "35dip" to the ProductName attribute.

EditorKeyFunctionalitiesImg06

This will automatically change the height of the second row in the ProductPrice parent table (SectionData1_1 )

EditorKeyFunctionalitiesImg07

Visible Condition

WorkWithPlus for Native Mobile Hierarchical Editor allows to define whether an attribute/variable will be visible or not:

EditorKeyFunctionalitiesImg08

When you define a Visible Condition, WorkWithPlus for Native Mobile is going to automatically create a Sub called EvalVisibleConditons where every condition is verified:

EditorKeyFunctionalitiesImg09

You can call this Sub, for example, from the event “ControlValueChanged” or in any other event where you may need it.
In addition, WorkWithPlus for Native Mobile  sets the “Invisible Mode” of the control to “Collapse space” so the user won’t see “blank” spaces when the control is hidden:

EditorKeyFunctionalitiesImg10

Is Required

WorkWithPlus for Native Mobile Hierarchical Editor allows defining whether an attribute/variable will be mandatory or not.

Please check the Is required section for more details.

Search in Hierarchical Editor

The possibility to search within the items of the Hierarchical Editor was added. 

By using these features will be able to easily find the controls and items of your layout and so edit them:

EditorKeyFunctionalitiesImg15

Insert line breaks at generated code

When turned on, WorkWithPlus for Native Mobile will automatically generate line breaks surrounding all the generated events (only applies code generated by the editor).

This feature is turned on/off using the WorkWithPlus for Native Mobile 7 Settings

Automatic composite

When turned on, WorkWithPlus for Native Mobile will automatically generate the "Composite/EndComposite" on each event that requires it.

This feature is turned on/off using the WorkWithPlus for Native Mobile 7 Settings

Events order

This feature allows the user to "sort" the Panel's events, using the following criteria:

  1. Standard events, ordered according to the "execution order": SlideStart, ClientStart, start, refresh, load
  2. Non-standard events, ordered by name
  3. Subroutines, ordered by name

nativemobile_editor_sortevents