web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Modern control drop do...
Power Apps
Unanswered

Modern control drop down is finicky

(1) ShareShare
ReportReport
Posted on by 153

Hi. I'm successfully added a modern control drop-down that correctly grabs the "options" I want to choose from. But the default value it shows in a table of rows is not the actual underlying value in SQL server, but blank. I've tried setting DefaultSelectedItems = ThisItem.TheFieldInQuestion or {Value:ThisItem.TheFieldInQuestion}. Still nothing. Except for one random time, that did seem to work??? Please help!? Thanks!

Categories:
I have the same question (0)
  • v-qiaqi@microsoft.com Profile Picture
    on at
    Re: Modern control drop down is finicky

    HI @CedarTree72,

    What is the column type of this TheFieldInQuestion in your SQL table?

    You need to access to the column value within the table data of TheFieldInQuestion column.

  • CedarTree72 Profile Picture
    153 on at
    Re: Modern control drop down is finicky

    It 's a text field in both the dropdown options table in SQL server (listTable) and the underlying table that stores the data in SQL server (tblTable), i.e., nvarchar(100). @v-qiaqi-msft

     

    Edit: And I sometimes see "INJECTO" in the dropdown field??? 

  • v-qiaqi@microsoft.com Profile Picture
    on at
    Re: Modern control drop down is finicky

    Hi @CedarTree72,

    Try 

    {TheFieldInQuestion:ThisItem.TheFieldInQuestion}
  • PA_Forum_User Profile Picture
    71 on at
    Modern control drop down is finicky
    Hello @CedarTree72 â€‹â€‹â€‹â€‹â€‹â€‹â€‹â€‹â€‹â€‹â€‹â€‹â€‹â€‹
     
    Did you find out any solution for your problem?
     
    Your soludion does not work, unfortunatley, but thanks for trying.
     
  • Suggested answer
    CodeAvenue Profile Picture
    104 on at
    Modern control drop down is finicky
    This error gave me a run for my money but I finally nailed it based on answer from @v-qiaqi@microsoft.com
    And now it makes a lot of sense when you think about it. By the way, the solution below for Dataverse table.
    For SharePoint List the DefaultSelectedItems = ThisItem.Status
     
    1. So you first set the items property to the Choice field.
    Items = 
    Choices([@ISSDE_Taskss].cr23f_status)
     
    2. Then go to the Display of the Property and add the "Value" field.
     
    3.Finally, in the DefaultSelectedItems, set it to this.
    DefaultSelectedItems= 
    {Value:ThisItem.'Status (cr23f_status)'}

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard