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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Retrieve data from a text object?

We have an application that is doing calculations in a text object. Is there a way to get the data from that text object and use it in another text object?

Thanks.

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

Yes you can use text object values in another text object by using Macro and variable.

Take one variable to store text object values buy using macro

and text object propery GetText Property

ex. Variable_name = TextObjectName.GetText

and then you can use Variable_name value in onther text box

Hope this will help you

Rahul

View solution in original post

6 Replies
Not applicable
Author

Coudn't you just use the code from the first Text Object in the second Text Object with any changes you require. Clean up the code by using variables.

I know it isn't the most efficient solution, but it is what I would do (Probably because I don't know any better - I would love to see if there is an easier solution. Might help with some Text Objects I have in some reports).

Not applicable
Author

Hi,

Yes you can use text object values in another text object by using Macro and variable.

Take one variable to store text object values buy using macro

and text object propery GetText Property

ex. Variable_name = TextObjectName.GetText

and then you can use Variable_name value in onther text box

Hope this will help you

Rahul

Not applicable
Author

OK, thanks. I haven't done much with macros yet, but will give it a try.

jasonseril
Creator
Creator

how about to another object, like from text object to chart or table objects? Do you have some example application for this? thanks in advnace

Not applicable
Author

I made a simple sample application, but this application starts with a variable (which you can set in the load script) and then derives information from it...

this looks easier to me than playing with macro's (although the code might be a bit complicated)

Not applicable
Author

ok reading your question better this might not at all be what you're looking for, but it's still pretty cool, no? 🙂