Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: dashboards,reports in lifreray iframe 6.2

  1. #1
    Join Date
    Aug 2013
    Posts
    139

    Default dashboards,reports in lifreray iframe 6.2

    hello all,


    we integrate liferay 6.2 and pentaho 5.01 successfully and both running on same port

    now i posted pentaho reports on liferay portal using iframe for display purpose


    copied url of report and posted in source and authentication type:form and methodost

    Field name username as j_username value Admin
    password as j_password value password

    but this is not working i have to login manually every time, if i login for one report every other pentaho-iframe(dashboards,saiku,reports) works fine


    we did same in pentaho 4.8 and liferay 6.1 with joe&password it worked successfully but not on 5.0 and liferay 6.2


    Name:  Untitled.jpg
Views: 80
Size:  17.6 KB
    Last edited by suresh84c; 06-11-2014 at 02:23 PM.
    Thank U For Your Time
    Suresh

  2. #2
    Join Date
    Jan 2013
    Posts
    100

    Default

    same problem

  3. #3
    Join Date
    Aug 2013
    Posts
    139

    Default

    HI


    Just add this function in puclogin.jsp




    function customLogin(){


    // if we have a valid session and we attempt to login on top of it, the server
    // will actually log us out and will not log in with the supplied credentials, you must
    // login again. So instead, if they're already logged in, we bounce out of here to
    // prevent confusion.
    if (<%=loggedIn%>) {
    bounceToReturnLocation();
    return false;
    }


    jQuery.ajax({
    type: "POST",
    url: "j_spring_security_check",
    dataType: "text",
    data: {j_username:"XXXXXX",j_password:"XXXXXX",locale:"en_US"},


    error:function (xhr, ajaxOptions, thrownError){
    if (xhr.status == 404) {
    // if we get a 404 it means login was successful but intended resource does not exist
    // just let it go - let the user get the 404
    bounceToReturnLocation();
    return;
    }
    //Fix for BISERVER-7525
    //parsereerror caused by attempting to serve a complex document like a prd report in any presentation format like a .ppt
    //does not necesarly mean that there was a failure in the login process, status is 200 so just let it serve the archive to the web browser.
    if (xhr.status == 200 && thrownError == 'parsererror') {
    document.getElementById("j_password").value = "";
    bounceToReturnLocation();
    return;
    }
    // fail
    $("#loginError").hide();
    },


    success:function(data, textStatus, jqXHR){
    if (data.indexOf("j_spring_security_check") != -1) {
    // fail
    $("#loginError").hide();
    return false;
    } else {
    document.getElementById("j_password").value = "";
    bounceToReturnLocation();
    }
    }
    });
    return false;
    }
    and call this function under $(document).ready(function(){


    what it does is, it automatically login into bi server when the usernamexxxxx and password xxxxxx are created in PUC
    otherwise you can login with your user id and password as always
    i avoided extra login for now but this is temporary solution as i am planning to cas+pentaho+liferay
    Last edited by suresh84c; 06-18-2014 at 06:36 AM.
    Thank U For Your Time
    Suresh

  4. #4
    Join Date
    Aug 2014
    Posts
    1

    Default

    Hi suresh

    Can you give more information about how you integrate pentaho and Liferay ?
    Thank

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.