Skip to main content
14-Alexandrite
September 11, 2020
Question

how to show data in collection widget when selecting on dropdown data?

  • September 11, 2020
  • 2 replies
  • 1112 views

Hello,

 

i want show data in collection widget by using dropdown data selecting.

I have one dropdown which have three levels as Beginner, Intermediate and advanced. and i have one collection widget where all levels combined.

if i am selecting level Beginer in dropdown then in collection it shows only beginner level. Please suggest any procedure. Refer below attachment for your better understand.

2 replies

5-Regular Member
September 11, 2020

Hello @Ru_01,

 

You achieve this by querying the service where this data is coming from (GetImplementingThingsWithData vs QueryImplementingThingWithData for example). Basically, you would need to call the query service every time SelectedRowsChanged event is triggered on the DropDown widget. Then, you can use the SelectedText property of the DropDown widget to query the infotable and only return the results that match the query. Find a summary below:

 

  1. Bind SelectedRowsChanged (DropDown) > QueryService
  2. Bind SelectedText (DropDow) > QueryService (string parameter)
  3. In QueryService, use the SelectedText (string input) to query the database/infotable
  4. QueryService should return an infotable containing only the rows that match the selected level

I hope you find this information helpful.

 

Thanks,

Emmanuel

 

5-Regular Member
September 15, 2020

If I'm doing this , i'll just use a Datatable entity with Shape { String:[Level], infotable:[Courses] }

 

So I just need 3 rows of data for your 3 levels, and in each infotable after the certain level, I'll list all the submashup names.   I'll bind the GetdatatableEntries service result to both List widget and Collection widget, showing different columns of data.  With the help of SelectedRows change event, list and collection widget will change at same time.