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

Question

Question

Retrieve token list from JRA

asked on June 2, 2015

From LF client, users can select a token from a list as a template field value based on field data type. For example, for Date type, the options are 'Date' and 'Parent Field'. If 'Date' is selected, the syntax %(Date) will be inserted and replaced by LF server date when the document gets uploaded.

How can we get the same info with regard to applicable tokens and corresponding syntax using JRA?

0 0

Replies

replied on June 2, 2015

Most of the tokens are processed by the Server, whether or not their is a picker is just a UI nicety. Have you tried just providing those tokens as field values in your jRA code? 

0 0
replied on June 2, 2015

If I entered the syntax as field value, it can be processed by server. I would like to know how we can provide a list of tokens for users to choose from instead of asking them to type in the syntax manually as they may not know it.

0 0
replied on June 2, 2015

This page lists all of the ones I know.  I don't think there is an API call to get a list of the tokens, and it doesn't really make sense to have one, since your application would typically show a meaningful text label to the user instead of the token itself.  But to do that, you need to know in advance what the complete list is.

0 0
replied on June 3, 2015

I'm looking for an API that returns a list of 'meaningful text label' along with the syntax. The text label will be displayed to users and the syntax will be applied underneath when uploading to the server. When you say 'know in advance', do you mean that we need to hard code the list somewhere in the application since we cannot retrieve it programmatically? If that is the case, will it be possible that the list can be different from company A to company B? Since our application will be used by multiple customers, unless it's always the same and cannot be modified by customers, the hard-code way doesn't seem to be a good solution. Do you have other suggestions how to solve the problem?

0 0
replied on June 3, 2015

I'm looking for an API that returns a list of 'meaningful text label' along with the syntax

There is no such API call.  In the Laserfiche architecture, localization is handled at the application layer and the SDK does not have a translated display name for each token in every supported language.  It's up to your application to handle this, as Web Access and the thick client do.  In many use cases not every token will make sense to present to the user, so you probably don't want to offer a complete list anyway.

will it be possible that the list can be different from company A to company B

It won't vary by company, as there's no way for customers to define their own.  The list I linked to is the complete list.

0 0
replied on June 3, 2015

The linked list is an unofficial document for LF 8.0. Do you have an equivalent one for 9.0 with same info, or they're exactly the same?

0 0
replied on June 3, 2015
0 0
replied on June 3, 2015

Thanks for the info. Although it doesn't specify clearly the convertible data type for each one, I should be able to figure it out based on the description. Given that this is a static list with no customer update allowed, I will save the list somewhere in the application with name, symbol and supported data type included, and present it for user selection from UI.  Hopefully this will achieve the same feature as what LF client provides.

Thank you all for your support.

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

Sign in to reply to this post.