Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
we have company logo showing in a QVW, want the logo changes when users picks different company. how can this be done in QV.
thanks
Hi Zou,
Load the logo images using the following code as an example. In this example the logos are named Logo1.png, Logo2.png, etc...and are located on my C drive in afolder named "Logos".
Logos:
Bundle Info Load * Inline [
Logo, Image
Logo1, 'C:\Logos\Logo1.png'
Logo2, 'C:\Logos\Logo2.png'
Logo3, 'C:\Logos\Logo3.png'
Logo4, 'C:\Logos\Logo4.png'
...add as many as you need here...
];
Reload your document. This will bring the logos in to your document for use in the procedure below.
Create a Text object and in the Text expression area find your loaded images using the Image tab. Select Image folder "Logo" (as defined in the load script above) and then select one of the logos.
Next, while still in the text object dialog go to the Layout tab and set the Show >> Conditional to <your company name field> = 'company 1' so that this text object only shows when you select that company.
Repeat the text object for as many companies you have, making sure each one conditional shows only if the company name field matches what is selected.
With this method if no company is selected nothing will show.
--john
Take advantage of conditional shows and variables. I attached a sample demo to give you an idea of what I mean
in your qlikview installation folder (C:\Program Files\QlikView\Examples\Documents) there is a qlikview app
Presidents.qvw
In the last tab, Photo, there is an example of changing thr image based on user selection
Hi Zou,
Load the logo images using the following code as an example. In this example the logos are named Logo1.png, Logo2.png, etc...and are located on my C drive in afolder named "Logos".
Logos:
Bundle Info Load * Inline [
Logo, Image
Logo1, 'C:\Logos\Logo1.png'
Logo2, 'C:\Logos\Logo2.png'
Logo3, 'C:\Logos\Logo3.png'
Logo4, 'C:\Logos\Logo4.png'
...add as many as you need here...
];
Reload your document. This will bring the logos in to your document for use in the procedure below.
Create a Text object and in the Text expression area find your loaded images using the Image tab. Select Image folder "Logo" (as defined in the load script above) and then select one of the logos.
Next, while still in the text object dialog go to the Layout tab and set the Show >> Conditional to <your company name field> = 'company 1' so that this text object only shows when you select that company.
Repeat the text object for as many companies you have, making sure each one conditional shows only if the company name field matches what is selected.
With this method if no company is selected nothing will show.
--john
Thanks all the help!! one more
could conditional show work with Bookmark? we've create a book mark for company and other selection criteria, ideally when user click the bookmark, logo changes
Yes, it should, as long as the bookmark selects 1 company.
Also, depending on your specific needs, please select the above response that best answers your question and mark it as Right Answer. Also, you can mark others as Helpful Answers. This allows others to find solutions to their problems.