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

Question

Question

Forms Instance Variable ordering?

asked on March 3, 2023

In Forms 10 and 11 when you go to Monitor\Instances and then select an instance and choose the Variables tab the variables listed sometimes seems to be in a random order. At first, they appear to be in alphabetical order, but as I scroll down, I find out that is not the case. How does Forms order the variables listed on this page? Can this be changed to always be in alphanumeric order instead?

3 0

Replies

replied on July 17, 2023

We have enhanced the feature in Froms 11 Update 4.

The variables list in monitor page are in alphabetical order no matter there are variables added in the summary details or not.

You can see other changes from Froms 11 Update 4:

List of Changes for Laserfiche Forms 11 Update 4 - Knowledge Base

Get Forms 11 Update 4 from Laserfiche 11 package:

Software versions and fixes included in the Laserfiche 11 Download Package - Knowledge Base

1 0
replied on March 6, 2023

Hi Blake,

 

The order is alphabetical order indeed, but we also support customize the order in Process Options> Summary Details from process diagram, where you can customize the variables' order, and follow the settings first, then alphabetical.

And I believe we won't change to always use alphabetical order, or it will break this feature.

0 0
replied on March 6, 2023

We only have 5 variables listed in Summary Details, but we have more out of order variables than just those 5. You can see in the screenshot below that it goes F, L, L, D, E, F, G, G.

0 0
replied on March 6, 2023

Could you show me what is the Summary Details look like right now?

0 0
replied on March 8, 2023

Here you go:

0 0
replied on March 9, 2023

Hi Blake,

 

We use the javascript sort(a, b) function to order the variables on monitor page.

First, when you add the variables to reorder list in Summary Details, each of the variable in it will have an index, the index is stored in cf_bp_dataset.is_user_in_summary column, other variables that's not reordered will have null value.

When it's loaded, it first get a list of variables , then sort on this variable list:

It first checks if the two input params of the sort function has index or not, if both have, it compares their index value and order them accordingly; if at least one of params do not have index, it uses alphabetical order.

 

This is what we expect the rule to work but you are correct that it makes some mess, I filed bug 417469 for this, we will consider enhance it in future release.

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

Sign in to reply to this post.