Custom Picker Component search results return whole dictionary of object

Hi all, we're having issues with the custom picker component. For some reason it returns a dictionary of the object when typing into the text field.

Is there a way to just show a certain attribute of the returned dictionary when searching?

Upon selecting a suggested search result, the correct label is shown in the picker component, only when typing into the component is the whole dictionary returned.

Here is a screenshot:

 

Thank you,

Morné

  Discussion posts and replies are publicly visible

Parents
  • Hi Morne,

    you are using customer picker, that means, we are fetching some dataset from the db.

    In the suggestFuntion we are passing that dataset

    suggestFunction: rule!NSF_ucArrayPickerFilter(filter: _, labels: local!data
    identifiers: local!data),

    in the above , local!data is the dataset, if we want to fetch particular column name in the picker field we have place the index

    suggestFunction: rule!NSF_ucArrayPickerFilter(filter: _, labels: index(local!data,"name",{}),
    identifiers: index(local!data,"name",{})),

    it will fetch the column name.

    Hope it will help you,

    Thanks,
    Bhanu.
Reply
  • Hi Morne,

    you are using customer picker, that means, we are fetching some dataset from the db.

    In the suggestFuntion we are passing that dataset

    suggestFunction: rule!NSF_ucArrayPickerFilter(filter: _, labels: local!data
    identifiers: local!data),

    in the above , local!data is the dataset, if we want to fetch particular column name in the picker field we have place the index

    suggestFunction: rule!NSF_ucArrayPickerFilter(filter: _, labels: index(local!data,"name",{}),
    identifiers: index(local!data,"name",{})),

    it will fetch the column name.

    Hope it will help you,

    Thanks,
    Bhanu.
Children
No Data