Get table ID for drill down (javascript functions)

I want to implement some custom drill downs. When you click on a column to drill down, it uses the following javascript function: RTDr(saw_5_6,0,0) where in this case, "saw_5_6" is my current table. Since this is dynamically set and the table name can change, is there a property that i can get this table name from?
I see where the object is created....(dynamically I might add)
window.saw_5_6 = new Object();
saw_5_6.sJSObjName = 'saw_5_6';
Just wondering if there is a way / property that gives me this information so I can call RTDr() and supply it the correct table name.
Thanks.
Edited by: Derek on Nov 9, 2010 2:28 PM

If there is only one table on the page then you can use my function as it is. I wrote it to implement custom writeback. Of course you can modify it to get all table objects.
function getSawTableObject(){
     var ptrSawTableObjectName = /saw_.\d/;
     var obj = null;
     for (var propertyName in window){
          if ((ptrSawTableObjectName).exec(propertyName) && String(propertyName).charAt(0) == 's'){
               obj = window[propertyName];
               break;
     return obj
}

Similar Messages

  • INVALID_VARIABLE_VALUES error for drill down/up

    Hello ,
    I have created a VC model corresponding to a BI query. The query has 3 variables of which one is mandatory the value for which i am hardcoding.In the output table we have a heirarchy variable for
    which I wish to use the drill up and drill down features.But after applying these features, and running
    the application ,on clicking the drill down/up buttons i get the following error
    Nested Exception. Failure to execute native function. Nested Exception. INVALID_VARIABLE_VALUES
    The variable format seems to be fine as I have tried it from the BI side and it also generates the output in the VC output table.Following is the webapi used for drill down .
    'FILTER_IOBJNM=YGL_ACCNT;FILTER_NODE_IOBJNM=0HIER_NODE;FILTER_VALUE='&#ID[ACC40T]@G_L_Account&';FILTER_COLLAPSE= ;FILTER_IOBJNM=YGL_ACCNT;CMD_1=CMD%3DDRILL_TO_LEVEL%26LEVEL%3D2%26IOBJNM%3DYGL_ACCNT%26DATA_PROVIDER%3DDP;'
    Any help would be most appreciated.
    BI 7.0,VC 7.0
    PS: have already gone through the wiki link for this error
    Thank You
    Rgds

    Vineeth,
    Please see my comments below:
    1)The complete web api command is in the above thread, the mandatory variable is the fiscal year.
    I don't see where you have defined the fiscal year in the web API command below:
    'FILTER_IOBJNM=YGL_ACCNT;FILTER_NODE_IOBJNM=0HIER_NODE;FILTER_VALUE='&#IDACC40T@G_L_Account&';
    FILTER_COLLAPSE= ;FILTER_IOBJNM=YGL_ACCNT;
    CMD_1=CMD%3DDRILL_TO_LEVEL%26LEVEL%3D2%26IOBJNM%3DYGL_ACCNT%26DATA_PROVIDER%3DDP;'
    2)am not too sure about your question.
    Is the hierarchy for YGL_ACCNT defined as a text hierarchy or characteristic hierarchy?  If it is a characteristic hierarchy, you should specifiy the parameter FILTER_NODE_IOBJNM=YGL_ACCNT instead of FILTER_NODE_IOBJNM=0HIER_NODE.
    3)the command is as intended as per the sap documentation
    If you are following the SAP documentation, the first occurrence of FILTER_IOBJNM=YGL_ACCNT should be removed as it is already defined after the FILTER_COLLAPSE parameter.
    Regards,
    Mustafa.

  • KCA0 - Convert Aspect for drill-down report in ECC6

    Hello experts,
    Do you know the steps to convert an aspect (for drill-down reports) from 3.0 to ECC6? And how to add it to the list in transaction KCR0 (Execute Drill-down report). SAP has mentioned transaction KCA0 for doing a conversion after the upgrade but I am not familiar with this transaction. Please help!
    Thanks and Best regards,
    Chuong

    Hi,
    You can use all the statements in HR also.
    For getting the AB values,there are macros and function modules available.
    Macros:
    rp-imp-c2-b2.
    You need to pass b2 key values before calling macro.For eg,
      MOVE pernr-pernr  TO b2-key-pernr.(since u r using LDB)
      MOVE year         TO b2-key-pabrj. (year you need to pass)
      MOVE period       TO b2-key-pabrp. (month)
      MOVE '1'          TO b2-key-cltyp.
    have a look at these Function Modules also.
    HR_WORK_SCHEDULE_TIMES
    HR_TIME_RESULTS_GET
    HR_TIME_RESULTS_IN_INTERVAL
    HR_WORK_SCHEDULE_TIMES
    Reward points if helpful.
    Regards,
    Manoj.

  • Set headers for drill-down reports.

    Hi!!!
    The problem we have by now is when printing a report, selected characteristis are showed in header as "multiple values" instead of showing the real values that user have choose.
    Does anybody knows how to set headers for drill-down reports in order to see selected characteristics?
    Thanks in advance...
    Adela Cambiasso.

    Sorry, me again...
    I have found yet they way to show in the header the report parameters, I mean, the selection criterias that user used when execute the report... I was able to show selected characteristics inside de report but not the selection criteria...
    Do you know what I have lost? or what to use for this?
    Thanks again.
    Adela.

  • Javascript Problem for Drill Down Action in SSRS Report when integrated to PPS 2010

    Hi all,
    I have a SSRS report which is integrated to PPS 2010(Performance Point Services) and it is having a drill down action through Go to URL action(I wrote javascript:void(window.open('xxxxx')) to open drill down report in new window).
    This report has 5 parameters and all are multiple valued. Drill down report is opening very well when I open the report form Report Manager for any number of parameters values selected. But when I integrate the same report is PPS and deployed to SharePoint
    then it is working only for 23 parameter values selected in PPS filters. If I select more the 23 values in PPS filters then the drilldown report is not opening.
    But it is working well in Chrome, I verified in IE and Mozilla, both browsers are having problem.
    When I look at Error Console of Mozilla, it is showing a javascript error as "Error: uncaught exception: ReferenceError: window is not defined" but the same report is working well if I select less than 24 filter values.
    Please provide me the solution
    Thanks in advance

    Hi Vasu,
    The issue might occur due to the Microsoft security update MS11-100 which limits the maximum number of form keys, files, and JSON members to 1000 in an HTTP request. Here, I suggest that you modify the Web.config file of the SharePoint site as follows:
    <appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="10000" />
    </appSettings>
    If the SharePoint site uses the port 80, the web.config file of the SharePoint site is located in the C:\inetpub\wwwroot\wss\VirtualDirectories\80 folder.
    Reference:
    An ASP.NET request that has lots of form keys, files, or JSON payload members fails with an exception
    If the issue persist, please check whether there are any related errors in the Reporting Services log file which is located in <Drive>:\Program Files\Microsoft SQL Server\MSRSXX.<Instance Name>\Reporting Services\LogFiles.
    Regards,
    Mike Yin
    TechNet Community Support

  • Create a drill down in function

    HI all,
    I could need some help, but I don't know if it is even possible.
    Currently we use in a BI-IP workbook two levels on input. We use a filter setting in workbook function to give other chars filter values.
    Example of the problem:
    We've a layout with compcode, material and a keyfig
    First we do input on compcode and material, both chars are in row so we can enter data.
    Secondly we want to plan only compcode, with help of a function we put material to # (FILTER_VALUE_EXT). Causing material to be removed from layout.
    Now we want to plan again compcode and material. So we remove filter value. ANd the issue is that the user need to put manually the material as drill down to rows.
    Does someone now a need VBA trick or simple FIlter option for this? (Example is not respentative for problem, but is easiest to explain like this)
    Thanks!
    JvdP

    Hi,
      I advice you to go for VB coding only for the following scenarios,
    1. User wants to see calculated values using the data from two reports.
    2. User wants to display extended text in the workbook.
    3. User wants special formatting in the Report like merging cells, making text bold, highlighting columns or cells.
    In you case, you can actually include material as an attribute for compcode and then load the attribute master data in your BW system. Then you can create dropdown box on material and include a Exit variable for material, which gets filled by the value of compcode. The logic of your variable Exit code should be as follows,
    Check in the master data table for the material attribute value of compcode to fill the dropdown box.
    Try this approach and let us know whether your issue is solved or not.
    Note:
    For more information on the VB usage in BEx kindly refer to the following document,
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0ac5c27-7448-2c10-86aa-b513703c9f25?quicklink=index&overridelayout=true
    Regards,
    Balajee

  • Changing the table name while drill down at the dashboard query

    I have a DAY fact table that has about 1B rows.
    The purpose of this table is to store on hand quantity for each item per day.
    On the presentation layer I have a dashboard that will display average on hand qty per year and then user can drill down to quarter/month/week and then by day level to see the actual value at evey level.
    Its hard to run aggregation on fly as all my 3 TEMP tablespace 32gb each filled and then I get error can not extent TEMP file.
    So I thought I will do the aggregation at the database level and store the aggregated data in another table. So at first dashborad will read this new aggregated table to display qty at yearly. As soon as user drill down to quarter the dashbord should query the actual DAY fact table by filtering for specific year and quarter.
    IS it possible? Can I change the table name while I drill down to lower level?
    Thanks in advance.

    Hi use,
    Yes. This is possible in OBIEE. You need to use Action Links to have navigation between reports. The main idea is to have 2 analysis. One with your aggregated data by year (using your aggregated table), and another one with the rest of the hierarchy and data (using normal fact table)
    You add an action link on this report, that can navigate to the second report. showing "the details" (in your case would be the rest of the time dimension).
    Please refer to http://www.rittmanmead.com/2010/07/obiee-11gr1-action-framework-and-conditions/ for actions links.
    Another way is to create 2 analysis, then go to the 2nd analysis, and filter the column year as "Is based on results of other analysis" and you select there the first analysis. In this case when you click on the year in the first analysis, this value will be passed to the second analysis so you can filter the rest of the hierarchy based on the year you clicked on the first analysis.
    If helpful, assign points.
    J.

  • Crystal Help for drill down

    I am trying to figure out what I have wrong... The below formula allows me to drill down (little yellow arrow beside my doc type column) and see journal entries, and incoming payments, but I get errors for Credit Memos and Invoices.
    Both the Doc Type and Doc # are string fields so it should be working......
    So can anyone give me some help as to why it works for two of the four ?
    THANKS
    Select {Command.Doc Type}
    Case "AR Invoice":'http://$b1$/link?table=OINV&key='+ {Command.Doc #}
    Case "AR Credit Memo":'http://$b1$/link?table=ORIN&key='+{Command.Doc #}
    Case "Incoming Payment":'http://$b1$/link?table=ORCT&key='+{Command.Doc #}
    Default: 'http://$b1$/link?table=OJDT&key='+{Command.Doc #}

    Hi Dayton
    The drilldown needs the docentry  rather than docnum so you may need to add this field to your command as an extra field if it is not already there.  It does not need to be printed.
    Once you gave the docentry set up the formula as
    'http://$b1$/link?table=OINV&key=' & totext({Command.DocEntry},0,u201Du201D,u201Du201D)
    so that any decimals, separators etc are removed.
    Hope this helps
    Rob

  • Strange behavior with hidden text field for drill down

    Hi All,
    I am pretty sure I know the cause, just not sure how to work around...
    I am trying to create a drill down report just like in the App Dev guide, and I have done everything the same as the example (2 times, once to follow the guide, and now on my app). The only difference is that I am using a text field rather than a numeric field as the link. This shouldn't be a problem (I wouldn't think) except that the text I NEED to use has '<==' in the middle. So when I check my session state var's, this is what I see:
    CHPAG0SC_MAILCDN_000000047_ CHPAG0SC_MAILCDN_000000047_ <==20060525101642
    When what I should see is:
    CHPAG0SC_MAILCDN_000000047_ <==20060525101642
    So I think that I am gettting duplication because of the characters, but again I don't know how to solve it.
    Any thoughts would be appreciated.
    Corey

    Hi Scott,
    I am trying to create a drill down report similar to the one in the app developers guide. I have a query on pg 1 that includes the required text field as the link. When I click the link, I get an error on pg 2 - which is trying to use the value from pg 1. I did check and saw that even though I set this value in session state (I thought that was what happened when I assigned the 'name' and 'value' in the column link), it is passed in the url, which is where I figured it was breaking. As stated, I need to use this text value as it is the only unique key for the data (currently - this is a data validation step (not an ApEx validation), where users are handling issues with data uploaded from a csv).
    My current process is as follows:
    1. User uploads 2 csv's
    2. Proc moves (from wwv_flow_files) and parses csv back into records and inserts into temp (all varchar2) table(s).
    3. User is displayed 3 'reports' - for each type of validation required - from the stage/temp table
    4. User would click on the 'Edit' link (like the drill down sample) to see more details about the record.
    5. Once the user is done with these reports, they would click another button to 'process' the data (move it into base tables)
    Because the text field is always unique, I figured I wouldn't create a sequence for this like I have for the 'base' (destination) tables.
    I didn't know that I was using a 'get' rather than a 'post', but of course it is a link, not a button - so I should ahve known better.
    Is there a way to do this without adding a sequence generated id for each, or is that just the quickest way?
    Thanks again,
    Corey

  • Pre-requisites for Drill-Down from Hyperion Planning to Oracle GL

    I am using Hyperion Planning 11.1.2 for maintaining budgets. I do comparison of actual vs budget in Hyperion. I export actual results from Oracle General Ledger (11.5.10) in flat file and upload to Hyperion planning using FDM. I maintain mapping in FDM for flat file and the Hyperion members.
    Q1) Is it possible to drill down actual numbers from Hyperion planning to Oracle General Ledger via FDM?
    Q2) If yes, what are prerequisites for using drill-down functionality?
    Can anyone please answer and refer some link/material that may help me in setting this up?
    Thanks in advance.

    Thanks
    But when i try to log in i m getting error bellow"
    Failure of server APACHE bridge: No backend server available for connection: timed out after 10 seconds or idempotent set to OFF."
    So do u have any other reference plz
    thanks

  • FM to get table names for a given Apllication Component.

    Hai Friends,
    I have to create a function module which functions exactly as the INFORMATION SYSTEM button in se16 table help.
    i have written something like this but this is not giving exact results as INFORMATION SYSTEM IN SE16.
    for ex.  for componet sd-bil it gives 376 records where as in se16 you get only  30 to 40 table...
    So pls help me with the tables and logic...
    SELECT
              B~DEVCLASS
              INTO CORRESPONDING FIELDS OF TABLE IT_TDEVC
              FROM DF14L AS A
              INNER JOIN TDEVC AS B
              ON A~FCTR_ID = B~COMPONENT
              WHERE A~PS_POSID = COMPONENT.
      LOOP AT IT_TDEVC.
       SELECT TABNAME TABCLASS FROM DD02L
                      appending corresponding fields of table  TABLE_LIST
                      WHERE APPLCLASS = IT_TDEVC-DEVCLASS
                      AND ( TABCLASS = 'TRANSP'
                      OR TABCLASS = 'POOL' OR TABCLASS = 'CLUSTER')
                      AND AS4LOCAL = 'A'.
    *                  append table_list.
    * endselect.
       ENDLOOP.
    This is just a test program so ignore the performance issues .
    Waiting for your help..
    Reshali.

    Hi,
    Try the below code....
    REPORT  zsen_information_system.
    PARAMETER w_comp TYPE ufps_posid.
    TYPES : BEGIN OF y_tdevc ,
              devclass TYPE devclass,
            END OF y_tdevc.
    TYPES : BEGIN OF y_table ,
              tabname  TYPE tabname,
              tabclass TYPE tabclass,
            END OF y_table.
    DATA : it_tdevc TYPE STANDARD TABLE OF y_tdevc WITH HEADER LINE
         , it_tab_list TYPE STANDARD TABLE OF y_table WITH HEADER LINE
    SELECT b~devclass
      INTO TABLE it_tdevc
      FROM df14l AS a
      INNER JOIN tdevc AS b
      ON afctr_id = bcomponent
      WHERE a~ps_posid = w_comp.
    SELECT tabname FROM info_tabl
      INTO TABLE it_tab_list
      FOR ALL ENTRIES IN it_tdevc
      WHERE as4local IN ('L','A','N')
        AND tabclass IN ('TRANSP','VIEW','CLUSTER','POOL')
        AND devclass = it_tdevc-devclass.
    IF sy-subrc EQ 0.
      LOOP AT it_tab_list.
        WRITE /: it_tab_list-tabname.
      ENDLOOP.
    ENDIF.
    Hope this will solve your problem
    Thanks and regards,
    Senthil Kumar Anantham.

  • Chart Components : Option to select a item for drill down by Label name

    Hi
    Currently for all Chart components in Xcelsius in Drill down mode we do not have the option to insert the X Axis Label values by selecting the Label on the X- Axis. It is made mandatory that we should click on any of the Series and that too we get only Position or Value but not Label.
    Why should some one necessarily click on a particular series to drill down. Why cant he drill down by just clicking on x axis label. This seems to be a general requirement but I did not find this option. Am I missing something?
    I want to check whether if we will do have the option to select the label name by just clicking on the X-axis labels.
    Please note: I know the other alternatives of getting the label by enabling a series and inserting the position and using some label based menu to derive the Label.
    Regards
    Gangadhar

    hi
    then do like this
    dont use drill down option for that.
    take push buttons and one combo box.
    place those pushbuttons into X-Axis Labels and transparent them.
    combobox is used for dynamic Data Retrival.
    in ComboBox Component behavior properties you have option Selected Item(Type and Item) in that item should be map to Pushbutton Destination cell.
    you will get data as per your Requirement(Like you can drill down from X-axis Labels).
    Regards
    Prasad

  • Layout problem for Drill down ALV Report

    Hello Everyone,
                           I have developed a ALV drill down report using the method G_GRID->SET_TABLE_FOR_FIRST_DISPLAY. The problem is what ever layout i save for the primary list 'Screen 100' is effecting my secondary list 'Screen 200'.  User need to save both Screen 100 and Screen 200 layouts independently without affecting each other.
    I am calling  screen 100 as below,
    Call metthod g_grid_100->set_table_for_first_display
      Exporting
       i_Save                                     = 'A'
       is_layout                                 =  ls_layout
       is_Variant                                =   ls_Variant
      Changing
       it_outtab                                  =  ct_poitems
       it_fieldcatalog                           =  lt_fieldcat
      Exceptions
       Invalid_parameter_combimation   = 1
       Program_error                            = 2
       too_many_lines                         = 3
       others                                       = 4.
    Could any body suggest me a way to do this..
    Thanks in advance.
    Regards,
    Shyam.

    Hi,
    Use multiple Layout structure (each alv have its own structure) .
    Note the use of disvariant-log_group .
    DATA: gs_disvariant_1 TYPE disvariant ,
               gs_disvariant_2 TYPE disvariant .
    * Layout-Logical groups
    CONSTANTS: gc_log_group_1 TYPE disvariant-log_group VALUE 'ALV1' ,
                            gc_log_group_2 TYPE disvariant-log_group VALUE 'ALV2' .  
    INITIALIZATION.
      PERFORM at_initialization .
    FORM at_initialization .
    DATA: vari TYPE disvariant-variant .
      PERFORM alv_variant_get_default USING gc_log_group_1 CHANGING gs_disvariant_1 vari .
      PERFORM alv_variant_get_default USING gc_log_group_2 CHANGING gs_disvariant_2 vari .
    ENDFORM.
    FORM alv_variant_get_default
      USING
        log_group TYPE disvariant-log_group
      CHANGING
        disvariant TYPE disvariant
        variant    TYPE slis_vari .
      DATA: ls_disvariant TYPE disvariant.
      ls_disvariant-report = sy-repid .
      ls_disvariant-log_group = log_group .
      disvariant = ls_disvariant.
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
        EXPORTING
          i_save     = 'A'
        CHANGING
          cs_variant = ls_disvariant
        EXCEPTIONS
          not_found  = 2.
      IF sy-subrc = 0.
        disvariant = ls_disvariant.
        variant    = ls_disvariant-variant .
      ENDIF.
    ENDFORM.                    "alv_variant_get_default
    Later....
       CALL METHOD gui_alv_grid_1->set_table_for_first_display
          EXPORTING
            is_layout       = wa_layout
            is_print        = wa_print
            i_save          = 'A'
            is_variant      = gs_disvariant_1
          CHANGING
            it_sort         = it_sort
            it_fieldcatalog = it_fieldcatalog
            it_outtab       = it_alv_grid_1.
      CALL METHOD gui_alv_grid_2->set_table_for_first_display
          EXPORTING
            is_layout       = wa_layout
            is_print        = wa_print
            i_save          = 'A'
            is_variant      = gs_disvariant_2
          CHANGING
            it_sort         = it_sort
            it_fieldcatalog = it_fieldcatalog
            it_outtab       = it_alv_grid_2.     
    Regards.

  • Error in summation of Actuals for Drill Down Reports(SAP Standard Reports)

    While executing the Drill Down report (for e.g S_ALR_87013558) for a particular Project (e.g DWRES-C2005) it is observed that the Actual costs booked on the WBS element (DWRES-C2005-502) does not get rolled up to its higher level WBS Element(DWRES-C2005-501).
    This also does not get rolled up to the top WBS element (DWRES-C2005-500).As this is the case the summation for Actuals columns shows incorrect result.Result should have been (Actuals of DWRES-C2005-500 = Actuals of DWRES-C2005-501 + Actuals of DWRES-C2005-502 ).I have also tried the formatting of the Actuals columns in the Form of the report but I could not find any answer.Can anybody help me in this regard.

    Sorry, me again...
    I have found yet they way to show in the header the report parameters, I mean, the selection criterias that user used when execute the report... I was able to show selected characteristics inside de report but not the selection criteria...
    Do you know what I have lost? or what to use for this?
    Thanks again.
    Adela.

  • Using multiple XML files for drill-down

    I have an XML file which populates a graph showing months of the year.  I have 12 other XML files which have data for each day of the month running from 1 - 31.
    What I would like to do is use the 12 XML files to drill down for each of the months on my graph, but am struggling to get it to work.
    The XML that populates the graph is in the following format :
    <?xml version="1.0" encoding="utf-8"?>
    <items>
         <item month="Jan" value="536102" />
         <item month="Feb" value="484570" />
         <item month="Mar" value="155840" />
    and the other XML files are in the following format:
    <?xml version="1.0" encoding="utf-8"?>
    <items>
         <item Timestamp="24/04/2010" Value="4178" />
         <item Timestamp="25/04/2010" Value="8075" />
         <item Timestamp="26/04/2010" Value="14611" />
    Would it be simpler to combine all the XML into one file?
    Sorry that this is a bit vague, but if you could help me that would be appreciated. Let me know if you require any more information.
    Thanks.

    You can only import a single XML file. You may have an xml file that has multiple occurances of data but it must be a single xml file.
    So you woudl have to find a way to combine all of those xml files into one then do the import.
    Paul

Maybe you are looking for