Web report - return drilldown state & filter values using Javasript

I am customising a BW web report using Javascript.
Can anyone tell me how I can read whether a particular characteristic is drilled down and the filter values applied using Javascript?
thanks,
Hans

Hi,
for the drilldown state use:
SAPBWGetDataProviderDimensions
http://help.sap.com/saphelp_nw04/helpdata/en/af/00453c3ff4110ee10000000a11405a/frameset.htm
for example:
var dim = SAPBWGetDataProviderDimensions("DATAPROVIDER_1");
if (dim != null){
  for(m=0;m<dim.length;m++){
    if (dim[m][4]=='X')
           alert(dim[m][0] + ' is in Columns');
    elseif (dim[m][4]=='Y')
           alert(dim[m][0] + ' is in Rows');
As for the applied filters: You need to use the web item filter with generate_caption= and only_values=X inside a <span>-tag with an id. then use document.getElementById('YourId').innerHTML to get the applied filters.
Heike

Similar Messages

  • Return all the column values using the F4IF_INT_TABLE_VALUE_REQUEST

    Hi,
    How to return all the column values using the F4IF_INT_TABLE_VALUE_REQUEST?
    For example : if the row has 3 columns then after selecting the particular row, the RETURN_TAB internal table should contain all the three column values.
    Regards,
    Raghu

    Hi,
       Try the following...
    DATA : it_fields like help_value occurs 1 with header line.
    data: begin of w_vbap,
            vbeln      like vbap-vbeln,    
            posnr      like vbap-posnr,   
            werks      like vbap-werks,  
          end of w_vbap.
    data: i_vbap   like w_vbap   occurs 0 with header line,
             w_fields type help_value,
          i_dfies type table of dfies,
          i_return_tab type table of ddshretval with header line,
          i_field  type dfies.
      select vbeln posnr werks
          from vbap into table i_vbap up to 5 rows.
    if sy-subrc = 0.
       sort i_vbap by vbeln.
    endif.
      clear it_fields[] , it_fields.
      it_fields-tabname = c_vbap.
      it_fields-fieldname = 'VBELN'.
      it_fields-selectflag = c_on.
      append it_fields.
      it_fields-tabname = c_vbap.
      it_fields-fieldname = 'POSNR'.
      it_fields-selectflag = space.
      append it_fields.
      it_fields-tabname = c_vbap.
      it_fields-fieldname = 'WERKS'.
      it_fields-selectflag = space.
      append it_fields.
      loop at it_fields into w_fields.
        i_field-tabname   = w_fields-tabname.
        i_field-fieldname = w_fields-fieldname.
        i_field-keyflag   = w_fields-selectflag.
        append i_field to i_dfies.
      endloop.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
        exporting
          retfield               = 'VBELN'
         window_title           = 'Select'
        tables
          value_tab              = i_vbap
          field_tab                = i_dfies
          return_tab             = i_return_tab
       exceptions
         parameter_error        = 1
         no_values_found        = 2
         others                 = 3
      read table i_return_tab into w_return_tab index 1.
      if sy-subrc = 0.
      endif.
    Regards,
    Srini.

  • How to filter values using presentation varible if it is using a multiselec

    Hi Gurus,
    Could you pls suggest me here.
    I have a requirement like my OBIEE 10G version report is not filtering the values when we select any value in Dashboard prompt.
    I tried to create a presentation varible in prompt for filtering but for prompt under control it is given an MULTI SELECT.
    i need to filter the values .now though we select any value in prompt ,it is not picking any value.
    How to filter the values using MULTI SELECT Here.Please suggest me here .
    Regards,
    SK

    Hi User,
    In, the physical layer go that column and change datatype from double to int and save the rpd.
    This should resolve your issue.
    Even, it is not required to modify or use cast function to change datatype.
    Else,
    Change the datatype of column in the Business layer.
    This should resolve your issue.
    Assign some points if this helps you :)

  • BEx Web report returns 500 Internal Server Error

    Hi all,
    a user says that he can't run a BEx Web report (query BEx embedded in a WAD web template) because it returns the generic error "500 Internal Server Error". In the screenshot below some more informations about this issue:
    Some other informations:
    - says he can run others BEx Web report (which use the same WAD template on different queries)
    - says he can run the query via RSRT (so I guess there are no authorization problems)
    - says he can run this specific report with another user on his PC
    - says he can't run this specific report with his user on another PC
    - I copied his user and I can run this specific report.
    - browser used: internet explorer 8
    Any suggestions?
    Thanks,
    Michele

    Hi Michele
    Could you refer the SAP Notes
    1722983 - Recommendations to resolve 'NO ESID FOUND' error
    1801130 - How to troubleshoot issues in BICS Remote Web Service for Xcelsius/Dashboard Designer
    Regards
    Sriram

  • Migrating a webi report from one environment to another using import wizard

    Hi Everyone,
    Can anyone please tell me what all access should I have on my ID to be able to migrate a webi report from one environment to another environment(e.g. from development to quality).
    Regards,
    Neeraj Sharma

    Hi,
    To use the Import Wizard utility, you basically need Administrator, Full Control to Top-level folder, and "Add objects to the folder" and "Edit objects" for this user on the root folder.
    You need the least restrictive role, because you require absolute control for content promotion between 2 entitlement systems.
    the webi document is the cherry on-top,  you;ll have universes, connections, folders to bring over too. 
    Regards,
    H
    p.s. check Note 1450708 - How to restrict access to the Import Wizard from a Business Objects Enterprise system
    and
    Note 1297121 - What rights needed to use Biar File Extraction for a normal user while using Import Wizard ?

  • Linking a WEBI report through hyperlink in a webpage using open document

    Hi All,
    I have a hyper link in a web page which when clicked should open a WEBI report. I created it using the open document feature.
    Once clicking on the link, InfoView login credential page is displayed. After logging in the report runs.
    My client does not want the login page to be displayed since most of the users does not remember their password (since SSO is implemented).
    He wants to bypass this login page so that most of the users can directly view the reports.
    Question:
    Is there a way to achieve this i.e without asking for login credentials or by passing this?
    Possibilities :
    1: To create ID's for all the people (which I think is not a feasible option in my project)
    2: Create a guest account with minimum privileges and share the password with all the users.
    Note:
    1: I use BO XI R 3.1.
    2: No SDK is installed to do any programming.
    Any suggestion are most welcome.
    Thanks in advance
    Shreyas

    Hi Shreyas,
    Manual Easy Way for doing the activity in SAP Business Objects 4.0:
    This method is useful if we have a special system account that we want everyone to use.
    You will notice that all we do is generate a logon token using the appropriate username, password and CMS variables. Then we append the token onto ivsLogonToken.
    Note: The numbers on the url after /BOE/portal represents the timestamp of the last patch or install.  You can put whatever you want under the number section and Business Objects will automatically redirect to the appropriate start.do
    Step I:
    Go to the SAP BusinessObjects\Tomcat6\webapps\BOE\WEB-INF\eclipse\plugins\webpath.InfoView directory and edit custom.jsp
    Step II:
    You can copy the contents from the custom.jsp that I’ve provided below to your custom.jsp.
    Cutom.JSP File
    <%@ page import="com.crystaldecisions.sdk.exception.SDKException" %>
    <%@ page import="com.crystaldecisions.sdk.framework.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.infostore.*" %>
    <%@ page import="com.crystaldecisions.sdk.occa.security.*"%>
    <%@ page import="java.net.*"%>
    <%@ page import="com.crystaldecisions.enterprise.*"%>
    <%@ page import="com.crystaldecisions.sdk.plugin.admin.*"%>
    <%@ page import="java.sql.*"%>
    <%@ page import="com.businessobjects.webutil.Encoder" %>
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    <%
    //BO Session and redirect to Infoview
    IEnterpriseSession enterpriseSession;
    /* * Set Enterprise Logon credentials. */
    final String BO_CMS_NAME = "bi4server";
    final String BO_AUTH_TYPE = "secEnterprise";
    final String BO_USERNAME = "Daya";
    final String BO_PASSWORD = "admin@123";
    ILogonTokenMgr logonTokenMgr;
    String defaultToken = "";
    * Log onto Enterprise
    boolean loggedIn = true;
    try {
    //Create session token
    enterpriseSession = CrystalEnterprise.getSessionMgr().logon(Daya,admin@123, BI4SERVER,Enterprise);
    logonTokenMgr = enterpriseSession.getLogonTokenMgr();
    defaultToken = logonTokenMgr.createWCAToken("", 20, 1);
    //Redirect with token attached to the ivsLogonToken parameter
    response.sendRedirect("http://"+BO_CMS_NAME+":8080/BOE/portal/1205291547/InfoView/logon/start.do?ivsLogonToken="+Encoder.encodeURL(defaultToken));
    catch (Exception error)
    loggedIn = false;
    out.println(error);
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    </body>
    </html>
    Edit the username,Password & BOBJ Server Name'in BOLD Letter
    Step III:
    Stop tomcat, then delete contents in the SAP BusinessObjects\Tomcat6\work directory.
    Then start tomcat again and the work directory will be regenerated with new code.
    Step IV:
    Trusted Authentication:
    Trusted Authentication is a component of Enterprise authentication that integrates with third-party single sign-on solutions, including Java Authentication and Authorization Service (JAAS). Applications
    that have established trust with the Central Management Server can use Trusted Authentication to allow users to log on without providing their passwords.
    This method is really cool because users don’t even have to know their passwords.  Basically with this method you can log into another system and if that system has the appropriate user name, you can pass it to the custom.jsp and then it will log you into BI Launchpad.
    In addition, you don’t need to create any java code for the enterprise token setup.
    Step V:
    In the CMC, go to Authentication, then select Enterprise.  Check Trusted Authentication is enabled, then click on New Shared Secret.  Finally download the shared secret key and keep it somewhere secure
    Step VI:
    Copy global.properties from <INSTALLDIR>\SAP BusinessObjects Enterprise XI 4.0\warfiles\webapps\BOE\WEB-INF\config\default into <INSTALLDIR>\SAP BusinessObjects Enterprise XI 4.0\warfiles\webapps\BOE\WEB-INF\config\custom.  Then using Notepad or another text editing utility, edit the following properties
    sso.enabled=true
    trusted.auth.user.retrieval=WEB_SESSION
    trusted.auth.user.param=UserName
    trusted.auth.shared.secret=<secret code from properties file you created in step 2>
    Step VII:
    Go to the SAP BusinessObjects\Tomcat6\webapps\BOE\WEB-INF\eclipse\plugins\webpath.InfoView directory and edit custom.jsp
    <\!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page language="java" contentType="text/html;charset=utf-8" %>
    <%
    //custom Java code
    request.getSession().setAttribute("MySecret","32efbfbd35efbfbdefbfbd4363efbfbdefbfbd694aefbfbdefbfbd227530efbfbd5742efbfbd13efbfbd2befbfbd1fefbfbdefbfbdefbfbdefbfbd4e49efbfbd41550cefbfbd15703619d8b8efbfbd6cefbfbdefbfbd57efbfbd0defbfbdefbfbdefbfbd0605efbfbd6dc59b2728efbfbd");
    request.getSession().setAttribute("UserName", "Daya");
    %>
    <html>
    <head>
    <title>Custom Entry Point</title>
    <script type="text/javascript">
    function goToLogonPage() {
    window.location = "logon.jsp";
    </script>
    </head>
    <body>
    <a href="javascript:goToLogonPage()">Click this to go to the logon page of BI launch pad</a>
    </body>
    Edit the username(Daya) variable
    Step VIII:
    Stop tomcat, then delete contents in the SAP BusinessObjects\Tomcat6\work directory.
    Then start tomcat again and the work directory will be regenerated with new code.
    Hope this help you as well.
    Thanks,
    Daya

  • When web reports returns no output

    What happens when a web reports generates no output?
    I have the case where the browser downloads a text file which has my reports server name.
    (e.g. repserverxx.txt)
    Please advise.

    Since no one has responded and I've found a solution myself I shall post my findings:
    If I set the DESTYPE to CACHE and the DESFORMAT to DELIMITED, the resulting data is displayed in the browser which can then be saved away to the local machine using FILE/SAVE from the menu bar. This is the best I can come up with. The users get what they want , it just means they can't run the report directly to a file from the parameter form, they have to preview the output then save.

  • Web Report Heading for any dynamic value- see inside

    Hi All,
    I am having a pecular requiremnet . I have one field called CS import Date in infoprovider which is contant like 11.12.2208 .
    Now Users want this CS import date to be added  in the heading in the Web report . Just to let u know that we have web templete also for this report .
    Now , tell me how can I add CS import date in the heading of the Web report ? .
    Thanks
    Pankaj.

    Create a text variable with replacement path on this date.
    For steps refer: http://help.sap.com/saphelp_nw04s/helpdata/en/43/565cd22fc95f6ce10000000a1553f6/frameset.htm
    Also if you search forum on text variable with replacement path you'll get plenty of posts
    Edited by: sam hennry on Apr 14, 2008 3:28 PM

  • WEBI Report returns results even though the Infocube is empty

    Hi all!
    I have the following problem with WebIn report refresh functionality:
    Step 1 -> I run my WebIn report this way: double click on my folder >> double click on my WebIn report >> the prompt values     pop-up appears and I choose a given MONTH and click RUN. After that, my report brings some values that are stored in the infocube. No problem SO FAR!
    Step 2 -> I go to RSA1 in BW and clean the infocube, leaving it without registers.
    Step 3 -> I do STEP 1 again and my WebIn report still brings data that was in the infocube before, but no longer exists! The report should bring 0 register as the infocube is empty.
    It sounds to be a cache problem! I went to CMC >> Servers >> WebIn Server and unchecked the CACHE boxes, in order to bypass the data in cache but, it did not work.
    Does somebody has an ideia of what is going on??
    Thanks a lot.
    regards.

    Hi Alican!
    I actually built the report again, from scracth.
    I checked Universe and no errors came out.
    regards.

  • How to use linked filters in webi reports.

    Hii.. all
    I want to know how can i  use related or linked filters in webi reports.
    that means if i am using three diff filters as f1 for Zone f2 for location and f3 for sales office
    then if have selected a zone from the zone  filter (for ex west) then the location filter should show only the locations which comes under that zone and the third filter should show only those sales offices which comes under the selected location from the filter..
    Plz help..
    thanks

    hi Neeraj,
    1. In Universe Take Storename, city, State, region, Country objects
    2. Double click on Storename, go to properties tab and click on edit button. Query panel will open.
    3. Double click on city and click on sort button, double click on state and sort it, double click on region and sort it, double click on Country and sort it.
    4. If you want to keep any condition like particular country, you can drag country object in to the Conditions pane.  If not leave it empty.
    5.Click on Save and close button. Save the universe and export it.
    6. In webI drag and drop the Storename object and click on 'Add Quick Filter' button.  Now all the columns you included in the list of values appear in the Add Quick Filter dialog box.
    Now You can select the values from here and run the query.  you will get the result.
    One more way is there using cascading LOVs
    1. Go to Tools menu > List of values > Create Cascading list of values.
    2. Double click on Country, Region, State, City and Storename.  Close it.
    3. Save and export the universe.
    4. In webi drag and drop the objects in result objects pane, apply query filter and run the query.
    Now you will get the result.

  • Displaying Prompt values in webi report

    Hi,
    How to display prompt value in my webi report.
    For one prompt value I can user Userresponse function.
    In one of my report, I have a prompt for Date, which also should be displayed in the report under one field. I am using the below formula: =UserResponse("Enter Date:")
    But my new requirement is User wants a Date Range for a particual trasaction date. I created a report level prompt like
    Transaction Date Between "Enter Tran Date(Start):" and "Enter Tran Date(End):"
    I need to display the start date and end date user selected under one field Date in my webi report.
    how should I do that.
    Please share your thoughts.
    Thanks,
    Ven Men

    Hi Ven,
    You have created a report level prompt like
    Transaction Date Between "Enter Tran Date(Start):" and "Enter Tran Date(End):"
    1.Drag two blank cell on report.
    2.click on one blank cell and on formula editor type following formula.
    =UserResponse("Enter Tran Date(Start):" )
    This will show you start date in the cell.
    3.Similarly in another cell type the following formula
    =UserResponse("Enter Tran Date(End):" )
    This will show you End Date in respective cell.
    Do revert in case of any queries.
    Thanks,
    Sandeep B. Singh

  • WEBI Report values Double as compared to BI/BEX Report.........

    Hi,
    I am trying a report in BOBJ. When I run the WEBI report it doubles the Column values as compared to BI report. There are no filters, conditions or anything in the report. Tried purging the data and running the report but no change. has anyone come across this situation and if so how did you resolve it? Please let me know.
    Thanks...... ShruMaa

    Hello Shruti,
    as you refer to a Webi problem I recommend to post this query to the [BusinessObjects Web Intelligence|SAP BusinessObjects Web Intelligence; forum.
    This forum is dedicated to topics related to the creation and design of Web Intelligence documents using the Web Intelligence Report Panels. This includes areas such as universe connectivity, prompts, charting, formatting, filters, and formulas.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Webi queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • Webi Report values Double as compared to BEX Report....

    Hi,
    I am trying a report in BOBJ.  When I run the WEBI report it doubles the Column values as compared to BI report.  There are no filters, conditions or anything in the report.  Tried purging the data and running the report but no change.  has anyone come across this situation and if so how did you resolve it?  Please let me know.
    Thanks...... ShruMaa

    Hello Shruti,
    as you refer to a Webi problem I recommend to post this query to the [BusinessObjects Web Intelligence|SAP BusinessObjects Web Intelligence; forum.
    This forum is dedicated to topics related to the creation and design of Web Intelligence documents using the Web Intelligence Report Panels. This includes areas such as universe connectivity, prompts, charting, formatting, filters, and formulas.
    It is monitored by qualified technicians and you will get a faster response there.
    Also, all Webi queries remain in one place and thus can be easily searched in one place.
    Best regards,
    Falk

  • BEx Web Application Designer - Info Field - Display Static Filter Values

    Hi there,
    I'm not sure if anyone is having the same issue I am having... but here goes.
    I have the option DISPLAY STATIS FILTER VALUES turned on in my 0ANALYSIS_PATTERN & 0ANALYSIS_PATTERN_EXPORT web print templates for printing to PDFs from the Query Designer.
    - If I have it turned on, all the filters (including the dynamic) are displayed with about 4 rows of empty space between each line.
    - If I have it turned off, the dynamic filters are displayed normally.
    Does anyone know how to affect the font and spacing of this setting?
    Note:  As it is the the standard print template, I can't add the perameters of which filter to display.
    Please let me know if you have any ideas.
    Thanks, Audrey

    Hi Edward,
    Help to your answer I could understand my mistake. I was customizing the Data Binding part instead of the Internal Display.
    I did the following :
    [ ]Display Static Filter Values
    [ ]Display Genertal Text Elements
    [ ]Display Dynamic Filter Values
    [x]Display Variables
    [ ] Only Variable with values
    And it is working now.
    FYI: no need to uninstall and reinstall the Bex tools, it worked directly with the latest patch.
    Regards,
    Laurent

  • Objects used in a Webi Report

    Hello Friends,
    I need to identify all the Webi reports in BI 4.1 that use a particular object from the universe. I have never used RESTful Web Services SDK before, Does anyone have a sample code that I could use as a starting point to get this info?
    Regards,
    -CF

    Hi Chris,
    I guess you wont find someone posting a complete sample for your question.
    The task itself is not that complex and can be achieved with the REST webservices.
    Basically you need to use the webservice endpoints for the semantic layer and the web intelligence sdks - usually http://<server_name>:6405/biprws/sl/v1 and http://<server_name>:6405/biprws/raylight/v1
    With the semantic layer you fetch the universes
         - <slURL>/universes
    then the universe details with the outline
         - <slURL>/universes/5808
    There you can identify the object and then use the webi sdk to fetch all documents  
         - <webiURL>/documents?offset={offset}&limit={limit}
    iterate through them and get the list of dataproviders
         - <webiURL>/documents/{documentId}/dataproviders
    then the dp details    
         - <webiURL>/documents/{documentId}/dataproviders/{dataProviderId}
    There you go with all the information you need.
    Hope this helps
    Jan

Maybe you are looking for

  • Customer PO from sales Order Header

    I want to get the customer PO(VBKD-bstkd) from Order header, Iam trying with the following select but it doesnt work. any suggestions, or code snippet help?   SELECT SINGLE bstkd INTO rt_outtab-bstkd         FROM vbkd WHERE vbeln = rt_outtab-vbeln   

  • Lion server unable to read settings and errors in logs.

    Having bought Lion Server from the app store yesterday and followed the simple install ... the web server is working ok in that the home page appears, but cannot get wiki server to work. Am getting the message "error reading settings" in the right pa

  • Field alignment

    My transaction screen fields are not aligned. I took two fields in a same row giving them different columns but they are not aligned. How can I show them aligned ? Thanks in advance, Sujit

  • Paste Special - unicode text equivalent

    When using Excel, I could copy tables from PDFs or Web Pages, then use "Paste Special" and "unicode text" to paste into a new document. By doing this, all data would go into appropriate columns. I can't figure out how to do this type of copy/pasting

  • Time Machine Issue -- Error not found anywhere

    I am having a Time Machine issue in which the error displayed cannot be found anywhere: Google, Bing, Apple, etc. The error message is: "Time Machine couldn't find some of its settings on the backup disk "BACKUP". Make sure the backup disk is connect