Interface IFD2DataSourceProvider

    • Method Detail

      • resolveItemOptions

        void resolveItemOptions​(XItemRenderData renderData)
      • createDatenquellenJSON

        com.alibaba.fastjson.JSONArray createDatenquellenJSON()
        Returns a JSON array of all datasources that can be used a data source for a select element in the designer, ie. all CSV data sources and database queries without any free parameters (not containing question marks ?). Also includes plugin data sources (IPluginDataSource).
        Returns:
        Data sources for select elements in the designer, an array of JSON objects with the following property keys:
        • value: To be used as the value of the select option, such as the name of the data source.
        • text: To be used as the display text of the select option, such as the name of the data source.
        • group: The type of data source, such as DB or CSV
        • paramCount: The number of free parameters in the data source.
      • createAllDatenquellenJSON

        com.alibaba.fastjson.JSONObject createAllDatenquellenJSON()
        Returns a list of all data sources. Used eg. for suggestions in the JavaScript editor within the designer. Example for the returned JSON object: {DB: [{name: "datasource", type: "DB", paramCount: 2}, LDAP: [], PLUGIN: [], CSV: [], JSON: [], XML: []]}
        Returns:
        All available data queries. A JSON object with the data source type as the key, mapped to a JSON array of all data sources of that type, each a JSON object with the following property keys:
        • name: The name of the datasource.
        • type: The type of the datasource. One of the enum constant in EDatenquellenTyp, the string PLUGIN for an IPluginDataSource; or the string LDAP for an LDAP-query.
        • paramCount: The number of free parameters in the data source.