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 / How to set the control...
Power Apps
Answered

How to set the control invisible when the Object Detector doesn't start to detect, not fail to detect.

(0) ShareShare
ReportReport
Posted on by 27

Hi,

I want to make a reminder label visible only when the Object Detector fails to detect the object, and invisible when I just enter the detection screen (that means I don't upload photos yet, like the following situation)

 
Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Puco ,

     

    Could you tell me:

    Do you want the label control not to be displayed when entering the detection screen?

    Do you want to display the label control when detecting the object fails, rather than display the label control when detecting the object succeeds?

     

    If my assumptions are correct , I suggest you set a variable .

     

    1\ You could try to set the OnVisible property of the detection screen to :

    Set(Thevar,0)

     

    2\ Set the Onchange property of Object Detector control to:

    Set(Thevar,Thevar+1)

     

    3\ Set the visible property of the label control to:

    If(Thevar=0,false,First( ObjectDetector1.GroupedResults.ObjectCount).ObjectCount=0 && Thevar<>0 ,true,false)

     

    Best Regards,
    Wearsky
    If my post helps, then please consider Accept it as the solution to help others. Thanks.

  • Puco Profile Picture
    27 on at

    Hi, the method above is useful when first enter the screen, but if I change the drop-down list which changes the modelId of the object detector, the label control comes out. How can I control it?

    Screen Shot 2021-02-09 at 5.50.03 PM.pngScreen Shot 2021-02-09 at 5.50.18 PM.png

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard