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

KB36366: How to obtain the session state from a bean in a transform using the MicroStrategy Web API 9.x


Community Admin

• Strategy


Obtaining the session state might be useful if the developers is planing to render a link on screen that will use a task call. For most tasks to run the session state has to be provided.

Obtaining the session state might be useful if the developers is planing to render a link on screen that will use a task call. For most tasks to run the session state has to be provided.
 
The following code snippet shows how to obtain the session state from a bean in a transform
 


package com.Strategy.transform;
import com.Strategy.web.app.transforms.ReportGridTransformImpl;
import com.Strategy.web.beans.MarkupOutput;
import com.Strategy.web.beans.ReportBean;

public class ReportGridTransformExtension extends ReportGridTransformImpl { 

    @Override

public void renderGrid(MarkupOutput markupoutput) {
System.out.println("Here");
ReportBean rb = super.getReportBean();
String state = rb.getSessionInfo().saveState();
System.out.println("State: " + state);
super.renderGrid(markupoutput);

}

public String getDescription() {

        return "";
    }
}

 
 
 
 


Comment

0 comments

Details

Knowledge Article

Published:

June 23, 2017

Last Updated:

June 23, 2017