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: 
sgrice
Partner - Creator II
Partner - Creator II

Access the Comment in any expression

Can I get the value of the comment line in code?

For a given expression I want to be able to get the Value of the

"Comment"

or the value of the label? without knowing the column number.


4 Replies
swuehl
MVP
MVP

Without knowing the column number or the label, how do you want to tell QV which expression to look for?

sgrice
Partner - Creator II
Partner - Creator II
Author

Because the expression can access the row above below. SO it can self reference.

But how can I get it's own Comment or Label?

swuehl
MVP
MVP

I don't think there is a QV function to access these information within an expression.

You can duplicate the label / comment in the expression or reference the same source (e.g. a variable).

What do you want to do with these information in the expression, maybe there are some alternatives?

marcus_sommer

Unfortunately qv had not implemented an object-API within the gui so that a reference like the following would work:

me.ObjectID

me.Name

me.ParentID

me.Properties

...

In general you could get such informations per vbscript but it would be need a lot of efforts to build a stable solution with macro-triggers or the enabling of macro-functions within gui-objects. Beside them see: Macros are Bad.

Therefore you will need some workaround.

- Marcus