Agile Developer

Home Page Customization

Axpert 11
TStructs (Forms)
IViews
Scripts
Axpert Jobs
Axpert Cards
HTML Plug-ins
Users & Roles
Workflow
Axpert API
Application Var/Params
Publish Axpert Apps
Axpert Mobile
Settings
Utilities
Customization
WebServices
Axfast

Home Page Customization

The home page means the landing page that is shown in the client area beside the menu and below the title bar. Custom home pages can be set for every user role. The custom home page can be made in a HTML file and stored in under webcode root folder\<ProjectName>\aspx folder. The <projectname> is the name of the project or app name. For example, if we create a file called MyPage.HTML.This can be set in Axpert by following the steps below:

  1. Create a folder under web code root folder with the project/app name. For example if you are working on an app called demo, the folder name should be demo. Create a folder named aspx under demo.
  2. Copy your HTML file into this folder.
  3. Go to advanced settings or developer options.
  4. Set a new configuration as below
    1. PropertyName = LandingStructure
    2. PropertyValue = General
    3. PropertyAttribute = MyPage.HTML
    4. RoleName = All or any particular role that you want.
  5. Save the configuration and see it working.

The HTML can be set user-wise or role-wise or for all.

Examples

A home page that is looking as below

Hp1.PNG

Can look like something like this.

Hp2.PNG

Hp3.PNG

Notes on custom HTML

Include this reference to get app level css settings

Hp8.PNG

In this example, the following AJAX calls to Axpert are made

  • To get global variables.
  • To load a tstruct form
  • To load an iview.
  • To save data to a tstruct.

The sample code for calling them are given below

Sample code for opening a tstruct named “reims”.

Hp4.PNG

Sample code for getting global variable values

Hp5.png

Sample code for opening an Iview

Hp6.PNG

Sample code for saving data

Hp7.png