Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi all,
a) Is there a way of getting the name of a theme that was used in a document, and
b) Is there a way of applying the theme in the code - I would like to set up a variable in my document (say "varSetBlackTheme") that will be set to 1 or 0 and then in code:
If varSetBlackTheme = 1
// apply black theme
// else
// Aply white theme
Thanx in advance for your help
Alexis
Anyone know anything about themes? .... please?
Alexis
hi,
you can change theme of your document dynamically by running this macro:
sub A:
set obj = ActiveDocument.GetSheetObject("CH01")
obj.ApplyTheme "C:\Program Files (x86)\QlikView\Themes\forest.qvt"
end sub
Here is the sample app attached:
Change path of themes if macro is not working
Enjoy
Regards,
Arun Goel
Thanx Arun
That was very helpful indeed - thanx - possibly the "Correct Answer".
Can I quickly ask:
a) How can I find out what theme I am currently using?
b) Is there any way that I can save my existing settings into a new theme. The wizard only accepts an exisiting theme (qvt) to act as the starting point before allowing modifications..
Thanx again
Alexis
hi,
There is no such method to find current theme,
for more methods like this you can refer to QV-API.
Found the attached file
Regards,
Arun Goel
And yes you can save youe existing theme ,
just follow these steps:
1. goto chart properties >> layout tab>>Use Theme maker
2. select which object theme you want to save.
3. Click next until finish, thats it.
Regards,
Arun Goel
Thanx Arun,
The problem that I have is that I have an application that started life using one of the supplied themes but I have modified the look and feel so much that I just want to save the latest "look", as is, into a new template. The
the theme maker (in version 10 at least), asks to select one of the themes as a starting point; I cannot remember which one I used ane neither (as you confirmed) can I extract the name from the project/document properties.
Regards
Alexis
hi,
I am using QV 11 and in this you can save your theme using thememaker, there is no need of selecting a default theme ...you can select templateas none....then select one of your object of your theme in next step..
Regards,
Arun Goel
Its the same in QV10 - I must have missed it - thank you.
What I am a little unsure is that the Theme Maker bases the new theme on just the one object you select (say a chart) - how do you define the look for a table for example. Do you save the theme and then go back iteritively using the new template as your base and add more and more object types as you go along?
Thanx again for your input. Your help has been very helpful.
Alexis
For some thoughts on themes and how they can be useful you may want to look at this blog posting: http://bit.ly/UbuJEN
- Steve