WAD Analysis Row Selection value by JS

Hi Experts,
I created in Web Application designer (7.10 P2) an Analysis Item with row selection single.
What I want is to catch (via JavaScript or others?) the selected row (rowid?) and the values of the fields of the selected row to jump to an other Query using this values as Filter/Variables.
Any ideas welcome
Bernd

Hi Bernd,
you can use the Report-Report interface to jump to a new target:
http://help.sap.com/saphelp_nw70/helpdata/en/42/d43307f3ef6bb4e10000000a1553f6/frameset.htm
Once the assignment is made with TA RSBBS, you can select one line in your analysis item,
right-click, select 'Goto' and jump to the target. The selection made is transfered to the target according to
the settings in RSBBS.
Best regards,
Alexander Bauer

Similar Messages

  • Obtaining "rows selected" value after custom sql query in Database adaptor

    We are executing a custom query in a database adaptor. With other technologies (JDBC, etc.) the result of a query will not only produce a result set but a count of the number of rows selected. E.G. the script output of Oracle SQL Developer will print out something like:
    9999 rows selected
    at the end of the script output.
    I would like to obtain this value for a BPEL process. Of course, I could execute a 2nd query whose where clause is identical to the first, but selects count(*) instead. However, this is not only inefficient but (in rare circumstances in an active database) could be wrong.
    It is not obvious to this BPEL novice how to obtain the row selected value as well as the result set in one Invoke. Is this possible?

    This may not be the only solution - but it is how I have done it in the past.
    Following the invoke step of the adapter, use an assign/copy step to populate an integer BPEL variable using the count xpath function...
    <assign name="Initialize">
    <copy>
    <from expression="count(bpws:getVariableData('Invoke_Query_OutputVariable','MyTableQueryCollection','/ns3:MyTableQueryCollection/ns3:MyTableQuery'))"/>
    <to variable="NumberOfRecordsReturned"/>
    </copy>
    </assign>
    That should assign the number of records returned by the query.
    I hope that helps.
    Rod.
    Edited by: Rod Tunnels on Dec 15, 2009 1:16 PM

  • WAD 2004s Analysis Item Row Select RRI_RECEIVER does not pass Filter values

    I have created an Analysis item and using a Data Provider that has a Sender-Reciever entry for it. I created a Command on the Row Selection Activation that does an Report to Report (RRI) jump to another web page(template or app whatever sap calls it). When running the page, it performs the jump to the other page, but does not filter the page on the selected hierarchy value on the original page.
    Why does this not work?
    If I do the same thing by selecting the Goto from the context menu on the cell it works fine.

    Answering my own question here....
    This was solved by applying the patch mentioned in Note 1115027.

  • Reset Row Selection from Web Item Analysis in WAD 7.0

    Hi All,
    I have a Web Item Type Analysis and I use the Row Selection (SELECT_ROWS) value multiple.
    Is there a way to reset the selection via a function?
    The user select some rows and start a planning function via a button. If they would like to start the function for an other selection they first have to remove the old ones and have to mark the other lines.
    A function to remove all selection from the item is needed!
    PS: It is getting funny if there is paging and the selection is not even visible because it is on an other page.
    Thanks for help.

    Hello All.
    I have exaclty the same problem now.
    Is there any way to do this?
    Thanks a lot and best regards,
    Alfonso.

  • Using Row Selection in Analysis Web Item & Filter Command

    In the 7.0 WAD (Web Application Designer), I have two analysis items that both have different data providers, DP_1 & DP_2. The two data providers are views from the same query.
    In the properties of the first analysis item (DP_1), I'm using the Row Selection - 'Single with Commands', and I want to have a command that will filter on the value of the characteristic in the row selected and transfer that filter to the second analysis itme (DP_2). Is this possible?

    yes, you can do this. There is XHTML code:
    <bi:SET_SELECTION_STATE_BY_BINDING xmlns:bi="http://xml.sap.com/2005/01/bi/wad/bisp">
      <bi:TARGET_DATA_PROVIDER_REF_LIST type="ORDEREDLIST">
    // target data_provider:
        <bi:TARGET_DATA_PROVIDER_REF index="1" value="DP_2">
        </bi:TARGET_DATA_PROVIDER_REF>
      </bi:TARGET_DATA_PROVIDER_REF_LIST>
      <bi:SELECTION_BINDINGS type="UNORDEREDLIST">
        <bi:SELECTION_BINDING type="COMPOSITE" index="1">
    // target infoobject
          <bi:CHARACTERISTIC value="0DOC_ITEM__0VENDOR" text="0DOC_ITEM__0VENDOR">
          </bi:CHARACTERISTIC>
    // selection type
          <bi:SELECTION_BINDING_TYPE type="CHOICE" value="ITEM_CHARACTERISTIC">
            <bi:ITEM_CHARACTERISTIC type="COMPOSITE">
    // source analysis table
              <bi:ITEM_REF value="ANALYSIS_ITEM_1">
              </bi:ITEM_REF>
    // source infoobject
              <bi:CHARACTERISTIC value="0DOC_ITEM__0VENDOR" text="0DOC_ITEM__0VENDOR">
              </bi:CHARACTERISTIC>
            </bi:ITEM_CHARACTERISTIC>
          </bi:SELECTION_BINDING_TYPE>
        </bi:SELECTION_BINDING>
      </bi:SELECTION_BINDINGS>
    </bi:SET_SELECTION_STATE_BY_BINDING>
    Or you can do this using command wizard! good luck!

  • How to get selected Row/Cell value in i5Grid

    Hi Friends,
    Can anyone help to how to find the selected Row/Cell value of a i5Grid object. I am able to register the event handlers which are getting invoked on row/cell selection. But I want to know how can I get the value of selected Cell/Row. I would like to add selected Items from one i5Grid to another one.
    So want to know how can I get and set the value of i5Grid object.
    MII version 14.0 SP4 Patch
    Thank in advance
    Shaji Chandran

    Hi Shaji,
    Here is my code.
    <!DOCTYPE HTML>
    <HTML>
    <HEAD>
        <TITLE>Your Title Here</TITLE>
        <META http-equiv="X-UA-Compatible" content="IE=edge">
        <META http-equiv='cache-control' content='no-cache'>
        <META http-equiv='expires' content='0'>
        <META http-equiv='pragma' content='no-cache'>
        <SCRIPT type="text/javascript" src="/XMII/JavaScript/bootstrap.js" data-libs="i5Chart,i5Grid,i5SPCChart"></SCRIPT>
        <SCRIPT>
            var Grid = new com.sap.xmii.grid.init.i5Grid("STC/C5167365/i5Grid_TagQuery", "STC/C5167365/TagQuery");
            Grid.setGridWidth("640px");
            Grid.setGridHeight("400px");
            Grid.draw("div1");
        function setCellValue()
        Grid.getGridObject().setCellValue(1,1,"Set");
        function setCellValueAgain()
        Grid.getGridObject().setCellValue(1,1,"Changed Again");
        </SCRIPT>
    </HEAD>
    <BODY>
        <DIV id="div1"></DIV>
        <INPUT type="Button" value="setCellValue" onClick="setCellValue()"/>
        <INPUT type="Button" value="setCellValueAgain" onClick="setCellValueAgain()"/>
    </BODY>
    </HTML>
    Regards,
    Sriram

  • Af:table and selectOneChoice, creating a new row resets selected value

    Hello,
    I have a table containing 4 columns, first two are read-only (outputtext) and next 2 contains selectOneChoice , table model is baed on java.util.List
    adding a new row, works fine but it resets the selectOneChoice(dropbox) selected value to First Index For All Rows
    so everytime you add a new row, it resets the value to the very First Value in the dropbox for all rows,
    it seems after PPR it loses the selected value in SelectOneChoice for each row...
    any ideas?
    Thanks,

    Hi,
    What is the EL expression given for value property of selectOneChoice list?
    I guess it is the bean variable and it is same for each row, due to which selection in any selectOneChoice list in table modifies the same bean variable and sets the same value for lists in all other rows too(same happens in case of new insertion also, when you insert new record selectonechoice list points to the first value if no selection item is not added), in case of selectonechoice list you need to handle the selected values differently for each row. If you can share sample code, I can tell you what could be the problem.
    Sireesha

  • Query Selection Value Analysis

    Dear Forum
    We are currently trying to find a way to analyze the reporting trend of users like what are the frequent value of a variable and which variable they use frequently across the system.
    During analysis I came across a system table named as "RSZRANGE" which displays the selection values but this table only showed us the values of global filters.
    Thus can anyone please advice how I can capture the values entered by the users in selection screen of query variable for a particular query.
    Thanks & Regards
    Ashish

    Hello Brian
    Thank you for the information.
    But I need it for all queries and all variables thus capturing the values using ABAP won't be a good idea.
    I think there should be some standard tables where such information is stored as during my analysis with aggregates system asks to make proposal based on several front-end statistics.
    Thanks & Regards
    Ashish

  • WAD: how to give selection values all together then execute report

    Hi,
    I have to made web report in BI 7. I am using 4 drop down box for Plant, Dist_chann, Year, Period.
    When I change any single value of any drop down box, query gets refreshed.
    But I want to give all selection values all together then if can provide a button "Go", so that query will be refreshed for those set of values. This will save time in execution.
    I tried with selection screen. Here I can give any set of values before execution.
    But Selection screen comes as a seperate screen. can I provide same selection screen in the same page of dash board, somewhere Top of dash board.
    Useful answers will definitely get full marks !!!
    Regards,
    Saurabh

    See the following document - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0cb1cf2-6e84-2a10-c189-aafa2f04ac81
    This is an integrated planning document but it explains a way how query can be called only after values in dropdowns have been selected.

  • Want to display value instead of "No rows selected"

    select 'NOV-02' "Month" , decode(sum(pe.pet_tar_amount),null,'0')"Budget",pt.pfe_nature, t.libelle
    from pf_tar_exp pt, pf_tar_expfal pe, thesaurus t
    where
    pt.id_protf=pe.id_protf
    and pt.id_expend=pe.id_expend
    and pt.pfe_nature=t.ccode
    and pt.id_protf='355.02-USA/001'
    and t.langue='A'
    and t.thesaurus_name='NAT_DEP_NLP'
    and pe.pet_dat>='01-nov-2002' and pe.pet_dat<='30-nov-2002'
    group by pt.pfe_nature, t.libelle;
    This is my query. When I run it, i get "no rows selected", which is true because there is no data for pe.pet_tar_amount for the given dates. But, I want to display the Month as NOV-02 and 0 for sum(pe.pet_tar_amount).
    I would appreciate if someone can help me with this.
    Thanks,
    Ruby

    Technical questions such as this should be posted to one of the technical forums-- Products | Database | SQL and PL/SQL in this case.
    It may be as simple as doing an outer join on pf_tar_expfal.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Execution of a planning function for a row selection of a hierarchy node

    Hi all!
    Has anyone accomplished to make a configuration, where a planning function would have been executed for a hierarchy node selection and this selection would have been made by a row selection in an analysis item? I can filter the characteristic in a lowest level by selecting rows in analysis item, but if I would select a hierarchy node, the value for the characteristic is empty. I have set the selection state by binding the item_characteristic of analysis item to filter of the other characteristics.
    I tried first to reach this functionality by filtering the characteristic with variables in planning modeller filter and determining the values of the variables during runtime by the selection of the analysis item row selection. But I can not implement it as the display hierachy and the hierarchy node selection in the analysis item  are variables and modeller does not allow selection of a hierarchy node and hierarchy by variables - even thoug it let's you do it (I receive error message saying "field hienmflag with value 5 is not correct").
    Greatful for any working solutions tips you have made up!
    Sari

    Thanks for the explanation. I come from BPS background and there are few changes when it comes to planning functions in IP.  In BPS, the planning function is a bit loosely tied to Planning Package in a sense that a planning function can use any planning package under the planning level to which it belongs.  Same is the case in IP (technically), but in BPS the planning package contains all the characteristics and key figures of the planning level and hence the function can execute correctly.  What I see in IP is that planning function is very loosely tied to Filter.  It can use any filter under the aggregation level even though they differ in the characteristics and key figures.  I have tried a PF with different filters and it executes with everyone of them!  This doesnu2019t sound right!  Am I missing something here?
    Also, you can only execute a IP planning function if it is included in a planning sequence.  An extra step!  The modeling is so intuitive in BPS that IP is a bit repulsive.

  • Query in selected value for radiogroup

    Is it possible to have a query in the p_selected_value of an htmldb_item.radiogroup ?
    If yes, how ?
    If not, is it possible to always set the first radio button as the selected value ?
    thx,
    Patrick

    Hi Enric,
    After the execution of a query using Query designer, after the selection of the variable values, you will get navigation block and the data beside that in Data Analysis tab. In this navigation block, you will find only the restricted values after the variable selection. You will not find the values selected displayed over there. When you select a chracteristic and click on filter button, you will get the values which are restricted only within the data displayed beside that in the output.
    If you want to have a look at the variable selection parameter that you have selected in the popup, you should go to Information tab and you can check the same there.
    The Navigation Pane Web item shows the navigational state of a data provider. All the characteristics and structures of the data provider are listed. You can alter the navigation status by using drag and drop to drag characteristics or structures to an axis (rows or columns) of the table, or to remove them from the axis. Using drag and drop, you can swap the axes in the navigation area; the table changes accordingly. You can also drag characteristics to the filter pane using drag and drop.
    Hope this helps u...
    Regards,
    KK.

  • How to dynamically display the data from a table base on row selection of another table in ADF

    Hi ,
    I have a requirement in ADF. I need to change the data of a table  based on row selection of another Table . Both the table have a Parent Child relationship between them. They have a common attribute say department_id.
                                                                                         For this I created bind variable in view object of employees table and wrote a where clause in the sql query using that bind variable. Then I created method for selection listener of department Table in java bean.
    My method is following
        public void onrowselection(SelectionEvent selectionEvent) {
            RichTable richTable = (RichTable)selectionEvent.getSource();
                            CollectionModel tableModel = (CollectionModel)richTable.getValue();
                            JUCtrlHierBinding adfTableBinding = (JUCtrlHierBinding)tableModel.getWrappedData();
                            Object selectedRowData = richTable.getSelectedRowData();
                            JUCtrlHierNodeBinding nodeBinding = (JUCtrlHierNodeBinding)selectedRowData;
                    oracle.jbo.domain.Number newVal = (oracle.jbo.domain.Number) nodeBinding.getAttribute("DepartmentId");
                    Number pallet = newVal.bigDecimalValue();
                    System.out.println("Selected values " + pallet);
            BindingContext bindingctx = BindingContext.getCurrent();
                          BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
                          DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
                  DCIteratorBinding dciter = bindingsImpl.findIteratorBinding("EmployeesView1Iterator");//access the iterator by its ID value in the PageDef file
                          ViewObject vo =dciter.getViewObject();
                          vo.setNamedWhereClauseParam("DepartmentId", pallet);//enter your value
                          vo.executeQuery();
    It is printing the selected value of department id from department table in the log. But it is not able to pass the value to employees view. It is showing the following error in the log
    "Definition DepartmentId of type Variable is not found in EmployeesView1."
    I will be very thankful if someone helps me to solve this errror or is there any other way to achieve the same requirement.
    Thanks
    Nilesh

    Note quite sure why you simply wont create a viewlink for the viewobject the tables are based on..
    The viewlink attribute will be based on the departmentId and it's a simple master detail relationship which automatically uses ppr.
    However, if both tables are on the same page; using your hack about;
    On the underlying viewobject, define a viewcriteria e.g. "listById" and set your bind variable here.
    I would bind table two to a RichTable component:
    RichTable t2;
    public void onrowselection(SelectionEvent selectionEvent) {
            RichTable richTable = (RichTable)selectionEvent.getSource();
                            CollectionModel tableModel = (CollectionModel)richTable.getValue();
                            JUCtrlHierBinding adfTableBinding = (JUCtrlHierBinding)tableModel.getWrappedData();
                            Object selectedRowData = richTable.getSelectedRowData();
                            JUCtrlHierNodeBinding nodeBinding = (JUCtrlHierNodeBinding)selectedRowData;
                    oracle.jbo.domain.Number newVal = (oracle.jbo.domain.Number) nodeBinding.getAttribute("DepartmentId");
                    Number pallet = newVal.bigDecimalValue();
                    System.out.println("Selected values " + pallet);
                   refreshTable2(pallet);
            BindingContext bindingctx = BindingContext.getCurrent();
                          BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
                          DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
                  DCIteratorBinding dciter = bindingsImpl.findIteratorBinding("EmployeesView1Iterator");//access the iterator by its ID value in the PageDef file
                          ViewObject vo =dciter.getViewObject();
                          vo.setNamedWhereClauseParam("DepartmentId", pallet);//enter your value
                          vo.executeQuery();
    private void refreshTable2(Number pallet){
    RichTable x=getT2();
    CollectionModel cm=(CollectionModel)x.getValue();
    JUCtrlHierBinding jcb=(JUCtrlHierBinding)cm.getWrappedData();
    BindingContainer bindings = bindingctx.getCurrentBindingsEntry();
    DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
    DCIteratorBinding dciter = bindingsImpl.findIteratorBinding(jcb.getName()+"Iterator");
    ViewObject vo =dciter.getViewObject();
    ViewCriteriaManager vcm=vo.getViewCriteriaManager();
    ViewCriteria vc=vcm.getViewCriteria("listById");
    vo.applyViewCriteria(vc);
    vo.setNamedWhereClauseParam("DepartmentId",pallet);
    vo.executeQuery();
    AdfFacesContext.getCurrentInstance().addPartialTarget(getT2());

  • Unable to set the selected value for a ADF LOV

    Hi,
    I am developing an application using jdeveloper 10.1.3 and Struts.
    I have created a ADF LOV on my JSP Page as given below:
    <html:select property="lob" onchange="javascript:selectLOB(this.form)">
    <html:optionsCollection label="prompt" value="index" property="lob.displayData"/>
    </html:select>
    When i submit the form, i am able to get the value of the selected Value in the List.
    JUCtrlListBinding listBinding = (JUCtrlListBinding) formBean.get("Lob");
    Row r = (Row) listBinding.getSelectedValue();
    String SoLob = (String) r.getAttribute("LobLob");
    But i am unable to set the selected value back in the list when i return to the form again.
    I tried the following:
    int x = listBinding.getSelectedIndex();
    listBinding.setSelectedIndex(x);
    It would be really helpful if some one could let me know what needs to be done.
    Thanks,
    Subashini

    Gyan,
    I tried with the code you suggest , its trying to set the value of a field, but my requirement is to change the property for
    "Rendered" on the field so that based on search parameters we can hide result table column.
    After searching online, I modified the controller code as follows
    1.Created a new transient attribute (Testrender) with type "Boolean" and always updateable.
    2.changed the "Rendered" property value on the field I want to hide as ${oa.PoSearchVO1.Testrender}.
    3. Modified the controller code as follows :
            OAApplicationModule am = pageContext.getApplicationModule(webBean);
            OAViewObject testvo = (OAViewObject)am.findViewObject("PoSearchVO1");
            OADBTransaction txn = am.getOADBTransaction();
            if (testvo != null)
              OARow row = (OARow)testvo.first();
                if (a.equalsIgnoreCase("Approved"))
                     row.setAttribute("Testrender", Boolean.FALSE);
                else
                     row.setAttribute("Testrender", Boolean.TRUE);
            } But now when i run the page and populate the search field and click "Go" its hiding the field but throwing the following error and the search results are also bad.
    Its using only the value of one search parameter but not the second one .
    The search cannot be executed because the table has pending changes that would be lost. I think the vo is getting dirty when I update the transient attribute value. So I used txn.rollback ,then search is working fine but its not hiding the field.
    So can you please let me know how to proceed from here ?

  • How to get selected value from selectOneRadio ???

    Hi...i want to how to get selected value from selectOneRadio and use it in another page and in backing bean.
    Note i have about 10 selectOneRadio group in one page i want to know value of each one of them.
    Plzzzzzzzz i need help

    You have a datatable in which each row is a question, correct?
    Also in each row you have 5 possible answers that are in a radio, correct?
    So,
    You need to put in your datatable model, a question, and a list of answers (5 in yor case) and the selected one.
    So you will have a get to the question, an SelectItem[] list to populate the radios and another get/set to the selected question.
    ex:
    <h:selectOneRadio value="#{notas.selectedString}" id="rb">
    <f:selectItem itemValue="#{notas.valuesList}"/>
    </h:selectOneRadio>
    Search the web for examples like yours.

Maybe you are looking for

  • Import Package Error

    Hello All, I am getting a strange behavior using Import Package to load data into BPC. I load data into BPC in both LC and USD. When I load the data first time, it accepts transactions in both LC and USD. But when I load after the initial load, it er

  • T-23 needing to get xp pro re installed

    My tennant asked me to fix her father's t-23  that she inherited. Her "geek" nephew, wiped the drive with a botched linux install, so I can't use the convenient (thinkpad) button for restoring windows xp. From what I've learned from reading the Lenov

  • Remediation and Previous Content Slides

    The way our team sets up our tutorials is that we disperse quiz slides throughout and set the quiz to jump to a slide if the question is missed.  Then when the content slide is viewed, the learner is taken back to the quiz.  Our remediation works....

  • Can't delete boot environment --arrghh!

    Here's what I'm running: Solaris 10 10/08 s10s_u6wos_07b SPARC Copyright 2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. Assembled 27 October 2008 This install is the default install of Solaris 10 from Sun. I needed

  • How to share a playlist with remote friends

    iTunes Ping is gone, playlists in the Store are gone, so how can I now give my friends (not in my wi-fi, of course) a way to listen to a list of song I like? I don't want (and it's illegal) to give them my audio files, just a way to listen a preview!