Lianja App Center Tiles

From Lianjapedia
Jump to: navigation, search

This article explains how to Publish your Apps, configure the appearance of your Apps' Tiles and create Tiles with dynamic content.

The target audience is developers who have read through and understood the Getting Started with Lianja tutorial.

See Also

Overview

As a user in the Lianja App Center you have one-click access to the Published Apps available to your login.

To load an App, scroll vertically through the Categories and just click on a Tile to load the App.

Lianja App Center


As a Developer in the Lianja App Builder, the App Center Home screen also includes a series of Tiles to lead you through the steps of developing a Lianja App.

  • Create a Project
  • Create an App
  • Create a Database
  • Create a Table
  • Manage Data
  • Manage Users
Lianja App Builder



Lianja v5.1 introduced tabs for grouped Apps in the App Center. In the Lianja App Builder there is a separate Develop tab with tiles for Getting Started help and quick link tiles for common development actions.

These quick link tiles have been expanded in Lianja v5.3.

Lianja App Builder: Develop


The Examples tab gives access to the example Apps included in the distribution:

Lianja App Builder: Examples


You can create your own tabs to group your Apps by specifying the tab name in the App Center Tile 'Category' setting.

You can still access each of the different Workspaces at any time via the Modebar and the Documentation is also just a click away (as is the Application Repository from v5.0).

Lianja App Builder Documentation


Publishing an App in the App Center

Desktop Apps need to be 'published' so that they will appear in the Lianja App Center.

Check the Publish attribute in the App tab of the App Inspector:

App Inspector: Publish


If the App Inspector is closed, click Settings in the Modebar then check the Publish attribute and click Done.

Settings: Publish


App Settings

Settings is also where you control how your App's Tile will be categorized and its position and appearance.

New Tile


In the screenshot above, the following settings have been specified:

Attribute Description
Category Tile will be listed in the 'Tutorials' horizontal Category. For v5.1 and later, see below.
Caption Tile title will be 'roledemo'.
Background color Tile background color will be purple.
Tile size Tile will be 2x1. Sizes can be from 1x1 up to 4x4.
Tile order Tile will be ordered automatically (0). Specifying a non-zero for Tiles within a Category will order them from lowest to highest.

As soon as you click Done and return to the Home App Center screen, you will see the changes you have made to your Published App's Tile.

From v5.1, include the tab name in the Category setting. So to display the tile in the Examples tab, specify the Category as:

Examples|Tutorials
New Tile in Examples Tab (From v5.1)


And here the tile has been added to the Workspaces category in the new Tutorials tab:

Tutorials|Workspaces
New Tile in New 'Tutorials' Tab (From v5.1)


Dynamic Tiles

Dynamic Tiles are Tiles whose contents are based on a script. The script can generate HTML output or just output a URL which will be rendered by an AJAX call inside the App Center. Any of the supported scripting languages can be used.

The contents of the Dynamic Tile are updated every time the Dynamic tile timer interval (in seconds) expires.

Dynamic Tile


This example (example_dynamictile1 - 'Employee Sales by Year') runs the businessoverviewmonth.rsp script to output HTML and updates every 5 seconds.

The other Demo Dynamic Tile samples included in the distribution (example_dynamictile2 - 'Product sales by month' and example_dynamictile3 - 'Product sales by region') show how to output a URL for a Google Chart.

Note that here the Dynamic contents Attribute has been checked. If this is set to True, the Dynamic Tile is used for display purposes in the App Center only and users cannot run the App. Set to False and you still have your Dynamic Tile, but it can also be clicked to give users access to the App.

Dynamic Badges

Lianja v5.1 introduces Dynamic Badges. These work in a similar way to Dynamic Tiles, but display an informational 'badge' on an App Tile. The badge contents are based on a script. The script can generate HTML output or just output a URL which will be rendered by an AJAX call inside the App Center. Any of the supported scripting languages can be used.

The contents of the Dynamic Badge are updated every time the Dynamic Badge timer interval (in seconds) expires.

Dynamic Badge


Custom App Parameters

From Lianja v6.3 the Tile URL attribute can be used to specify an App to be opened when the tile is clicked and custom parameters for that App.

app:appname?parameter=value&parameter=value&parameter=value

The following parameter name=value pairs can be specified:

Parameter Example Description
database database=southwind_companyxxx The specified database will be used as the runtime database for the App.
This allows multiple App tiles to open the same core App, but each using a different database (with the required table names and structures), e.g. for different companies or clients.
page page=page2.section1 The specified Page and optional Section will be selected when the App is opened.
search search=WOLZA The specified search will be run on the selected Page/Section when the App is opened.
This is the equivalent of entering the search text in the Instant Search box or using the search action in a Lianja.showDocument() call.
filter filter=region eq 'East' The specified filter condition will be applied on the selected Page/Section when the App is opened.
This is the equivalent of the filter action in a Lianja.showDocument() call and similarly requires the use of OData Operators.