Recording Filtered Dropdown data to the Collection

Hi,
I’m using the Datasets & Dropdown Elements for filtering the data.
But after the filter,
I need to write the data in the Dropdown element to the particular Collection Table.
How to write code for this.

Thank You.