Steps to Create Apps

Following are the steps to create an App and to associate it to a sub workspace:

  1. In Canvas Studio, use App Designer to create the app covering the following configurations. Refer Designing Apps using App Designer for more information.
    • Type of view (like grid, chart, tree, etc.)
    • Data source
    • With or without entitlement
    • App Tools applicable
    • Action buttons, if any that needs to be added
  2. Create a JS class for the app. The app class is a simple JavaScript class that contains the listeners and handlers to manipulate the user-interaction with the app. Refer Creating a JS Class for App for more information.
  3. Create the SQL map and instruction class for the app. This is a simple Java class (POJO) extending a predefined framework class that provides the in-built support for decoding the request parameters in proper filters, sorts, paging, etc. This class is useful for providing extra support for the data fetching both in terms of providing correct dynamic inputs to the Data Source layer as well as manipulating the result data before sending to the device for rendering. Refer Adding the SQL Map and Instruction Class with App for more information.
  4. Create necessary handlers for the app based on the functional requirement for the App. Add those to the following registries as appropriate. Refer Adding Handlers to the App for more information.
    • Form Listener Registry (CFLR)
    • App Button Registry (CMABR)
    • App Button Handler Registry (CMBH)
    • Context Menu Handler Registry (CMHR)
    • Cell Click Handler Factory (ICCHF)
  5. In Canvas Studio, use Workspace Designer to add the app to the Workspace and indicate its position in the Sub Workspace. Refer Designing Workspaces using Workspace Designer for more information.