Is there a [_THISUSER] keyword?

I am seeing the following message. Is there such an active keyword named “_THISUSER” that we can use? And if so, what is its scope and how is it set?

3X_c_f_cfb30cb956634a45bb697aabf636ec484e15c9b1.png

0 7 825
7 REPLIES 7

It’s just a different notation for referencing the USERSETTINGS(). I use when I need to dereference a Ref stored in USERSETTINGS(). It’s not mentioned much (or at all?) in the docs, but I saw it somewhere and started using it.

I suppose then that it requires having a USERSETTINGS attribute named “User”? If not, how does it know which setting to refer to?

The expression assistant checks for a USERSETTING that matches the parameter, and throws an error if you don’t reference an existing setting. I just tested, and it even considers the default, unused entries as valid, like Option 8, Option 9'.

Steve
Platinum 4
Platinum 4

I’d call this a feature!

Just noticed it on the USERSETTINGS table header.
3X_3_2_32f4d0a671ea0799387060272c8412087640bb2d.png

Oh, I get it!

USERSETTINGS(Roles)

Is the same as

[_THISUSER].[Roles]

At one point, you couldn’t dereference the USERSETTINGS() format in an expression, but the [_THISUSER] format worked.

It works both ways now, and you can even double-dereference.

Top Labels in this Space