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 / Teams powerapps and da...
Power Apps
Answered

Teams powerapps and dataverse

(0) ShareShare
ReportReport
Posted on by 73

Hey gang,

 

Looking for a solution here.  I have tried everything I could think of (Which is not much, because I am new at this).

I have a dataverse driven canvas app that is basically working up to a basic shipping tracking app.  For the most part everything works fine so far.  I am using the default Hero form for most of everything in the app.

In a nutshell I want to be able to change the color  / border or something of the entries in the Gallery to a specific color(RED) when the specific "Body1" field is empty.  the image just shows the Gallery portion of the entire form.  The arrow is showing the blanked entry for one specific entry that is blank ( On Purpose).  I want a color change to flag that entry to people so they know they have to go into that entry and add whether it is an Import or Export.  I have tried controlling the bordercolor, etc with : 

If(IsEmpty(Body1),RGBA(100, 0, 0, 1),RGBA(0, 134, 208, 1))     no go.  Any thought?

 

Terry-B_1-1615390083620.png

 

 

 

 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Terry-B,

     

    Is Body1 the name of the column in your Dataverse table? If so, try the following:

    If(IsBlank(ThisItem.Body1),RGBA(100, 0, 0, 1),RGBA(0, 134, 208, 1)) 

     

    You could use a formula such as this on the TemplateFill property of the gallery to shade the background of an item that needs amending.

     

    Hope this helps!

  • Terry-B Profile Picture
    73 on at

    Body1 is the name of the display format for the Gallery.  If I am explaining that correctly. the gallery format is title, subtitle, body :

    Terry-B_1-1615392980229.png

    No templatefill in this list:

    Terry-B_2-1615393129584.png

     

     

     

    I have looked for the templatefill property and haven't found it.

  • Terry-B Profile Picture
    73 on at

    ok, so I did find the Templatefill.  It appears when the actual gallery is selected.  There is code in the templatefill already that slightly greys the Selected record.  I would like to keep that affect, but how do I add to it.  I trying added the second If statement after a semi-colon, but it doesn't work

    Terry-B_0-1615393532096.png

     

  • Terry-B Profile Picture
    73 on at

    Got it : 

     

    If(Self.IsSelected,If(IsBlank(Body1),RGBA(100, 0, 0, 1),RGBA(0,0,0,0.05)), If(IsBlank(Body1),RGBA(100, 0, 0, 1),RGBA(0,0,0,0)))

  • Terry-B Profile Picture
    73 on at

    Thank you @Anonymous for pointing me in the right directly.  Now onto the next stumblingblock, learning curve item.

     

    Sub-forms for adding new data to a drop-down list if a particular item is not present.

     

    Terry

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Ok thanks @Terry-B, I understand a little better now. Lets build them into one:

    Try setting TemplateFill to 

    If(Self.IsSelected, RGBA(0, 0, 0, 0.05), If(IsBlank(Body1.Text), RGBA(137,25,80,0.05),RGBA(0, 0, 0, 0)))

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard