URL API to renew Mobile cache

Hello there, Today let's talk about how to force the mobile app to get the new cache from IS using an URL API. To do that, just add one of those URLs as a link: mstr://?evt=2048030&useCache=0, refresh against data warehouse and generate new cache in Intelligence Server.  mstr://?evt=2048030, refresh against existing Intelligence Server cache; mstr://?evt=2048030&useCache=1, refresh …

PHP Function for get a session using TASK API with IIS

Hello there! I've created a PHP function to help you create a session using TASK API for PHP with IIS. Here is the code: <?php function authenticationMSTR($server, $project, $user, $pass, $documentId, $dashboardMode) { $projectUrl = str_replace(" ","%20",$project); $projectTask = str_replace(" ","+",$project); $username = 'username'; $password = 'password'; $context = stream_context_create(array( 'http' => array( 'header' => "Authorization: …

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 …

Using TASK API getSessiongState with PHP

Hello there! If you read the last post  Using TASK API getSessiongState with .net here is a PHP code that does the exact same thing for Tomcat: <?php $url = "http://username:password@localhost:8080/MicroStrategy/servlet/taskAdmin?taskId=getSessionState&taskEnv=xml&taskContentType=xml&server=localhost&project=Example01&uid=administrator&pwd=123456";   $xml=simplexml_load_file($url); foreach($xml->children() as $child) { foreach($child->children() as $child1) { $sessionmstr = $child1; break; } } header("Location: http://server/Microstrategy/asp/Main.aspx?evt=2048001&src=Main.aspx.2048001&visMode=0&currentViewMedia=2&documentID=7F6C3933429AFFAE5538AFAE113AB6C1&server=server&Project=Tutorial&port=0&share=1&usrSmgr=$sessionmstr "); ?> That's it! Hope it helps! …