Substr in Auto-texts

Hello there! Today lets talk about how to create a substr in auto-texts. You just have to: 1. Create a new document; 2. Create an HTML Container; 3. Insert this code: <script type="text/javascript"> function substringFunc(){ var username= document.getElementById("pText").innerHTML; document.getElementById("pText").innerHTML = username.substr(1,5); } </script> <p id="pText">{&USER}</p> <script> document.getElementById("pText").onload= substringFunc(); </script> 4. Change the substr values to …

Custom back button for MicroStrategy Web

Hello there! Today let's talk about how to create a back button in a MicroStrategy Web. That's pretty easy, just do that: 1. Create a new document; 2. Insert an HTML Container and paste this tag: <a href="javascript:history.go(-1)">Back</a> Just run your document and click on this link. You will go back to the previous page …

Using Jquery to change IFrame content

Hello there! Today let's talk about a cool hack: How to change the IFrame content using JQuery! I've created this code to substitute the Layout feature in Document using IFrame, so when you click on a selector element or image, for example, it will change the IFrame content using the report/document specified for that selector element or …