Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Use Object ID in an expression

HI,

Am I able to use object ID in an expression.

I want, for example, Textbox B to be visible when textbox A is hidden, Textbox B to be hidden when textbox A is visible.

I have something in my mind like

if( ObjectID(for textbox A) =1, ObjectID(for textbox B) to 0,ObjectID(for textbox B)=1 )

10 Replies
Anil_Babu_Samineni

Where you want to implement this, I mena which senario

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
Anonymous
Not applicable
Author

I have a Textbox a with some condition that will hidden or visible. Now I want a textbox B with condition to be hidden or visible based on textbox visibility.

Anil_Babu_Samineni

You want to hide only One Text object or all objects which is related to Text object.

Let me explain bit more, What was happen Some client need to be as if one Text object is visible they want hide remaining Text objects (That qlik has capable). But, If you want to hide only that sheet (It bit difficult to justify). Somehow, I need more analysis on the same

Can you clarify me on this

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
Anonymous
Not applicable
Author

hi, I guess I only want to hid one object. In fact, is more of hide a text object when 3 text object is visible. There are all in the same sheet.

susovan
Partner - Specialist
Partner - Specialist

May be like this,

But I used variable to hide the object.

PFA

Warm Regards,
Susovan
Anonymous
Not applicable
Author

Hi,

able to screenshot the script and varibles? I am unable to view due to personal editions. Sorry for the trouble.

susovan
Partner - Specialist
Partner - Specialist

For TextBox1:

Action

Variable : VHidden

Value : 1
Layout

Conditional : =vHidden=0

For TextBox2:

Action

Variable : VHidden

Value : 0
Layout

Conditional : =vHidden=1

Please find the attached images for the ready reference.

48.JPG

49.JPG

Warm Regards,
Susovan
Anonymous
Not applicable
Author

Box 1 Action.JPGBox 1 Layout.JPGBox 2 Action.JPGBox 2 Layout.JPGVariables.JPG

This is what I have enter on both the texboxs. However, but textbox is hidden. Not sure what I am missing out

tamilarasu
Champion
Champion

Hi Jia,

Variables are case sensitive. Type the correct varibale name (whatever you created in variable overview window) in your Textbox1 action and layout properties.


vHidden => Vhidden

Capture.PNG