Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
avantime
Creator II
Creator II

Text objects in Container not arranging properly - trying to create a message panel

Hi,

I am trying to create a container to be a kind of message panel in which I have conditional showing text objects.

All fine and dandy until some of the objects meet their conditional showing conditions and disappear, leaving a blank space where they should have been. The messages are not rearranging, their position remains static even when disabled.

Is it possible to have dynamic arrangement of these text objects?

Any other ideas in creating a message panel?

Thank you!

1 Solution

Accepted Solutions
sudeepkm
Specialist III
Specialist III

yeah that's possible. But we can not use a list box anymore as the back ground color can't be controlled. I've attached an example using a straight table where you can find colors per message item. Again it is all data driven so you can control them without having the QVW to be modified only data reload is required.

View solution in original post

18 Replies
bindu_apte
Creator III
Creator III

Hi

Can you please attach sample file?

Anonymous
Not applicable

try to put each textobject in an own Container

then all your Container with textobject in final container

now textobject may be not shown due to condition, but (sub) Container still there

you can work with properties that it Looks like your current design!

I know that this is a Workaround.

what you describe is correct behaviour

marcus_sommer

The position of an object didn't change if it's visible or hidden and there are also no practically methods to read or even change the position of an object (theoretically it would be possible with macros but this isn't recommeded and far away from easy). Therefore I thin you need to change your approach and put your message in one textbox (maybe with some nested if-loops and a some variables to keep it maintainable).

Edit: if it's a matter of layout then take a look here: QlikTip #39: Displaying Html content within QlikView (Minimalistic HtmlTextBox Object Extension)

- Marcus

adamdavi3s
Master
Master

Some sort of variable scenario would do this...

Either store messages to a variable and put them all in one text box, or maybe cascade the messages into relevant text boxes depending if they exist....

Poorly written example on the fly-

e.g. variables set to blank if no message

v_message_1

v_message_2

v_message_3

textbox 1 = if v_message_1 = '', if( v_message_2='', v_message_3,v_message2),v_message_1)

textbox 2 =  if( v_message_2='', v_message_3,v_message2)

textbox 3 = v_message_3

avantime
Creator II
Creator II
Author

See attached file, notice the gap between messages.

adamdavi3s
Master
Master

This is rough and ready but you get the idea

avantime
Creator II
Creator II
Author

Thank you for your suggestion but I need multiple text boxes with actions set on each of them for linking to relevant sheets in the application.

avantime
Creator II
Creator II
Author

Tried this.. getting the same behavior..

adamdavi3s
Master
Master

Hi Catlin,

Sorry I am not understanding the scenario in that case, can you expand on what the idea is?

I still think using variables will be the way to go for you, the trick is just getting them set up correctly