Data Binding in Web Items

In 3.5 it was possible to assign mulitple dataproviders to a web item.  For example it was possible to assign 2 datprovider to the navigation block.  This was useful where a web template had 2 dataproviders for a table and chart. Of course there would need to be common characteristics in both data providers.
Navigation changes made would effect both the table and chart.
In 2004s it does not appear to be possible to assign more than 1 data provider to a web item under data binding.
Does anyone know if this is the case OR is it possible to assign more than 1 dataprovider.
Thanks
Ian

It is possible: (refer to HTML below) Refer to setting "Affected Data Providers"
   <P><object>
         <param name="OWNER" value="SAP_BW"/>
         <param name="CMD" value="GET_ITEM"/>
         <param name="NAME" value="NAVIGATIONBLOCK_1"/>
         <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_NAV_BLOCK"/>
         <param name="DATA_PROVIDER" value="DataProvider(1)"/>
         <param name="CLOSED" value="X"/>
         <param name="SHOW_AXES_GROUPING" value="X"/>
         <param name="TARGET_DATA_PROVIDER_1" value="DataProvider(2)"/>
         <param name="TARGET_DATA_PROVIDER_2" value="DataProvider(1)"/>
         ITEM:            NAVIGATIONBLOCK_1

Similar Messages

  • How can I set the data binding between Web Dynpro & Database table

    Dear friend,
    I am a beginner of Web Dynpro. I want to develop my simple project like these:
    1. Create my own database table via Dictionary Project such as TAB_USER and have 3 fields: USER_ID, USER_NAME, USER_POSITION and I have already deployed & archived it.
    2. Create my own Web Dynpro Project, and create the input fields as User ID, User name, User position and icon 'Save' on the selection screen and I have deployed it already.
    For the process, I want to input data at the screen and save the data in the table, please give me the guide line like these:
    1. How can I set the data binding between Web Dynpro and Database table ?
    2.  Are there any nescessary steps that I will concern for this case?
    Sorry if my question is simple, I had try  to find solution myself, but it not found
    Thanks in advances,
    SeMs

    Hi,
    You can write your own connection class for establishing the connection with DB.
    Ex:
    public class  ConnectionClass {
    static Connection con = null;
    public static Connection getConnection() {
    try{
    Context ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/TSPAGE");
    con = ds.getConnection();
    return con;
    }catch(Exception e){
    return null;
    You can place the above class file in src folder and you can use this class in webdynpro.
    You can have another UserInfo class for reading and writing the data into the DB .
    Regards, Anilkumar
    PS : Refer
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf
    Message was edited by: Anilkumar Vippagunta

  • WAD binding using "Web Item with ManualInput"

    I am using a formula variable in a fox to get an user entered number. I have Input Field web item in the web template and I am trying to pass the input value from this item to the formula variable using "Web Item with ManualInput" binding type . But, the user entered value is not getting transferred to the fox.
    While other variable types work fine, seems to be having issues with this binding type for formula variable. Any help in resolving this issue is much appreciated.
    Thanks.

    Hi all,
    please try following procedure to pass the entered value from WAD to FOX:
    Within the command "exec_planning_sequence" (or planning function) do the following data binding:
    variable: {technical name of your formula variable}
    variable type: "item-input"
    web-item: {technical name of your input item}
    Should look like this in XHTML (assume the formula variable is called Z_IM_TEST_MMEVE_001):
    <bi:command type="EXEC_PLANNING_SEQUENCE_SIMPLE">
    <bi:param name="VARIABLE_VALUES" type="ORDEREDLIST">
      <bi:param name="VARIABLE_VALUE" type="COMPOSITE" index="1">
       <bi:param name="VARIABLE" value="Z_IM_TEST_MMEVE_001" text="Z_IM_TEST_MMEVE_001">
      </bi:param>
       <bi:param name="VARIABLE_TYPE" type="CHOICE" value="ITEM_INPUT">
        <bi:param name="ITEM_INPUT" type="COMPOSITE">
        <bi:param name="ITEM_REF" value="INPUT_FIELD_TEST">
       </bi:param>
      </bi:param>
    </bi:param>
    </bi:param>
    I implemented the same thing successfully and received the entered values in FOX correctly. If it does not work just post a description of the problem appearing.
    Brgds,
    Marcel

  • How to read data from Analysis web Item.

    Hi,
    We are currently on BI 7 SP 16 Java 16,
    I am trying to present data from 10 reports on to one single page, so for that i want to read data from the Analysis item, and present it on one page.
    How do i read data and write it on to a page, i know we have to use java script for this , but i am not sure how to use the script. Can any one please help me on how to write the code if possible please give me the code or any suggestions.
    Appreciate your help in advance.
    Kumar

    Hello,
    May the Report Designer can help you on this:
    http://help.sap.com/saphelp_nw70/helpdata/EN/dd/cea14119eb9f09e10000000a155106/frameset.htm
    Best Regards,
    Ricardo

  • Testing Export and print of additional web items

    Hi,
    Please do let me know how to carry on testing for Export and print of additional web items.
    Thanks & Regards,
    Lavanya.

    Following are some of the things you should test -
    Export -
    1. Exporting to File: For different file types check the way data is getting extracted as compared to report results in URL. Here you need to check - a. if the correct values are getting exported (w/o any conversion of data types, or any format changes). b. Layout of the exported data (ex. row data is appearing in rows, etc.),
    2. Check files for any missing data.
    3. Check if exporting the data, with selected drill levels, filters, etc. is working fine (or is exporting everything irrespective of the data from current report reults).
    Print -
    Print your report using the default printer on your machine & check the following -
    1. Reports is getting printed as expected in terms of data & layout.
    2. The rows or columns are well within the page defined in your printer settings (ie nothing is running out of page).
    3. When printing, change in orientation works for both the options without any loss of data.
    All web items will not be printed, so you need to make a note of this.

  • I can't figure out data binding from a web service.

    Hi,
    I've been trying to figure out how to connect a TreeTable control with data from a non-SAP web server. Here's what I have so far;
        I have a sample program that uses json in a variable called oData.
        I have a TreeTable control named oTable.
        I create a model;
            var oModel = new sap.ui.model.json.JSONModel();
        I feed the oData variable into it;
            oModel.setData(oData);
        Finally, I feed the oModel to the oTable;
            oTable.setModel(oModel);
    That all makes sense. What I want to do is get the data from a web service. The only examples I've been able to find show how to configure an SAP data service and then connect to that. They don't give any details of the format that the SAP data service is sending. I don't have access to an SAP system so I can't set one up to reverse-engineer the data. I'm going to be writting my own oData service for this so I need a couple of things;
        1. An example of json or xml data as it's sent from a web server.
        2. An example of how you pull that data from the web service to an SAP ui model.
    I could really use some help. I haven't been able to find any examples that make sense to me.

    Hi Joe
    Here is an small example. Maybe it is useful to you.
    In this example, I  bind the tree to /root and you can see that we have 0: 1: elements under each element recursively.
    Thanks
    -D

  • Use Custom Extension Web Item to Retrieve DSO Data Directly

    Hi experts,
    Is it possible to use Custom Extension Item in BEx WAD to retrieve DSO data directly? The idea is to display master data for a line item (e.g. customer name, id, address etc.) in the header section of a Web Template. If it is possible, how can I implement that?
    If not, is there any other possibility to fulfill the requirement?
    Thanks in advance.
    Regards,
    Joon

    Hi experts,
    any update on this?
    Thanks,
    Joon

  • WAD:  anyway to bind each tab of the tab page web item to different query?

    WAD:  anyway to bind each tab of the tab page web item to different query?
    We check the properties of the tab page web item, but can't find we can bind the tab to some query.
    Any idea?
    Thanks!

    will try to write as much detail steps as i can...
    drag tab page web item in wad window
    go to its properties
    for e.g. u currently have only 1 tab page
    than name tab page1 as p1
    hit button with ..
    this will let u add new heading to tab page 2
    likewise save heading of 4 tab pages in properties of tab pages
    now choose container web item
    drag it in tab pages window
    assign seperate analysis item in each container item
    assign seperate queries in each analysis web item.
    assign container1 to tab page1
    assign container2 to tab page2
    assign container3 to tab page3
    assign container4 to tab page4
    and their heading viceverssa
    save it execute it
    now u will have 4 queries in 4 container item and uc an see that in different tab pages.

  • Web items not visable in PDF.

    Hi all,
    I'm using a generic "display"-web template in WAD. Printing, "Print Version" button, this template from a browser the standard analysis and chart are displayed in the PDF output file. If a add a new web item, like Analysis, the browser is showing the new added web item. But when I print this report, the new added web item is missing, not shown.
    Any ideas what the solution is for this problem?
    Regards,
    Coen.

    Hi Coen,
    Yes, you have to choose by EXPORT Command by Data binding web items which should  be exported.
    If you did not choose anything all web items should be exported
    Regards
    Erwin

  • WAD - Export to Excel: Information from Web Item "FILTER_PANE_ITEM"

    Hi all
    In a report header I would like to display all the restrictions (filters) that have been placed on a query. I do this by adding a FILTER_PANE_ITEM in the web application. I works fine in the IE: In the top of the report all restrictions are displayed and below the query result from ANALYSIS_ITEM part.
    I have created a Buttom called "Export to Excel". The Command is EXPORT and in the web items for Data Binding I list both the FILTER_PANE_ITEM and the ANALYSIS_ITEM.
    When I run the report in the IE and push the "Export to Excel" buttom the data is exported to Excel...but only the ANALYSIS_ITEM part. All information from the FILTER_PANE_ITEM are missing... And I don't understand why!
    Can anyone give me a hint to what I am doing wrong?
    Regards
    Peter

    Peter
    FILTER_PANEis not an exportable item and hence the web item binding is ignored.
    Please see note 1178857 - Additional information: Export to Excel functions
    Alternatively, you can use INFO_FIELD Web Item to display the list of static, dynamic filters and variable values used.
    Thanks
    Sri

  • Web item for formula variable in WAD

    Hi,
        I have a formula variable in my IP application where user can input the percentage for a function, which web item I should used in WAD to bind the user's input data with the formula variable? The input field item does not have the data binding property.I did it in my last project but can not remember it anymore.

    Basically, in IP you do not need to configure  web item for formula variable, it will automatically pop-up when you run the function, at that time you can input the value for the variable. while in BPS, we need to input the numerical value before we run the function.
    Since the input field web item does not have data binding property, I am not sure it is useful, the data you input has no effect on your processing data set. Anybody has some other idea?

  • Can I change the standard text for web item 'INFO_FIELD_ITEM'?

    Hello experts.
    I made a WAD template using web item 'INFO_FIELD_ITEM'.  In data binding, I used the 'Last refresh' of general text elements.   As a result, in the web browser I can see the last update date & time. (e.g. 'Last refresh: 2007.01.17 17:34:44') Then our customer want to change the default text "Last refresh" as "Working time".
    How can I change this?
    I tried to change the text symbols for program SAPLRRSV. But it worked only in Bex Analyzer not in the web.
    Our server version is Netweaver 2004s and SP10.
    Best regards.
    JY Park.

    Hello,
    I had the same problem - just wanted to display the values of a variable in an info-field, but not the caption.
    I found out, that there's a tag for Info-Field Item called ONLY_VALUES (it's the checkbox under the headers visible checkbox in the properties dialog of the Info-Field Item; in my WAD version, there's no label assigned to this checkbox, so it was not easy to find out what it should be),
    You have to set it to 'X' (check it) ; then you get the unformatted value of the variable (no caption anymore).
    <bi:INFO_FIELD_ITEM name="INFO_FIELD_ITEM_1" designheight="500" designwidth="350" >  <bi:WIDTH value="350" />
    <bi:HEIGHT value="500" />
    <bi:DATA_PROVIDER_REF value="DP_1" />
    <bi:HEADERS_VISIBLE value="" />
    <bi:ONLY_VALUES value="X" />
    You have to insert the info-field item between span tags so that you can define your own formatting values.
    The ONLY_VALUES tag works the same as the tag 'RENDER_AS_TEXT' you have with the text item , see
    http://help.sap.com/saphelp_nw70/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    There's only one disadvantage: If you have chosen a lot of variable values (multiple selection), the variable string gets very long and no line break is performed, because all blanks in the string are replaced by nbsp's. I solved this with a little Java Script, replacing the appropriate nbsp-s with br tags.
    Hope it helps
    Beate

  • Web Item Selection for Characteristic Structures

    Hello experts,
    I have created a web template with a query that has some characteristic structures. When planning functions are executed, I want to restrict the affect against the structures using web item selection (data binding). Is it possible to set data binding for strucures?
    Thank you.

    Hello Gernot!
    Did you find a solution for using row selection in combination with a structure in the query?
    I face a similar situation and one solution I found so far is to use an dropdown-box to make the selection although I would prefer using the row selection-feature as it is more convenient and obvious to the user.
    manuel

  • Web Application Designer broadcast select Web Items

    Hello all,
    I have a request to use the broadcast only select web items, Chart/Analysis items only in a Web Application Designer Template. Is this possible? I've tried the option "Data Binding"  Report [ITEM_REF] but that didn't work and brought everything in my Web Template in my PDF broadcast to Email. It seems to ignore the Data Binding and bring everything in the template, pictures, Charts, Analysis items. Can anyone tell me if it is possible to select only select web items to broadcast via PDF?
    Thank you in advance!

    Found it:
    - New Button
    - Action = Command
    - Commands for DataProviders/ Hierarchies / SET_HIERARCHY

  • MVC - Performance of data binding

    Hi Gurus out there
    I have a concern regarding performance of (dynamic) data binding if I have a lot of <i>textEdit</i> fields containing huge amount of data on a view page.
    <u>Scenario</u>:
    The view page contains buttons <b>[Add textEdit field]</b> and<b> [Save all entries]</b>. If you click the button <b>[Add textEdit field]</b> then a (new) <i>textEdit</i> will be generated and the model remembers the total number of <i>textEdit</i> fields that have been generated.
    DATA: textedit_count TYPE i,
          o_textedit     TYPE REF TO cl_htmlb_textedit,
          tabix(6)       TYPE c,
          binding_code   TYPE string,
          binding_str    TYPE string.
    textedit_count = o_model->get_section_count( ).
    DO textedit_count TIMES.
    * Create a unique ID for a textEdit field:
      tabix = sy-index.
      CONDESE tabix NO-GAPS.
    * String for the data binding of internal table model->data_stream_tab:
      CONCATENATE '//model/data_stream_tab['
                  tabix
                  '].data_string'   
             INTO binding_str.
    * Dynamic data binding:
      CREATE OBJECT o_textedit.
      CONCATENATE 'myTextEditID' tabix
             INTO o_textedit->id.
      o_textedit->width  = 650.
      o_textedit->height = 225.
      o_textedit->_text = binding_str.
      binding_code = o_textedit->IF_BSP_BEE~RENDER_TO_STRING( page_context ).
    <htmlb:label for = "<%= o_textedit->id %>"
                text = "<%= o_textedit->id %>"
              design = "EMPHASIZED" />
    <%-- Binding of the attribute (internal table) '//model/data_stream_tab<i>.data_stream' --%>
      <%= binding_code %>
    ENDDO.
    Obviously the <u>whole</u> contents of the <i>textEdit</i> fields in the coding above are <u>always</u> "moved" from the web browser to the server and vice versa when the button <b>[Add textEdit field]</b> is hit every time even though the content of some <i>textEdit</i> fields haven't changed.
    Does anyone have a good solution/optimization for this problem? Any suggestion, comment and/or answer will be very appreciated.
    Thanks
    HW

    Place this code above any textedit elements you have in your page:
    <script type="text/javascript">
    var myFields = new Array();
    </script>
    Then place this code after every textedit elements, this code will get run when the page is loaded in the browser, right after your element. You are saving the ID and the default value of your element to an array. For every further element, increase the array counter by 1!
    <script type="text/javascript">
    myFields[0] = new Object();
    myFields[0]["id"] = 'myTextEdit1';
    myFields[0]["default_value"] = document.getElementById(myFields[0]["id"]).value;
    </script>
    Finally, include this function in your page (does not have to be at the bottom, I just put it here chronologically):
    <script type="text/javascript">
    function compareFields() {
      for (var i = 0; i < myFields.length; ++i) {
        if(myFields<i>["default_value"] == document.getElementById(myFields<i>["id"]).value) {
        // nothing has changed, set to ignore-value (any highly unlikely value, like ")?.("
        document.getElementById(myFields<i>["id"]).value = ')?.(';
        // check against this value in your setter method
        // if this is set, then do not user submitted value to update your model attribute value
        // maybe do some output for debug purposes
        // alert(document.getElementById(myFields<i>["id"]).value);
    }</script>
    Now add this attribute to your submit button:
    onClientClick = "javascript:compareFields();"
    This should do, test it out and let me know.
    Max

Maybe you are looking for