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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Default Data Card Valu...
Power Apps
Unanswered

Default Data Card Value issue-- Using an or statement

(0) ShareShare
ReportReport
Posted on by 221

Hello,

       I am trying to fill in the name you selected if it comes from one of the two different sources. I tried the item below but it did not work. Any ideas on how this can work? FYI using SQL as the data source if that makes a difference here. 

DentalProviders.Selected.full_name  OR  '[incentive_test].[D_eTime]'.Selected.Employee_Display_name

DentalProviders.Selected.full_name || '[incentive_test].[D_eTime]'.Selected.Employee_Display_name

Two different sources.PNG
Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @NitroPepsi 

    So this is in a form!!  Your Default property of the DataCard should be: ThisItem.yourColumnName

     

    What is it that you are trying to determine in your formula?

     

  • NitroPepsi Profile Picture
    221 on at

    There are two different galleries, that represent two different sql tables. They are introduced to the gallery first and then they move on to the edit form. One gallery has active individuals and the other has new people. So what I would like is regardless of the gallery to use the name. So it can be the name from table 1 or table 2. It is an edit form. 

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @NitroPepsi 

    Well...there is my confusion...if table 1 has one name and table 2 has another name - which one would you want??

  • NitroPepsi Profile Picture
    221 on at

    IT can be from either table. For example, the first gallery has already established providers. So if they see their name, they are taken to the edit form and it prefills their name and provider number. Now, if they are new, they are taken to a gallery that has the new/established providers (this is everyone in the company under that department). So, if they click either gallery their info will be filled out to be put in the new table. So it can be the names from either gallery. 

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @NitroPepsi 

    Then your choice is at the gallery...not in the form.

     

    How are you initiating (from the gallery) the form?  In other words, what is the OnSelect formula in your galleries that give you the record to edit?

  • NitroPepsi Profile Picture
    221 on at

    On the select button I have navigate - Navigate('Data Entry Page From Table of Submissions')

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @NitroPepsi 

    So what then is the Item property of your form?  How are you passing the record to the form?  Or are you creating a new record with the form and are looking to have the values from the gallery passed to the form?

     

    BTW, I'm at the end of day here, so I will get back to you tomorrow with your response.

  • NitroPepsi Profile Picture
    221 on at

    I just made two forms for this. One for the first gallery and another for the second gallery.  Thank you for your help tho. 

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @NitroPepsi 

    Well, that works too...but if you want to simplify and reduce the duplication of the form...just let me know!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard