Dynamic Columns with Each Column data from API
Comments
-
[font=Roboto]I have attached an image of the sample UI, we want to show list of sources dynamically. The data in each of those columns in the attached image, needs to come from a API call. Can you help me with what list control i can use & how to get the data for each item of the list using a separate async API call.[/font]
[font=Roboto]I have a Person object that has a list of sourceid. Now using each of these sourceid, i need to pass it to separate API & get source data for each of these source id & display it in a list or grid or repeater.[/font]
If we cannot do it as dynamically repeating columns & if we can achieve this using rows that is also fine, but then each row of the list needs to pull the data from a API & show it on the controls inside that row !
[font=Roboto]Any help or ideas to achieve would be greatly appreciated.[/font]
-
This could be something you can accomplish through the use of JSON, integrating REST, active form flows, and data repeaters.
[b]Data Repeaters[/b] - Use these to dynamically display a list of objects in a row format. [url=https://documentation.decisions.com/docs/creating-data-repeaters]Creating Data Repeaters - Data Repeaters (decisions.com)[/url]
[b]Active Form Flows[/b] - Useful for collecting data directly inside of your form, allowing you to call your REST endpoint and populate data inside of your data repeater using the set control value step. [url=https://documentation.decisions.com/docs/active-form-flows-overview?highlight=active form]Active Form Flows Overview - Data & Logic (decisions.com)[/url]
[b]Rest Service Integration[/b] - This will create associated steps that can be used in your flows to retrieve data from your API. [url=https://documentation.decisions.com/docs/creating-a-rest-method]Creating a REST Method - REST Service Integration (decisions.com)[/url]
[b]JSON Structure [/b]- On creation of a JSON data structure, all nested datatypes are exposed as simple datatypes. You can specify this as the output type for your REST method steps. Ive attached some JSON images to this post.For more information on any of the documentation above, reference the tabs on the left column of the documentation site to access other related information.
[i]edited by daniel.smith@decisions.com on 7/1/2022[/i]
Howdy, Stranger!
Categories
- 4.1K All Categories
- 60 General
- 11 Training
- 201 Installation / Setup
- 1.1K Flows
- 106 Rules
- 260 Administration
- 212 Portal
- 489 General Q & A
- 693 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 51 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 178 Pages
- 5 Process Mining
- New Features
- 178 Datastructures
- 69 Repository
- 219 Integrations
- 28 Multi-Tenant
- 27 SDK
- 76 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 66 Lunch And Learn Questions