cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jcnascime1
Helper I
Helper I

View photos in gallery

Hello everybody!
I would like to view my photos in my gallery4, but I can't!
I'm using the ThisItem.Picture function
Someone help me?

jcnascime1_0-1657992565977.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @jcnascime1 ,

You need to convert the file to Base64 using JSON if you want to store it in a Multi-line Text field - you can than view it as ThisItem.Picture

Patch(
   Fotos_Insp,
   ForAll(
      PictureCol As aPatch,
      {
         AuditAnswerlD: aPatch.Question,
         Picture:
         Substitute(
            JSON(
               aPatch.Image,
               JSONFormat.IncludeBinaryData
            ),
            """",
            ""
         ),
         Auditld: IOAuditVar,
         Data: Today()
      }
   )
)

 

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

7 REPLIES 7
TheRobRush
Super User
Super User

It looks like you misspealt your column name with the picture info, have you tried ThisItem.Picutre

_____________________________________________________________________________________
Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.
This helps others find solutions to future issues!

yes, I already tried.

TheRobRush
Super User
Super User

I'm not in the office anymore to give exact examples, but for anyone else who helps, are you receiving any error messages on the picture control, or just no picture

_____________________________________________________________________________________
Like my answer? - Hit that Thumbs Up. Resolved the Issue? - Hit Accept as Solution.
This helps others find solutions to future issues!

It shows this message: this formula uses scope, which is not presently supported for evaluation

jcnascime1_0-1658029358864.png

 

Hi @jcnascime1 ,

What type of field is Picture and what is your Data Source type? If it is a Collection, what is your Collect code ?

Your filter also seems to be repeating the same filter twice.

Hi,

jcnascime1_0-1658090169695.png

I updated my filter.

Filter(Fotos_Insp,AuditId=AuditGallery1.Selected.ID && AuditAnswerID=DataTable1.Selected.IDespelho)

 

Hi @jcnascime1 ,

You need to convert the file to Base64 using JSON if you want to store it in a Multi-line Text field - you can than view it as ThisItem.Picture

Patch(
   Fotos_Insp,
   ForAll(
      PictureCol As aPatch,
      {
         AuditAnswerlD: aPatch.Question,
         Picture:
         Substitute(
            JSON(
               aPatch.Image,
               JSONFormat.IncludeBinaryData
            ),
            """",
            ""
         ),
         Auditld: IOAuditVar,
         Data: Today()
      }
   )
)

 

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

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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