cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GUOGUO
Post Patron
Post Patron

After I create a new record in Shapoint list via the Form in this app, it cannot dispaly the details of the new item automatically .  Also have the same problem after i modify an item.  How to select the items that I just created or modified.?

Dear all,

After I create a new record in Shapoint list via the Form in this app, it cannot dispaly the details of the new item automatically . 

Also have the same problem after i modify an item. 

How to select the items that I just created or modified in the Gallary?

Thanks a lot.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @GUOGUO ,

On the OnSelect of the Gallery

Set(
   gblID,
   ThisItem.ID
)

The Item of the Form

LookUp(
   SPListName,
   ID = gblID
)

OnSuccess of your Form

Set(
   gblID,
   Self.LastSubmit.ID
)

 

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.

Visit my blog Practical Power Apps

View solution in original post

9 REPLIES 9
WarrenBelz
Super User
Super User

Hi @GUOGUO ,

On the OnSelect of the Gallery

Set(
   gblID,
   ThisItem.ID
)

The Item of the Form

LookUp(
   SPListName,
   ID = gblID
)

OnSuccess of your Form

Set(
   gblID,
   Self.LastSubmit.ID
)

 

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.

Visit my blog Practical Power Apps

Hi Warrenbelz,

Thanks .Your code works well. But in Gallary, it cannot select the item that i just created and modified.

Hi @GUOGUO ,

You did not state the Items of the gallery - if it is based on the List, it should refresh, but if on a collection, you will need to re-collect it.

Hi WarrenBelz ,

i used soft( search (fiter())) for the item of the Gallary.

 

 

 

Hi @GUOGUO ,

Yes, but what are you filtering - a list or a collection ?

Hi WarrenBelz,

A list

 

Hi @GUOGUO ,

Then it should refresh automatically - there is a fallback - put in an icon with 

Refresh(ListName)

and it will work, but you really should not have to do 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.

Visit my blog Practical Power Apps

Hi Warrenbelz,

 

I have no idea about why it cannot be refresh automatically. 

Refresh(ListName)

  Should i put this code in Onsecusses of the Form? 

Hi @GUOGUO ,

Yes, put that at the end of the code, but as I noted, the gallery should refresh - what are the Items of the gallery ?

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (2,251)