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 / Not item to Display in...
Power Apps
Answered

Not item to Display in Edit mode with Item and data source set

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello team,

I did a program that when you press a button1 or button2, visible property of a form1 comes true and the form appears. Items of the form1 are setted to DataTable1.Selected.

If you pressed button1, DefaultMode of the form is settted to New(it works, an empty form is created) but If you pressed button2, DefaultMode is setted to Edit, in this point the record selected appears in the fields of the form just for 2 seconds and then the "No Item to Display" message appears.

This same way is used in another screen and it works... I can´t see what happens so thank you so much for helpping me.

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

    If I set Items to Last(Table) it works, showing the last record of the table. I want it to be dynamic with Gallery1.Selected

  • Verified answer
    v-chenzhi Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Do you want to set the visible and DefaultMode property of the Edit Form through the Button?

    Could you please show me the OnSelect property of Button?

    I assume you have a List in SP and made a test on my side, please try the following workaround.

    I create this list in SP.

    vzhichen_0-1634797691885.jpeg

    Set the OnSelect property of Button1 to following:

    Set(VarFormVisible,true);Set(VarFormDefaultMode,FormMode.New)

    Set the OnSelect property of Button2 to following:

    Set(VarFormVisible,true);Set(VarFormDefaultMode,FormMode.Edit)

    Set the Visible property of Form to following:

    VarFormVisible

    Set the DefaultMode property of Form to following:

    VarFormDefaultMode

    You will see this.

    vzhichen_1-1634797691887.jpeg

     

     

    vzhichen_2-1634797691888.jpeg

     

    vzhichen_3-1634797691889.jpeg

     

    Best Regards,

    Zhi Chen

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard