Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
If you are a Qlik Insight Bot user, join this collaborative group: JOIN GROUP
Highlighted
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
Highlighted

Re: Load images into Script

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
Highlighted

Re: Load images into Script

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

Highlighted
Not applicable

Re: Load images into Script

OMG Thanks Miguel so simple and works perfect

Thanks

Anne

Highlighted
Not applicable

Re: Load images into Script

OMG Thanks Miguel so simple and works perfect

Thanks

Anne

Highlighted
Not applicable

Re: Load images into Script

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

Highlighted

Re: Load images into Script

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

Highlighted
Not applicable

Re: Load images into Script

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

Highlighted
Not applicable

Re: Load images into Script

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

Highlighted
Not applicable

Re: Load images into Script

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

Highlighted
Not applicable

Re: Load images into Script

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.