Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

To change the default color selection

Hi,

I am having a scenario in which if i select a timeline(for Eg. selected month as Apr), the default Green color is for month dimension and for remaining dimension as light grey color.

Now i would like to change the default color from Green to Blue, and the remaining unselected item as white. Is this possible in qlikview.

Please advise.

Thanks,

Rohit

Labels (1)
1 Solution

Accepted Solutions
Anil_Babu_Samineni

Simple Macro may be?

Sub MacrotoChangeColor()

Dim UserPrefs

set UserPrefs = _

ActiveDocument.GetApplication.GetUserPreferences

UserPrefs.CustomSelBgColor(1).PrimaryCol.Col = _

RGB (0,0,255) ' Blue

UserPrefs.CustomSelBgColor(5).PrimaryCol.Col = _

RGB (255,255,255) ' Light gray

ActiveDocument.GetApplication.SetUserPreferences _

UserPrefs

end sub

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

5 Replies
Anil_Babu_Samineni

There is no Straight forward with out Macro. May be this?

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
qlikview979
Specialist
Specialist

may be helpfull,

Change selection color

Anil_Babu_Samineni

Simple Macro may be?

Sub MacrotoChangeColor()

Dim UserPrefs

set UserPrefs = _

ActiveDocument.GetApplication.GetUserPreferences

UserPrefs.CustomSelBgColor(1).PrimaryCol.Col = _

RGB (0,0,255) ' Blue

UserPrefs.CustomSelBgColor(5).PrimaryCol.Col = _

RGB (255,255,255) ' Light gray

ActiveDocument.GetApplication.SetUserPreferences _

UserPrefs

end sub

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

Hi,

I have applied the changes and it is working fine at the application level. But, when i have placed the same application into access point it is giving me the default color selection i.e. green not blue.

I do not know the exact issue.

Thanks in advance!!

Rohit

Anil_Babu_Samineni

Is it, Can i know which client of Access point you are seeing?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful