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

KB296881: evt=3124 brings users back multiple levels if users click on the URL API multiple times in succession in MicroStrategy Web 10.1 Hotfix 1


Community Admin

• Strategy


This technical note describes expected behavior within MicroStrategy Web 10.1 Hotfix 1 and up where evt=3124 brings users back multiple levels if users click on the URL API multiple times in succession. As a workaround, use HTML Container instead of image links.

SYMPTOM:
evt=3124 used to simulate a back button doesn’t open the previous page in Strategy Web 10.1 Hotfix 1. When users click on the link more than once in quick succession, Strategy Web navigates up multiple levels instead of opening the previous page.
STEPS TO REPRODUCE:

  1. Creating two documents in Strategy Web 10.1 Hotfix 1: Document 1 and Document 2.
  2. Insert the URL API to an image in Document 2 to simulate a back button (refer to KB46131 for more details of the URL API):
    
    Main.aspx?evt=3124&src=Main.aspx.rwd.3124&relativePageNumber=-1 

  3. Run document 1 and click on a text link to open Document 2.
  4. Click on the image link more than once in quick succession before Document 1 is opened. Shared Reports page is opened instead of Document 1.

CAUSE:
This is working as expected. The URL API is designed to navigate up one level. If users click on the link multiple times, the system considers that the user wants to go up multiple levels (the number of levels is based on how many times the user clicks on this link).
WORKROUND:
Use HTML Container instead of image links. Users can then control the behavior through HTML and JavaScript.
Sample Code can be used in the HTML Container:


<a href="Main.aspx?evt=3124&src=Main.aspx.rwd.3124&relativePageNumber=-1" onclick="jsfunction(event)" target="_self">
 <img src="http://www.w3schools.com/tags/smiley.gif <http://www.w3schools.com/tags/smiley.gif>" width="42" height="42" border="0">
</a>

<script language="javascript">
window.jsfunction = function(e){
 console.log("clicked");
    e.currentTarget.setAttribute("onclick","return false");
}
</script>

The img tag provides the image to display and the anchor tag wrapped around it makes the image clickable. After users click on the link once, code inside JavaScript will be triggered. If the JavaScript inside onclick returns false, the link is never triggered.


Comment

0 comments

Details

Knowledge Article

Published:

June 8, 2017

Last Updated:

June 8, 2017