Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.codenullapp.com/llms.txt

Use this file to discover all available pages before exploring further.

The automatic generation of data sources in our system simplifies setting up data grids, insertion forms, or update forms for a specific feature. By leveraging this feature, developers can quickly generate data sources tailored to their needs, streamlining the development process and ensuring consistency across different components.

Generating Data Sources

To generate data sources for a feature, follow these steps:
  1. Navigate to the Designer: Begin by accessing the designer module within our system. This module serves as the central hub for managing entities and their associated data sources.
  2. Select Entity: Once in the designer, select the entity for which you want to generate data sources. This entity represents the core data model around which your feature revolves.
  3. Choose Fields: After selecting the entity, choose the specific fields that you intend to use in your data grids, insertion forms, or update forms. These fields should correspond to the data attributes that are relevant to your feature.
  4. Select Query Type: Determine the type of operation you wish to perform: query or mutation. This selection defines whether the generated data sources will retrieve data (query) or modify data (mutation) based on user actions.
  5. Initiate Generation: With the entity, fields, and query type selected, initiate the generation process. Our system will automatically analyze the selected entity and fields to automatically generate appropriate data sources tailored to the chosen query type.

Types of Data Sources

Depending on your requirements and the selected query type, you can generate different types of data sources:
  • Data Grids: Generate data sources optimized for displaying data in a grid format. This is ideal for presenting tabular data to users, allowing for easy sorting, filtering, and navigation.
  • Insertion Forms: Generate data sources tailored for inserting new records into the system. These forms provide a user-friendly interface for capturing and submitting data efficiently.
  • Update Forms: Generate data sources designed for updating existing records. These forms streamline the process of modifying data attributes while maintaining data integrity.
  • Remote Dropdowns: Generate data sources for remote dropdowns, allowing users to select options from a list populated dynamically from the database. This enhances user experience by providing real-time data access and ensuring data consistency.

Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the ask query parameter:
GET https://codenull.gitbook.io/dev/configurations/components/datasources/auto-generate-datasource.md?ask=<question>
The question should be specific, self-contained, and written in natural language. The response will contain a direct answer to the question and relevant excerpts and sources from the documentation. Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.