fetch Data from a db column to drop down component

Hi All,

 

I'm trying to fetch data form one of the column of database to the drop down component on UI.

Column has redundant data e.g india,india,india, in 100 rows let say.

I'm using index(local!variable,"columnname" {}) function, but it is throwing error.. Duplicate items are not allowed in the choice Values array.

Please guide on this ..

 

TIA,

Nalini 

  Discussion posts and replies are publicly visible

Parents
  • Hi,
    Follow these steps:
    1. write query entity to fetch that column
    2. save only that column data in a local variable, let's suppose local!a
    3. give local!finalData: union(local!a,local!a)
    4. use local!finalData in choiceValues and choiceLabels

    Note: 3rd step might give error saying can't perform union on local!a, in this scenario write below line:
    local!finalData: union(touniformString(local!a),touniformString(local!a))
Reply
  • Hi,
    Follow these steps:
    1. write query entity to fetch that column
    2. save only that column data in a local variable, let's suppose local!a
    3. give local!finalData: union(local!a,local!a)
    4. use local!finalData in choiceValues and choiceLabels

    Note: 3rd step might give error saying can't perform union on local!a, in this scenario write below line:
    local!finalData: union(touniformString(local!a),touniformString(local!a))
Children