How to get CDT field values

Hi All , 

I have CDT name CDT_Record   Having elements Name , Date , ID , Address , Area .

I want to fetch the Name field Details into my interface filter using CDT . need's your help guys  

  Discussion posts and replies are publicly visible

Parents
  • Hi

    To what I understood from your post, you want to have a filter criteria on a particular field of the cdt.

    Have a look at this

    load(
      
      local!CDT_Record:{{name:"ABC",date:"01/04/1990",id:1,address: "Melbourne", area:"cbd" },
      {name:"XYZ",date:"01/04/1990",id:1,address: "Mumbai", area:"Powai" },
      {name:"PQR",date:"01/04/1990",id:1,address: "New York", area:"Brooklyn" }},
      
      local!name,
      {
        a!sectionLayout(
          label:"Filter Criteria",
          contents: {
            a!dropdownField(
              label:"Name",
              choiceLabels: local!CDT_Record.name,
              choiceValues: local!CDT_Record.name,
              placeholderLabel: "Select",
              value:local!name,
              saveInto: local!name
            )
            
          }
        ),
        if(isnull(local!name),{},
              a!textField(
                label:"Filter Result",
                readOnly: true(),
                value: local!name
              )
            )
      }
    )

Reply
  • Hi

    To what I understood from your post, you want to have a filter criteria on a particular field of the cdt.

    Have a look at this

    load(
      
      local!CDT_Record:{{name:"ABC",date:"01/04/1990",id:1,address: "Melbourne", area:"cbd" },
      {name:"XYZ",date:"01/04/1990",id:1,address: "Mumbai", area:"Powai" },
      {name:"PQR",date:"01/04/1990",id:1,address: "New York", area:"Brooklyn" }},
      
      local!name,
      {
        a!sectionLayout(
          label:"Filter Criteria",
          contents: {
            a!dropdownField(
              label:"Name",
              choiceLabels: local!CDT_Record.name,
              choiceValues: local!CDT_Record.name,
              placeholderLabel: "Select",
              value:local!name,
              saveInto: local!name
            )
            
          }
        ),
        if(isnull(local!name),{},
              a!textField(
                label:"Filter Result",
                readOnly: true(),
                value: local!name
              )
            )
      }
    )

Children
No Data