Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Not applicable

how to change color of active text object.

how to change color of active text object.pls give steps as i cant open other qvw file.

10 Replies
Sokkorn
Honored Contributor

Re: how to change color of active text object.

Hi,

Right click on object -> Chart Properties -> Caption tab -> play around with "Inactive Caption" and "Active Caption"

Rgds,

Sokkorn

Not applicable

Re: how to change color of active text object.

thnx ..bt i dont want use caption..any other option.

Sokkorn
Honored Contributor

Re: how to change color of active text object.

Hi,

Does it do you job or not? What specific requirement you looking for?

Rgds,

Sokkorn

Not applicable

Re: how to change color of active text object.

i have done set varaible on text box.once u click, it opens chart..i hav multiple such text objects doing same work.now i want if any text object is selected then it should be hightlighted.

rustyfishbones
Honored Contributor II

Re: how to change color of active text object.

You Can do the following

Create a Variable called control.textobject and set the value to 1

Create a Text Obect

Add an Action > Set Variable to control.textobject and the Value to 1

Background Color say IF(control.textobject = 1 , green() , RGB(237,238,239))

Font Color Say  IF(control.textobject  = 1 , WHITE() , green())

Then you should add an action to the object you want to show or hide

This video may help you

https://www.youtube.com/watch?v=RrTqtFy3i0g

Not applicable

Re: how to change color of active text object.

thx i was looking for this nly..:)

Sokkorn
Honored Contributor

Re: how to change color of active text object.

Hi,

Do a trick like this:

Let say we have variable vTextObj. Now in "Action" tab for Text Object 1 -> Add "External" action -> "Set Variable"

    . Variable: vTextObj

    . Value: 1

Go to "General" tab -> Click "Color" -> Click "Calculated" -> Use expression =If(vTextObj1=,Red(),White())

Untitled.png

Rgds,

Sokkorn

Not applicable

Re: how to change color of active text object.

thnx Sokkorn..i did it..

kaustubhgarg
New Contributor

Re: how to change color of active text object.

thanks alan but when i'm adding this condition to all objects, at a time text of one object should be highlighted but this is not actually happening in my case.

pls suggest solution for this.

thanks in advance

Regards

Kaustubh