Homepage | About EASA | Contact
Introduction | Session 1 |Session 2 |Session 3 | Session 4 | Session 5 | Session 6 | Session 7 | Session 8
Estimated completion time → 20 min
In this third practical session, we add data entry objects to which create a basic user interface of the EASAP. Data entry objects are placed within a TABBED PANE. The data entry objects within the Stock Screener EASAP include,
Please follow the instructions below to complete this practical session.
The window should look like this:
We now add data entry objects to filter all of the stocks in StockData and show only ones that match a User-specified 'Exchange' or 'Sector' criteria. We also perform a financial query either on the stock price or on the company’s revenue.
This LAYOUT PANEL displays a number of objects according to Layout: within a tabbed_pane_Stock_Screener.
Layout: specifies if the objects are distributed horizontally, vertically or in a grid in a LAYOUT PANEL or SUB PANE.
In contrast to a LAYOUT PANEL, a SUB PANE displays text above and a border around its Child objects.
Add a SUB PANE to offer a User options to create an SQL statement to filter StockData into a smaller result set.
Add two INPUTBOX's and for each configure a Child DATA VALIDATION.
For now the Source: parameter is manually set to a short list taken from the set of all 'Sector' choices in the database.
In Session 5 we will change this so a full list of sectors is read from the database.
Logical expressions are allowed within the Enable If: parameter.
Above we enable inputbox_Operator only if the inputbox_Field_Name does not equal (!=) “” (or NULL) in the EASAP.
Please see Expressions for a list of logical operators available for use in expressions.
Parameter Name | Parameter Value |
---|---|
Label: | Value: |
Input Type: | Number |
Default: | 100 |
Enable if: | inputbox_Field_Name != "" ←two double-quotes for the default, empty string |
The Tree should appear as below,
Let's add a LAYOUT PANEL containing the 'Search Stock Data' and 'Create Report' BUTTON's.
We want to give our new BUTTON's a uniform look-and-feel.
Let's add rounded corners, centered text, uniform width, etc… (CSS is browser dependent, this tutorial uses Chrome).
To achieve this we will create a USER INTERFACE STYLE to add the CSS to the two BUTTON's above.
other_style1 has a single parameter, CSS Properties:
Parameter Name | Parameter Value |
---|---|
CSS Properties: | width: 150px; border-radius: 8px; padding: 6px 20px; text-align: center; text-decoration: none; display: inline-block; font-size: 12px; |
We have completed all the USER INTERFACE objects. The Tree should look like:
After clicking on the Test Web Browser button (), the EASAP should look like:
We have now completed Session 3. Proceed to the next session or take a break and exit the Builder.
Introduction | Session 1 | Session 2 | Session 3 | Session 4 | Session 5 | Session 6 | Session 7 | Session 8