Skip to main content

UI page or component

Introduction

External objects are the main brick to create custom components within Simplicité, both for a standard UI and for custom/alternative ones. They're kinda like swiss-army knifes, it's where we get out of the simple settings to extend Simplicité's capacities. Mostly for the creation of custom components & interfaces though, but also the integration of custom APIs, etc.

Keep in mind that those are the entry-point to intermediate & advanced customizations for your applications. Thus are categorized for each usage they might have :

NatureUsageJava class
UI page or componentCreate custom components for the standard UIResponsiveExternalObject
Static siteCreate custom standalone pages that can display elements without requiring a logged access to a Simplicité backendStaticSiteExternalObject
Web pageCreate custom standalone pages, that can interact with a Simplicité application's backendWebPageExternalObject

External objects are based on a simple front/back architecture, with 3 resources HTML/JS/CSS for the "frontend". Similarly to Business objects a java class in which you can implement the backend logic.

info

Most of the time it can be left empty, only extending the desired class

How to create

  1. Navigate to the Creation Form through menus User Interface > External objects > Show all
  2. Fill-in the following informations, and then Save your object
    • Code - your object's name (we highly recommend to follow the suggested nomenclature ModulePrefix + ObjectName)
    • Nature - UI page or component
    • UI Widget - Yes/No (in both case, the component is usable in any editable view, the only difference is its possible including in dashboards)
  3. Back on the external object's form, create the resources by clicking the Create resources (a) button
    • then you'll see the confirmation popup (b).
    • Now you are able to modify the frontend codes for your external object in the Resources section (c)
  4. Create the permission for your external object to be granted on the views you'll integrate it to.
    • Go to Permissions > Create and select the groups you want to grant access to your object to, and save it.
  5. Finally, you can add your external object to any editable view (and dashboard if UI Widget - Yes).
    • Navigate to your view through menus User Interface > Views > Show All, and select the desired view, then click the Edit view button
  6. Inside the editor, click on any "+" bar and select Extern
  7. In the modal, select Source - Exernal object, and then fill-in External object with your object's code, then press Save
info

If you see the message External object __ not granted, ensure you properly set the Permissions from step 4.

Configuration

FieldDescription
CodeObject's unique identifier
NatureObject's usage and standard behavior, what is it used for
ClassObject's extended class, defining either it's standard behavior, or if using standard widget specifying which one
Configuration(optional) either if using standard widget or because applying a custom config through the param argument in java code
UI WidgetCan object be integrated to any dashboard

Read More