Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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!
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.
Hi
Can you please attach sample file?
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
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
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
See attached file, notice the gap between messages.
This is rough and ready but you get the idea
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.
Tried this.. getting the same behavior..
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