cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dalacarelia_196
Helper IV
Helper IV

Tricky Dropdown list

Hello there again 

 

I have one dropdown list there i am using this code and its working out fine 

SortByColumns(Filter(tblProgram;Skola=ddskola.SelectedText.Value;(StartsWith(Program;"B") Or StartsWith(Program;"C")Or StartsWith(Program;"D") Or StartsWith(Program;"E") Or StartsWith(Program;"F") Or StartsWith(Program;"G")Or StartsWith(Program;"H") Or StartsWith(Program;"I")));"Program";Ascending)

 

But i want the Dropdown list showing " Select in the list " first end when klickning on dropdown my sort will be visible 

 

This is my code iam using today as trying dont workout i have trying with ["Select in the list"] but nope 

My hope is that iam on the right track but wrong code . 

 

ONSELECT

If(
   IsBlank(["Select in the list"]);  // Check if the user click the program Dropdown box firstly and type the text
   Set(IsClick_program; false);     // User click this Dropdown box firstly to could select the filtered program option
   Set(IsClick_program; true)       // User wants to re-choose the program option again
)

 

ITEMS 

If(
    IsClick_program;
    SortByColumns(
        Filter(
            tblProgram;
            Skola = ddskola.SelectedText.Value;
            (StartsWith(
                Program;
                "B"
            ) Or StartsWith(
                Program;
                "C"
            ) Or StartsWith(
                Program;
                "D"
            ) Or StartsWith(
                Program;
                "E"
            ) Or StartsWith(
                Program;
                "F"
            ) Or StartsWith(
                Program;
                "G"
            ) Or StartsWith(
                Program;
                "H"
            ) Or StartsWith(
                Program;
                "I"
            ))
        );
        "Program";
        Ascending
    )
)

 

 

 

1 REPLY 1
eka24
Super User III
Super User III

You can use a combobox and set its placeholder property to ["Select in the list"
However If you insist on Dropdown, follow this post
https://powerusers.microsoft.com/t5/Building-Power-Apps/Need-Dropdown-with-blank-null-default/td-p/5...

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (47,060)