cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
3csman
Impactful Individual
Impactful Individual

How to Open Image in Another Tab or Window

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

 

15 REPLIES 15
RandyHayes
Super User III
Super User III

@3csman 

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)

 

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

3csman
Impactful Individual
Impactful Individual

Never mind. Got it. Yes it works.

 

BTW, the download is working (apparently). I say apparently because I've not been able to find the downloads. Where do the downloads go?

RandyHayes
Super User III
Super User III

@3csman 

Of course not!!!  Because I had a slight typo in the formula I provided 😂

Give this a shot:

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

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!
3csman
Impactful Individual
Impactful Individual

Ha, that dog won't hunt, either. 🤣

 

The condition is for the box on the left. A copy of the image control from the Gallery on the other screen. No image appears.

 

The box on the left if the copied Gallery and Image control. You can see the image is present.

3csman_0-1610141773683.png

 

3csman
Impactful Individual
Impactful Individual

How do I use the download Icon to download the image, rather than using the image and Launch(Self.Image)?

RandyHayes
Super User III
Super User III

@3csman 

So, I am not sure if you are keeping the image in the gallery, but if you are, then you can simply have the image control on the other screen and set the Image property to :

 

EditCQDetailsGallery.Selected.yourImageControlName.Image

As for the download icon, just set the OnSelect of that to : Launch(yourImageName.Image)

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (59,142)