EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

KB402770: Attribute cell values in transaction services grid repeated over bottom cells while scrolling down after incremental fetch is triggered in Express mode in MicroStrategy Web


Community Admin

• Strategy


SYMPTOM:

In a transaction services document in Strategy Web 9.4.0, a grid can be configured so that the user can input values to an attribute column. In the image below, the first column from the left is the ID of the attribute in the second column.  The second column has been enabled as a transaction input and a value of 500 has been manually entered to the first row.  The third column from the left is a metric column, with a value of 700 manually entered as well. The values have not yet been submitted. 

ka04W00000148sDQAQ_0EM4400000026Md.jpeg

Note: The ID column shown above, has duplicated values, however it is not visible in the screenshot, as they are further down below.
 
If the transaction services enabled grid is long enough, like shown above, as the user scrolls down, they will notice that the last value typed in to the transaction-enabled attribute column will repeat across all cells for which the ID, i.e. the first column, repeats, like shown below:
 

ka04W00000148sDQAQ_0EM4400000026Mf.jpeg

 
Notice how after scrolling down, a second cell with ID = 1 exists and all cells for the second column show "500". On the contrary, the metric column that was also configured as a transaction services input did not have the same effect.
  

STEPS TO REPRODUCE:

Follow these steps to reproduce in a Strategy Tutorial project:

  1. Create an attribute that has duplicated ID values with more than 50 elements and several attribute forms, as in the screenshots above.
  2. Create a transaction services document with a report that contains the attribute created in Step 1.
  3. On the transaction services grid, configure an attribute column to be an input.
  4. Add a value to one of the cells, but do not submit.
  5. Scroll down, noticing all cells in the same column are still blank.
  6. Continue scrolling past row 50. Notice that any cell in the transaction-enabled column that is related to an ID row that is the same as the one modified in Step 4 will now show the value inserted in Step 4.  

 

CAUSE:

This is working as designed in Strategy Web 9.4.0. 
 
Consider the following grid: 

 1

 Desc1-1

 10

 1

 Desc1-2

 20

 2

 Desc2

 15

 
 
 
 
 
 
 
When modifying "Desc1-1" to "Desc1-3", internally the following SQL statement is generated:
Sample Code/Error


Set "Att DESC" = Desc1-3 where "Att ID" = 1

 
Since both first rows satisfy the condition, both records would be changed. When the user scrolls down past the 50th row, incremental fetch is triggered for the grid.  When incremental fetch is triggered, the auto-recalculate of transaction services is refreshed, thus any cell that satisfy the condition gets automatically filled out with the value entered last.
 
Note: For more information on incremental fetch in Express mode, refer to tech note KB45293.
 

ACTION:

Having duplicated IDs for any attribute is not recommended. To prevent this issue, modify the ID column of the attribute in question to have only unique IDs. Another option is to set the modifiable column to be a metric object instead of an attribute. Under this scenario, the SQL generated would be as follows:
Sample Code/Error


Set Metric = 25 where "Att ID" = 1 and "Att DESC" = Desc1-1

 
Since only one cell value would satisfy this condition, the issue does not occur.


Comment

0 comments

Details

Knowledge Article

Published:

April 6, 2017

Last Updated:

December 31, 2018