Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Load images into Script

Hi guys,

I've read I few post on this but cant quite get it to work !!!

I have 3 images saved in a folder on my drive (s:)

\\vs1bkcfc2\bkccops\ Qlikview\Qlikview Images\Yes.jpg

\\vs1bkcfc2\bkccops\ Qlikview\Qlikview Images\No.jpg

\\vs1bkcfc2\bkccops\ Qlikview\Qlikview Images\Maybe.jpg

I'm looking to load them in with the script so I can use an if statment on a text object to show each one ,

Can anyone advise of the laod please ?

Thanks

A

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hi,

The following will include the images in the QVW file, then you can see them in the expression dialog in the Images tab.

Images:

BUNDLE LOAD * INLINE [

ImageID, Path

Yes, \\vs1bkcfc2\bkccops\Qlikview\Qlikview Images\Yes.jpg

No, \\vs1bkcfc2\bkccops\Qlikview\Qlikview Images\No.jpg

Maybe, \\vs1bkcfc2\bkccops\Qlikview\Qlikview Images\Maybe.jpg

];

Check this thread just in case.

Hope that helps.

Miguel

View solution in original post

9 Replies
Miguel_Angel_Baeyens

Hi,

The following will include the images in the QVW file, then you can see them in the expression dialog in the Images tab.

Images:

BUNDLE LOAD * INLINE [

ImageID, Path

Yes, \\vs1bkcfc2\bkccops\Qlikview\Qlikview Images\Yes.jpg

No, \\vs1bkcfc2\bkccops\Qlikview\Qlikview Images\No.jpg

Maybe, \\vs1bkcfc2\bkccops\Qlikview\Qlikview Images\Maybe.jpg

];

Check this thread just in case.

Hope that helps.

Miguel

Not applicable
Author

OMG Thanks Miguel so simple and works perfect

Thanks

Anne

Not applicable
Author

OMG Thanks Miguel so simple and works perfect

Thanks

Anne

Not applicable
Author

Hi Miguel,

Do you know how to enable the images to show up in the browser using AJAX?

They are perfectly displayed in the local version of the application & WebView in both listboxes and straight tables/pivot tables and so forth but won't appear in the browser.

Thanks,

Jerome

Miguel_Angel_Baeyens

Hi Jerome,

If you are doing a bundle load, the images should be withing the QVW file, and therefore show correctly. I have tested a text object in Server 11 SR2 11414 with a bundled load image viewed with Chrome in Ajax and it displays all right.

What version are you using and how are you loading the files?

Miguel

Not applicable
Author

Hi Miguel,

For some reason when I deployed the application on the server the images weren't included during the reload, and were therefore not displayed in the local file.

It's now working (although images are croped in webView and not in classical view). Thanks for your support!

Cheers,

Jerome

Not applicable
Author

Hello Miguel, thank you for sharing.

I have follwoed the instructions step-by-step, but the images are not available for preview

See attachment for clarity. Any steer would be much appreciated. Thank you.

bundle-image-upload.jpg

Not applicable
Author

Hello Miguel, thank you for sharing. I have follwoed the instructions step-by-step, but the images are not available for preview See attachment for clarity. Any steer would be much appreciated. Thank you.

bundle-image-upload.jpg

Not applicable
Author

Hola Miguel Angel, muchas gracias por esta tan buena solución.

Pero tengo un problema, que al crear el BUNDLE, en la ruta que pongo es como si no encontrara las imágenes, ya que no las muestra.

Por ejemplo si yo tengo una imagen ( foto1.png) y está en ( C:\\Imágenes\foto1.png ).

¿Cómo lo tengo que poner para que se referencie la imagen?

Un saludo y muchas gracias.