cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gautmish
Level: Powered On

gallery is not showing any images which is already exists in the collection

Hi ,

 

I am loading images to a collection . Saving it offline . while binding the collection to gallery in the another screen ., it is not showing any images. Urls are there in the collection .

 

Collect(AnswerImages, {
ImageUrl:AddMediaButton2.Media,
});SaveData(AnswerImages,"AnswerImagesLocal")) 

1 ACCEPTED SOLUTION

Accepted Solutions
PowerApps Staff AllenKim
PowerApps Staff

Re: gallery is not showing any images which is already exists in the collection

Hi @gautmish,

 

I wanted to give you an update on this issue. My colleague investigated this issue some more and determined that this was a regression introduced a while back. He is working on getting a fix out soon. While I cannot give an exact date for when the fix will hit production, we estimate that it will be within a month.

 

Thanks,

Allen

View solution in original post

18 REPLIES 18
Community Support Team
Community Support Team

Re: gallery is not showing any images which is already exists in the collection

Hi @gautmish,

 

Could you please share a screenshot of your PowerApps app's configuration?

Could you please share a bit more about the Gallery control within another screen?

Further, do you use the LoadData() function to load the collection data within your another screen?

 

I have made a test on my side and the images shows well. My PowerApps app's configuration as below:

Screen1: 11.JPG

The OnSelect property of Collect Button control set to following formula:

Collect(AnswerImages,{ImageUrl:AddMediaButton1.Media});SaveData(AnswerImages,"AnswerImagesLocal")

The OnSelect property of Next Screen Button control set to following formula:

Navigate(Screen2,ScreenTransition.Fade);Clear(AnswerImages)

Screen2:12.JPG

14.JPG

 

The OnVisible property of Screen 2 set to following formula:

LoadData(AnswerImages,"AnswerImagesLocal")

 

More details about SaveData() function and LoadData() function, please check the following article:

SaveData and LoadData function in PowerApps

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
gautmish
Level: Powered On

Re: gallery is not showing any images which is already exists in the collection

Hi @v-xida-msft,

 

I am doing load data , but the issue is i have to clear the collection before loading it in next screen and take the value from savedata collection , As I am navigating to that screen multiple times . That time it is not working  . Any how i have replaced this add picture control will camera control as add picture control has multiple issues and a hot topic now .

 

Let me replicate the issue and get back to you .

 

Thanks

Gautmish 

gautmish
Level: Powered On

Re: gallery is not showing any images which is already exists in the collection

Hi @v-xida-msft

 

Still issue exists .

 

Screen1 :

 

Onvisible : Clear(LocalImage);LoadData(LocalImage,"Imagelocal")

 

Onselect (Add pic control) : Collect(LocalImage,{ImageUrl:AddMediaButton1.Media,title:"Image"&CountRows(LocalImage)+1&".jpg"});SaveData(LocalImage,"Imagelocal")

 

Screen 2: 

 

Onvisible : Clear(LocalImage);LoadData(LocalImage,"Imagelocal")

 

Gallery data: LocalImage

 

Still i am getting the issue . 

 

Thanks

Gautmish

gautmish
Level: Powered On

Re: gallery is not showing any images which is already exists in the collection

Hi @v-xida-msft

 

Did you get time to verify this issue . Could you please help on this .

 

Thanks

Gautmish

gautmish
Level: Powered On

Re: gallery is not showing any images which is already exists in the collection

Hi @v-xida-msft,

 

I am getting below error when trying that .

 

Reporting the first one: the managed blob uri is not owned by current app's blobmanager

 

@AllenKim could you please help on this . Photo upload is working now but another problem occured.

 

Thanks

gautmish

gautmish
Level: Powered On

Re: gallery is not showing any images which is already exists in the collection

HI @v-xida-msft

 

Did you get some time to check below issue . 

 

Thanks

Gautam Mishra

PowerApps Staff AllenKim
PowerApps Staff

Re: gallery is not showing any images which is already exists in the collection

Hi @gautmish,

 

Thank you for the details of your app and its rules. I was able to reproduce the issue locally on my mobile device. I am also not seeing the saved images in the gallery in the second screen. If I take a photo, just this most recent one shows up correctly in the gallery. If I don't take a new photo and just go to the second screen, all images are empty/blank.

 

Let me follow-up with some folks on my side to see if this is a current limitation or an issue.

 

Thanks,

Allen

gautmish
Level: Powered On

Re: gallery is not showing any images which is already exists in the collection

Hi @AllenKim,

 

Any update on this . this is the key feature of our application , so need to solve this soon .

 

Please suggest.

 

Thanks

Gautmish

PowerApps Staff AllenKim
PowerApps Staff

Re: gallery is not showing any images which is already exists in the collection

Hi @gautmish,

 

After discussing with some folks, it looks like saving and loading local images is not a fully supported scenario. Saved and loaded local images are only valid for the lifetime of the app instance. When you restart and app, any previously saved images become invalid. This is due to how we internally manage local images.

 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 341 members 6,513 guests
Please welcome our newest community members: