Reference self in tag expression?

Is it possible to reference the expression tag itself in an expression tag’s expression?

For example, I want to get the containing tag’s name dynamically:
lookup({[.]Daily Table Row Counts}, '[dbo].[' + {[.].Name} + ']', None, 'TableName')

I can’t get the {[.].Name} reference right though… if it’s even possible.

I can’t find the relative path references (./, ../, and [.]) referenced in the user manual anywhere either, hoping that it would have been included in the same spot…

Hi @nminchin, the only reference I have found to relative paths in the manual is here.

I have also struggled to use relative paths. I’m sure I spotted a post somewhere (or it was in the IU videos) that stated relative paths didn’t work well in certain scenarios :thinking:. I have resorted to using the full tag path in most circumstances, but this is a PITA when it comes to review and changes :sweat_smile:

Edit: the link above does have reference to the {this} keyword. This might help on your situation?

1 Like

Thanks for the reference and yep that works, sweet! I was going to try that before I posted, but thought it wouldn’t work :upside_down_face:

Cheers!

I used {this.name} for reference

2 Likes