Turning on data source simulation

If your data source is not available, you can continue developing and testing applications by turning on simulation for the data view (data page).

When you create a data type and do not configure a data source for it, the data source does not have any data views defined. When you are ready to define data sources for the data type, you can choose to create simulated sources. If you use simulated sources, both single (read-only) and list data views are created, with the appropriate simulated data source in each. This option is useful when you are not sure about the details of the eventual sources, or if the endpoints are not yet available and you want to start using the data type in application development.

When you create a simulation for a data type that has a data source already configured, the type of simulation is based on the type of data source, and either a single or list data source is created.

  1. In the navigation panel of App Studio, click Data.
  2. Click Data types and integrations.
  3. Click the data type for which you simulate a data source.
  4. Click Data views.
  5. Perform one of the following procedures:
    • If a data type has both a data source and a simulation configured:
      1. Click More > Toggle simulation.
      2. If the data type has more than one data source, select the data source that you want to simulate.
    • If a data type does not have a data source configured:
      1. Click Create simulated sources.
      2. Click Ok.
    • If a data type has a data source configured but does not have a simulation configured:
      1. Click More > Toggle simulation.
      2. If there is more than one data source, select the data source that you want to simulate.
      3. Click Create.
What to do next: The Record Editor is displayed where you can add fields to the data model, if necessary, and add sample records. Turn off the simulation and connect to your actual data source when it becomes available.