Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Wrong default value in DataCard

(0) ShareShare
ReportReport
Posted on by 20

I need some help with setting the default value for a DropDown box in PowerApps

aftabp_3-1702072681199.png

 

 

 

I have a DropDown in my App which writes back to DWH

AllowedValues for the DataCard "Car Seats" are [999;0;1;2;3]

In an early version of this PowerApp Car Seats would show 999 as the choosen value (a.k.a DefaultValue) but now it shows 1. 

Changing Default for DataCard is not an option because i dont want to get the last write back value in the DataCard. 

How do i resolve this? 

  • aftabp Profile Picture
    aftabp 20 on at
    Re: Wrong default value in DataCard

    @WarrenBelz 
    I will try to be more clear next time but i think when i worte: "AllowedValues for the DataCard "Car Seats" are [999;0;1;2;3]" it implied that there is no source. I have defined it inside the card

    The DataCard writes back to MS SQL but reads from AllowedValues.

  • WarrenBelz Profile Picture
    WarrenBelz 145,445 on at
    Re: Wrong default value in DataCard

    @aftabp 

    What is your data source here (it is always good to state this in your inital post as it will affect not only the response, but who will respond (I am not an SQL user which I suspect is the case here)

  • aftabp Profile Picture
    aftabp 20 on at
    Re: Wrong default value in DataCard

    @WarrenBelz 
    The misspell is not the cause. 

    When the dropdown writes back to DWH it's varchar(3) but the filed its self is not connected to DWH.
    As illustraded in the screen grab i am defining the values in PowerApps  

  • WarrenBelz Profile Picture
    WarrenBelz 145,445 on at
    Re: Wrong default value in DataCard

    Hi @aftabp ,

    The field name appears to be ‘Car og seats’ judging by the DataField shown. Also what type of field is this?

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,445

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,741

Leaderboard