web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to Open Image in A...
Power Apps
Unanswered

How to Open Image in Another Tab or Window

(0) ShareShare
ReportReport
Posted on by

I have a gallery that populates certs and quals data as well as a image (.jpg) control of the specific cert or qual.

 

A request was made to be able to open the cert or qual document in another tab of window when clicking on the Image or button in the Gallery. The data is coming from CertQualCollection and the image is coming from CQImageCollection.

 

Image property = 

First(Filter(CQImageCollection,Name=ThisItem.CQYr&" "&ThisItem.Title&" "&ThisItem.CQTitle&" "&ThisItem.FrstNm&" "&ThisItem.LstNm&" "&ThisItem.AcrdtnAgncy)).'{Link}' & First(Filter(CQImageCollection,Name=ThisItem.CQYr&" "&ThisItem.Title&" "&ThisItem.CQTitle&" "&ThisItem.FrstNm&" "&ThisItem.LstNm)).'{Link}'

 

Is it possible to set the Image control 'OnSelect' property or the Button 'OnSelect' so that it opens the image displayed in the Gallery in another tab or window?

 

3csman_0-1610131689526.png

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    Sure, just put the image control on another screen or under another tab and then in your button, navigate to that screen, or activate the other tab.

     

    Change your formula to the following:

    With({ThisItem: YourGalleryName.Selected},
     LookUp(CQImageCollection,
     Name=ThisItem.CQYr & " " & ThisItem.Title & " " & ThisItem.CQTitle & " " & ThisItem.FrstNm & " " & ThisItem.LstNm & " " & ThisItem.AcrdtnAgncy
    ).'{Link}'
     )
    )

    By the way...I am not sure why you have Two links being specified for the Image - the above will return one link??

     

    I hope this is helpful for you.

  • Community Power Platform Member Profile Picture
    on at

    The two links is because on upload the document can be formatted in one of two ways, and the image retrieval needs to be able to find both.

     

    I tried this; it errored.

    3csman_0-1610134287857.png

     

    Also, here is an image of the CQCollection, in case that helps.

    3csman_1-1610135011612.png

     

  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    That's not the formula I provided you.  Please use the following formula - you can copy and paste:

    With({ThisItem: EditCQDetailsGallery.Selected},
     LookUp(CQImageCollection,
     Name=ThisItem.CQYr & " " & ThisItem.Title & " " & ThisItem.CQTitle & " " & ThisItem.FrstNm & " " & ThisItem.LstNm & " " & ThisItem.AcrdtnAgncy
    ).'{Link}'
     )
    )

     

    Also, you can't provide two links to a Image property.  So, I am not sure how you had that working to start with, but I assure you it was a fluke.  You need to provide one.

     

  • Community Power Platform Member Profile Picture
    on at

    I actually just copied the entire gallery over to a blank screen and increased the image size, and created the navigation button redirect.👍

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    Well, that's one way to go about it, but now you'll have a bunch of extra things that you don't need.  All you need is the image control.

    And if you just copied, you're going to have problems with that double link part.  Maybe not now, but I'll be waiting for the post where this fails for you in play mode 🤗

  • Community Power Platform Member Profile Picture
    on at

    Any recommendations on how to create a print button for the image displayed? 

  • RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    There is no ability to print from PowerApps!

  • Community Power Platform Member Profile Picture
    on at

    Oh you of little faith.

     

    How about download instead of print?

  • Community Power Platform Member Profile Picture
    on at

    The image control was in the Gallery. When I just copy the image control and drop it on a blank screen I get an error because the data source (the hosting Gallery) is missing. Not sure how to make it work without the Gallery.

     

    As for the extras I just made everything else Visible, false. I guess I could also delete those fields as long as I redirect the image links back to the old Gallery...maybe.

  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @Anonymous 

    All you needed was to put an image control into your other screen (Insert->Media->Image) and set the image properties as provided.  Images certainly don't need galleries to work!

     

    As for printing...the best you could do is open the image in a browser and from there download or print.  To do so (since you are using the link to the image for the image) you can set the OnSelect action of the image to : Launch(Self.Image)

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard