Qlik Community

QlikView Creating Analytics

Discussion Board for collaboration related to Creating Analytics for QlikView.

Not applicable

Use of qmem, info and bundle to use custom icons

Hi All,

I'm trying to use custom arrows and icons

I'm trying to embed the files into the qvw using the following script

Images:

BUNDLE LOAD * INLINE [

Img, Image

sad, smile_sad_48.png

grin, smile_grin_48.png

];

then into an expression to call the icon like that

=if($(var1)>$(var2), 'qmem://Img/smile_sad_48.png','qmem://Img/smile_grin_48.png')

It does not work

I changed the reference png to bundled ones an it works:

=if($(var1)>$(var2), 'qmem://Img/smile_sad_48.png','qmem://<bundled>/BuiltIn/led_g.png')

1 Solution

Accepted Solutions

Use of qmem, info and bundle to use custom icons

The reference to the bundle image should be

  qmem://field/value

not the file name..

So in your case,

qmem://Img/sad

qmem://Img/grin

-Rob

http://robwunderlich.com

12 Replies

Use of qmem, info and bundle to use custom icons

The reference to the bundle image should be

  qmem://field/value

not the file name..

So in your case,

qmem://Img/sad

qmem://Img/grin

-Rob

http://robwunderlich.com

richard_chilvers
Contributor III

Re: Use of qmem, info and bundle to use custom icons

I am attempting the same thing as discussed above.

In my script I have :

BUNDLE LOAD * INLINE
MOSAIC_Group, Path
B, Q:\Qlikview Apps\CRUISE\QVD_Data\MOSAIC_B.jpg
E, Q:\Qlikview Apps\CRUISE\QVD_Data\MOSAIC_E.jpg
]

When I LOAD in debug mode, there are no errors (although it doesn't show any images being loaded).

When I use the Images tab on Chart Edit Expression, I see the following 2 listed under Image Folder dropdown:

<bundled>/BuiltIn

MOSAIC_Group/

But ... my 2 images are not available under the Image dropdown.

Advice please?

Thanks, Richard

Re: Use of qmem, info and bundle to use custom icons

It sounds like no images are being loaded.

Create a listbox for field "MOSAIC_Group". Does it have the values B & C?

If you select one of the values, does the info icon "i" appear in the caption? If not, then the jpg files were not found in the load or did not load for some other reason.

-Rob

http://robwunderlich.com

richard_chilvers
Contributor III

Re: Use of qmem, info and bundle to use custom icons

Hi Rob

Thanks for your prompt and helpful response as usual

I have found that if my BUNDLE LOAD does not use an existing field name (from other tables) then the load is fine, but results in an 'orphan' table. Then following your suggestion of a listbox, the "i" does appear in the caption.

My intention was to link images to the existing field called MOSAIC_Group. For example, I could then creat a table chart showing MOSAIC_Group and its related image.

Have I misunderstood the purpose ?

Regards

Richard

PS. How do I mark your previous response as 'helpful' ?

Re: Use of qmem, info and bundle to use custom icons

What you are doing -- two tables -- should work. It sounds like you are running up against some other problem. AutoConcatenation perhaps?

Can you post the relevant script?

I think only the original poster can mark answers correct or helpful.

-Rob

richard_chilvers
Contributor III

Re: Use of qmem, info and bundle to use custom icons

Thanks.

I will take another look, and perhaps post the script later.

Shame I can't acknowledge your help, but thanks anyway.

Richard

Re: Use of qmem, info and bundle to use custom icons

I think you can "Like" my post if you wan to acknowledge it.

-Rob

arieidel
Contributor II

Re: Use of qmem, info and bundle to use custom icons

Only the user who wrote the first message (the owner of the post) can mark an answer as Helpful or Correct.

arieidel
Contributor II

Re: Use of qmem, info and bundle to use custom icons

I had a similar problem with my icons that didn't showed up.

It only worked when I put the BUNDLE LOAD * INLINE sentence at the last/bottom/final tab of the script.

Community Browser