You are viewing limited content. For full access, please sign in.

Question

Question

Why does Token Calculator allow only numeric or manually created tokens?

asked on August 23, 2024

I've wondered about this, and decided today that it was worth a discussion.  I assume Token Calculator was originally designed for math functions, but it has moved beyond that.  "Substitute" is a very useful function, for example; I used it today to replace a substring in a series of entry names.  In order to do that, however, I had to manually create a token via a separate "Assign Token Values" activity, set the "For Each Entry -> Current Entry Name" to it, and then reference that token.

 

Why not just allow me to reference the current entry name token directly within the Token Calculator activity?

0 0

Answer

SELECTED ANSWER
replied on August 26, 2024

Oh, that's what you meant. The token list does some filtering to keep lists from getting to unwieldy. That's done by type and it looks like we made assumptions there on data type. It's for display though, it wouldn't be blocked at runtime.

All tokens are still available through the token dialog. Or you can type it in.

1 0

Replies

replied on August 26, 2024

You can select %(CurrentEntry_Name) from Token Dialog:

2 0
replied on August 23, 2024

Where are these tokens coming from?

0 0
replied on August 26, 2024 Show version history

Hi Miruna,

Chao is correct, and that's a far simpler workaround.  Now I just feel dumb for not checking the token dialogue blush

To answer your question, I was looking at the token selector within the Token Calculator's base dialogue box; you can see below that only numeric (and date, if you look around more) tokens appear in that dropdown.

I think the question of why it's set up that way is still a more-or-less valid one, though the workaround isn't difficult.

0 0
SELECTED ANSWER
replied on August 26, 2024

Oh, that's what you meant. The token list does some filtering to keep lists from getting to unwieldy. That's done by type and it looks like we made assumptions there on data type. It's for display though, it wouldn't be blocked at runtime.

All tokens are still available through the token dialog. Or you can type it in.

1 0
You are not allowed to follow up in this post.

Sign in to reply to this post.