- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 08-11-2021 10:39 AM
Summary
In this article, I will demonstrate how to use a transform data broker to transform a list of records from the KB_Knowledge table and place them in a dropdown on a UI Builder page
Note
In order to populate a dropdown list with your own data, the data must be placed in an array in the following format:
Creating a transform data broker in Ui Builder
|
|
4. Fill in the Name and Description fields. For example:
5. Fill in the properties
Pasted here is the parameter I used: [
|
|
6. Writing the script to transform record array into format accepted for the dropdown
Pasted here is the script I used: function transform(input){
|
|
7. Click Submit 8. Return to UI Builder and click the data resources icon 9. Click +Add in the lop left of the data resources pane 10. Select the application scope that contains your data broker 11. Select your newly created transform data broker 12. Click Add
| |
Use LookUp Records to retrieve data for transform data broker | |
13. Click the data resources icon and then click +Add 14. Select the Global Application 15. Scroll through the Data Resources and select Look Up Records 16. Click Add
| |
17. Enter in the table name you wish to query 18. Make sure to return the sys_id and an identifier such as name, number, or label 19. Add optional features like conditions, max result, etc. | |
20.Now select the transform data broker you created 21. On the data field, click the data binding icon 22. Bind your Look Up Records data resource to your transform data broker 23. Select your dropdown | |
24.Scroll down to the Items field and click the dynamic data binding icon 25.Bind your transform data resource to the items field |
|
- 7,657 Views
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
Hi Nick,
This was really helpful. Do you have similar guideline/step to step document for presenting the json response in the list view or tabular view.