SET_SELECTION_STATE_BY_BINDING

Hi,
     I have 2 DataProviders in my web template.  I have a dropdown with 3 selections.  Each dropdown selection applies a different filter to DP1 to display different key figures.  I am trying to create a button that will apply the same key figure filter to DP2 that is currently applied to DP1.  I'm trying to user SET_SELECTION_STATE_BY_BINDING but can't get it to work.  I can't use the characteristic key for the Key Figure structure because that just makes all of the key figures appear instead of the ones that are currently in DP1.
Anyone have an idea how to get this to work?

Hello Kenneth,  
Try this, In the dropdown property window choose both the  data provider in the Affected data Provider. So whenever you change the dropdown value it will affect both the data provider.
[Thanks|http://chandranonline.blogspot.com/]
[Chandran|http://chandranonline.blogspot.com/]

Similar Messages

  • SET_SELECTION_STATE_BY_BINDING - 2004S Passing Parameters between Templates

    I am using Web Application Designer in 2004s - SP9.  I am calling a template (using the Link Web Item) passing the value that is selected in a dropdown in the "From Template".
    The new template opens.  However,  when I try to pass the value from Dropdown Box 1 using SET_SELECTION_STATE_BY_BINDING, it passes all values.
    Has anyone had any success using this Command in Web Application Designer or know of any problems using this.  The commands that I am using to call the other template using the Link Web Item are:
    1.  OPEN_TEMPLATE_DIALOG 
                 for the "TO"  Template
    2.  SET_TEMPLATE
                 for the "TO"  Template
    3.  SET_SELECTION_STATE_SIMPLE
                 to Pass the Month January (this is working)
    4.  SET_SELECTION_STATE_BY_BINDING
                to pass the Value selected in the Dropdown
    Thank you,
    Kristen

    Brian,
    You might find the Session State Protection feature useful. Although it does not mask what is visible in the URL, it prevents tampering of the URL contents, among other things. Please see the User's Guide for details.
    Scott

  • Bug in SET_SELECTION_STATE_BY_BINDING?

    -My apologies, the previously entered problemdiscription was incorrect-
    We have a webtemplate with a query and three buttons, "Alter selection" (a call to OPEN_VARIABLE DIALOG and SET_SELECTION_STATE_BY_BINDING), u201CChecku201D and "Save" (both are planningsequences). The query contains a filter with a variable and this filter is also used in the planningsequences.
    When the webtemplate is executed, the variable must be filled in first, after which the queryresult is presented (save button is inactive). The user presses u201CChecku201D which calls a planning function of a self defined-functiontype. (If the check is succesful the save button becomes available, if the check is not correct the button remains inactive). This was previously programmed in FOX, but on advise of SAP, it was reprogrammed to a function type. This works great.
    When the button u201CAlter Selectionu201D is pressed to change the variable and so alter the selection, the new queryresult is shown. This result seems to correctly reflect that a change has been made. On purpose, the filter is changed so the check should produce an error, this second time. But when the u201Cchecku201D button is pressed again, the error is not there.
    The same goes for the opposite: start off with a bad selection and an error occurs. Alter the selection by entering a different value in the variables to produce a correct result, and the check still produces an error.
    Somehow it seems that SET_SELECTION_STATE_BY_BINDING is propagating the new values to the selected dataprovider, but not to the dataset the ABAP-check in the functiontype can u2018seeu2019.
    Does anybody has a clue?
    Edited by: B. Finance on Aug 20, 2009 1:53 PM

    Hi Matthias,
    Thank you for your reply.
    The filter was created in the Modeler and in Query Designer it was then drag-dropped into the filter-section. Here we also added a few characteristics for authorization reasons. And ofcourse, for the planningsequence the excact same filter is used.
    The binding arguments are for the Dataprovider and all the variables as stated in the Query Designer are bound here, except the authorization variables. (I basically have SAP_ALL, so I ruled out authorization problems).
    Could it be the varaiables aren't bound the right way?

  • Store dropdown value in a variable in WAD

    Hi,
    I would like to pass the values from dropdown box to variable in my IP application. These variables are used to restrict the char values in filters of my application. When I change the dropdown box, my variable value should automatically change. My dropdown box uses the Char/struc member (Characteristic_selection) as data binding because I am doing the cascading dropdown boxes for my selection. I can not use variable as data binding for my dropdown box and I know this will work if I use the variable selection as data binding for drop down box.
    Now, the dropdown value is never stored in the variable, I don't know what I'm doing wrong.
    So, I need to know:
    - Variable settings
    - Dropdown settings
    - Dataprovider sttings
    I am using WAD 7.0
    Thanks!

    Hi Sebastian,
    Ok if I understand right, you have 2 DropDown webitems - on selection of one you would want the 2nd to filter which is cascaded action on DropDowns; and on selection of each DropDown you would want to pass the selections to the main query variables. Check if the below settings work;
    DropDown 1 -> DP1 (perhaps on a master IO), Characteristic -> say C1, Affected Data Providers -> DP2 (DP of DropDown 2), Action -> Command via Command Wizard -> Execution Point of Time -> After Default Action, Command -> SET_SELECTION_STATE_BY_BINDING (under Data Provider Commands -> Commands for Filter Values), Data Provider Affected -> main query DP assigned to the Analysis webitem, Selection Binding -> Characteristic -> C1, Binding Type -> Variable, choose corr. query Variable
    DropDown 2 -> DP2 (perhaps on a master IO), Characteristic -> say C2, Affected Data Providers -> None, Action -> Command via Command Wizard -> Execution Point of Time -> After Default Action, Command -> SET_SELECTION_STATE_BY_BINDING (under Data Provider Commands -> Commands for Filter Values), Data Provider Affected -> main query DP assigned to the Analysis webitem, Selection Binding -> Characteristic -> C2, Binding Type -> Variable, choose corr. query Variable
    --Priya

  • How to read the value of Inputfield in WAD in JAVA script?

    Hi Experts,
    I have a requirement in WAD .
    I have put an Input Field (text box), a button and a script control  in the web template.
    In my script control function , I want to read the value entered in the input field using java script. How do I achieve it?
    Thanks in advance.
    Regards
    akshay

    Hi,
    To do this, first you may want to view the HTML source of the report. So, when you have the report launched with the input field, right click and select View Source. Usually it is under a <span> tag with id something like sapbi_snippet_YOURWEBITEMNAME. Most useful commands here are document.getElementById and document.getElementsByTagName.
    You can also access the input web item value using standard sap command SET_SELECTION_STATE_BY_BINDING. Take a look at the documentation on this.
    Hope the above helps.
    Regards,
    wira

  • Javascript Functions in WAD

    Hi all,
    Could anyone tell me about all the javascript functions we can use in WAD?
    For exp: "<i>getElementById</i>"
    Thanks in advance,

    Hi,
    Thanks for the reply,but i found some functions which arent of javascript while searching in SDN (/thread/189522 [original link is broken]); The functions are as follows.
    So what i am looking for is the list of the functions like:
    <b>SET_SELECTION_STATE_BY_BINDING</b>
    <b>EXEC_PLANNING_FUNCTION</b>
    <b>SET_VARIABLE_STATE</b>

  • WAD Report(Template to be opened in new browser tab)

    Hi,
    I have an urgent issue with WAD Report.
    I have my Template with Tabstrip containing Link Item, which opens another template on click. For this I used transfer state instruction by which new template is opened in the same tab of browser,I need new template(on clicking Link Item) to be opened in new tab of browser and the old one to remain in same browser tab.
    Thanks in advance,
    Regards,
    Rajeswari.

    Hi
    I did something similar before.
    I had three tabs.
    Summary Tab
    Details Tab
    Totals Tab.
    By default when user runs the template, first tab is displayed with summary details. When user wants to drill down to the details of particular line, then user clicks on the row. When clicked on the row, details report gets generated in the second tab but user manually needs to go to second tab to see the details.
    To achieve this i did the following
    DP1, Analysis gird properties
    "row selection"-->single with command and used SET_SELECTION_STATE_BY_BINDING.
    Thanks
    Srikanth

  • 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!

  • RRI-Jump Queries for only Selected BPs

    Hi, I have a BP Master data Report on which Iu2019m using RRI-jump to the Order detail Report for selected BPs. Iu2019m ok up to the point displaying Single or All BPs on the Jump target. But what I also trying to do is to run RRI report for only selected BPs. So Iu2019m expecting selected multiple BPs on the RRI Query Variable Screen (it is neither single nor all).
    In the WAD report i have used two command: Set Filter Values Using Different Sources command (SET_SELECTION_STATE_BY_BINDING) and RRI.
    There are  some post but i didn't find any solution. Could anyone please suggest. Thanks

    Hi,
    PLease check :
    RRI Pass mutiple values using BADI
    -Vikram

  • Multiple line selection for RRI  in WAD

    Is it possible to select multiple lines from 1 query and do a RRI to the receiver query. Eg : Select multiple POs and then go to PO details query which shows PO details of multiple POs in WAD and both the results shown in the same web report?
    I tried the below solution, but all I get is the display of the entire Master data dump and not the filtered values. Any suggestion?????
    Rao  
    Posts: 135
    Registered: 6/24/04
    Forum Points: 8 
       Re: Multiple line selection for RRI   
    Posted: Feb 4, 2008 2:22 PM    in response to: LAKSHMI HARINDRAN           Reply 
    Yes. You can do this. You create web template with ANALYSIS web item. In the item parameters of ANALYSIS web item, you can set a property, single line or multiple for the runtime selection. Once you do this, you create a button option or context selection menu option to jump target. In the button (RRI button) in the command sequence, the first command should be SET_SELECTION_STATE_BY_BINDING and then, the RRI command to jump to the target. Hope it will help.
    Venny.

    Hi, Do you have any solution on this. please suggest. Thanks

  • Need help in WAD 7.0 - anaylsis item cell value as filter to another web...

    Hi ,
    I need help in WAD 7.0
    i have 2 web items, analyis item 1 & 2
    when user clicks any cell value in column xxx of analysis item1, then i need to filter the analysis item 2 values for  column xxx  , for that user clicked value.
    how do i enable this ?

    Hi.
    You can try the nxt approach:
    1. in analysis item A (first) properties define in "behaviour" -> "row selection" = "single with command".
    2. set this command to "SET_SELECTION_STATE_BY_BINDING".
    3. define "data provider affected" = your second data provider for analysis item B.
    4. in "selection binding" set needed variables to binding type "VARIABLE"
    In this case, when you select any row in analysis item A some variables will be populatd from this row and affect on analys item B (dataprovider B).
    Regards.

  • WAD - Tab pages

    Hi guys,
    I would like to ask if it is possible to format the caption part of the tap pages (maybe css). In my case captions are pretty long that is why I them in 2 or 3 lines.
    Regards
    Erwin

    Hi,
    I gess you used SET_SELECTION_STATE_BY_BINDING in Analysis paramter SELECT_ROWS, to display tab2 automatically try to set paramter INITIAL_TAB of tab pages web item, if it doesn't work try also to forece refresh by setting VISIBILITY paramter.
    hope it helps.

  • Some Ideas from you

    Hello
    I am developing a query(2) which will first execute another query(1) and pop up the variables to be entered. Now this query 2 is filtered on the data which is coming from Q1. In Q1 i have a hier node variable. Now the user will select a node to see the data for that paticular node...In Q2 i have to make 2 KF's.
    1st KF will be based on the node the user has selected.
    2nd KF has to exclude the node which he has selected.
    Any idea how i can do this
    thanks

    You will have to look for exact solutions yourself but here are some ideas (using the command wizard in WAD) - you can call up a query using the command SET_DATA_PROVIDER_PARAMETERS (use this to call up Q2). And in the same command sequence, bind the variables in Q2 (or filter Q2) using the commands SET_VARIABLES_STATE, SET_SELECTION_STATE, SET_SELECTION_STATE_BY_BINDING etc. Use the characteristic bindings from Q1 that you want to pass on.
    PS. Please put meaningful subject when posting new threads.
    Edited by: Mayank Gupta on Aug 28, 2008

  • Filters applied to multiple dataproviders

    Hi
    We have a scenario where DP1 is used to render Analysis_Item_1. This is the default view, and everything works on DP1 ... filters included.
    However, we also provide a "summarised" view, whereby 5 dataproviders are used to render 5 tables, all in the same template (Analysis_Item_1 is hidden at this point).
    My question, is how do I apply the filters that have been set on DP1, to the other dataproviders?
    Is this posisble in JavaScript perhaps?
    Cheers,
    Andrew

    Thanks for the tip.
    Have you used this command and made it work?
    I have tried to play around in a test template, but can't get the command to actually do anything.
    On my template I have:
    - Analysis_Item_1, using DP1
    - Analysis_Item_2, using DP2
    - Analysis_Item_3, using DP3
    - A filter pane, which is set to affect DP1
    - A button, which is configured to use the SET_SELECTION_STATE_BY_BINDING command.
          - I set the Target Data Providers to DP2 and DP3
          - I set the selection binding to Data Provider Selection (DATA_PROVIDER_CHARACTERISTIC)
          - I set the Data Provider Selection Data Provider to DP1
          - I leave the characteristic there as default
    Now I can run my template, and I am shown 3 tables, with their different data.
    I can filter the first table, as the filter pane is configured to affect DP1.
    I then press the APPLY FILTERS button, which is setup to use the above command, expecting the display in the other 2 tables (DP2 & DP3) to change according to the same filter that DP1 has, but nothing changes.
    Am I doing something wrong (I reckon I must be).
    I have tried other combinations, but nothing seems to work at the moment.
    I am really hoping you have some insight for me.
    Cheers,
    Andrew

Maybe you are looking for