Populate Select list with DataMaster Field names
I want to create a Select List that shows the fields in the Datamaster. Let's say I have a Datamaster with records that has fields 'firstname', 'lastname', 'phone', 'address','country', What I want to achieve is a user can select which fields to display when the Datamaster is searched. For example, the first dropdown lists all the fields available and they select 'firstname', another dropdown lists all the fields and they select 'lastname', another dropdown lists all the fields and they select 'address'. then they can select a dropdown to enter criteria for a field: 'lastname = jones' and click 'Search'. When the results return, only the 'firstname','lastname','address' fields display for all records with lastname of 'jones'.