List data provider + table

Hi,
i use table binded with list data provider, in table if i change checkbox or text field value and i want to retrieve new value it don't work. I use this code to d this:
try{
this.getSessionBean1().getZipEntryListDataProvider().cursorFirst();
do {
String dest = (String)this.getSessionBean1().getZipEntryListDataProvider().getValue("destination");
System.out.println(dest);
info(dest);
} while (this.getSessionBean1().getZipEntryListDataProvider().cursorNext());
return null;
catch(Exception e){
info(e.getMessage());
return(null);
if i bind table with a cachedrowset dataprovider this code work fine and i have the new values entred by user
how to do this with ListDataProvider
Thanks

Hi!
Try to look here:
http://blogs.sun.com/winston/entry/displaying_two_dimensional_data
Maybe it will give You some clue.
Thanks,
Roman.

Similar Messages

  • Netbeans 5.5 + VWP and Object List Data Provider

    Hi there.
    I'm trying to build an Object List Data Provider as in fieldguide_08_dataProviders.
    I'm using Netbeans 5.5 + VWP
    When I try to "Configure the Table" on page 360, there are some difference.
    When I select Object List Data Provider and drop it on the Table component opens an unexpected choose for the target, then I choose tableRowgroup1.
    The JSP souce don't change and is still
    <ui:tableRowGroup binding="#{Schedule.tableRowGroup1}" id="tableRowGroup1" rows="10"
    sourceData="#{Schedule.defaultTableDataProvider}" sourceVar="currentRow">
    When I select objectListDataProvider1 the drop down opposite property list doesn't work. The button opens a selection window with no items.
    Regards.

    A better resource is http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/hibernate.html#object in conjunction with http://blogs.sun.com/LongLiveThePepper/entry/using_netbeans_visual_web_pack

  • Oject List Data Provider is not working

    I am having trouble using an Object List Data Provider.
    The Field Guide books says when I drop an Object List Data Provider,
    then select the list property, to bind it to a list, there is suppose to be an edit box to the right of the property that launches a pop up window.
    Instead I am getting an empty drop down list box, no pop up like I do get with an Object Data Provider.
    I can not even manually type in the list binding, it is frustrating.
    I have the loanBean example all set, with the loanBean showing in the outline ready for binding, but no way to bind it via the IDE.
    I tried adding the code the sets the binding, using the book example, but that does not help since the IDE still does not recognize my Object List Data Provider as a valid data source for the Table Display.
    I have been working through the Field Guide tutorials, following the instructions to the letter. I have had no problems, up till now, in chapter 8.
    I tried starting a new project from scratch, and I still have the same problem. Am I doing something wrong, or is this a known issue ?
    I have downloaded and installed all updates as of February 19th.

    Hi,
    Please go through the following blog
    http://blogs.sun.com/roller/page/winston?catname=%2FCreator
    Hope this helps
    Cheers
    Giri

  • When can we expect a patch for Object Array List Data Provider?

    Hey JSC Team!
    When can we expect maybe, just maybe a minor patch for the Object Array List Data Provider loading class problem? Next Month? This Year? Next Year? Near Future? Long in the future? Sometime in the 22nd century?

    I think one of the problem is
    when u declare the ObjectListDataProvider in ur backing bean
    it doesnt appear in the design time straight away
    u have to clean build close and re open the project
    which is quite time consuming.

  • Updating field in table data provider

    Hi. I'm trying to get familiar with JSC2 (plus being new to Java) and am running into what must be simple problems, but I can't seem to find a solution. Here is the code behind a login button on a page. The user will enter an email address and a password, then click a login button. I use the email address to see if they are in the cached row set, then if they are there I want to increment a column in the table to indicate that they are logged in. Here's where I run into problems. I'm trying to use syntax that I'm finding in various tutorials and sample code, but it keeps telling me that it can't find the symbol "setValue" and I don't get it.
    Here's my code for the button:
    public String loginBtn_action() {
    try {
    RowKey userRowKey = tblusersDataProvider.findFirst
    (new String [] { "tblUSERS.EMAILADDRESS", "tblUSERS.PASSWORD" },
    new Object [] { useridFld.getText(), passwordFld.getText() });
    if (userRowKey == null) {
    error ("Invalid userid or password! Try again!");
    return null;
    else {
    int userActive = getSessionBean1().getTblusersRowSet().getInt("tblUSERS.ACTIVE");
    if (userActive == 0) {
    userActive = userActive + 1;
    userRowKey = tblusersDataProvider.getCursorRow();
    try {
    // Update Info in DB Rowset
    FieldKey activeFldKey = tblusersDataProvider.getFieldKey("tblUSERS.ACTIVE");
    tblusersDataProvider.setCursorRow(userRowKey);
    // Store Value in Session
    tblusersDataProvider.setValue(activeFldKey, userRowKey, userActive);
    tblusersDataProvider.commitChanges();
    catch (Exception ex) {
    log ("Active Update Error:" + useridFld.getText() + " " + passwordFld.getText(), ex);
    error ("Database Error during log in! (active update): " + ex.getMessage());
    return "pgMenu";
    } else {
    error ("This userid is already logged in!! Multiple login's aren't allowed!");
    log ("Multiple login attempt: " + useridFld.getText());
    return null;
    return null;
    catch (Exception exx) {
    log ("Error during user DB access: " + exx.getMessage());
    error ("Error during userDB access: " + exx.getMessage());
    return null;
    }

    The error message that you are giving is telling you, in a round about way, that there is no wetValue method for the data provider that takes a field key, row key, int.
    If you type
    tblusersDataProvider.setValue(
    and then press ctrl-space, a list pops up to show all the setValue methods and what types of arguments they take.
    You will see that they take Object as the last argument . None of them take an int.
    To fix your problem, try something like this
    tblusersDataProvider.setValue(activeFldKey, userRowKey, (Integer) Integer.valueOf(userActive));

  • How to get list data and bind to data table or Grid view in share point 2010 using j query

    hi,
    How to bind list data in to data table or  grid view  using Sp Services.
    How to use sp services in share point 2010 lists and document library 

    Hi, You can use List service, SPServices and JQuery to get your requiement done-
    See here for an sample implementation -
    http://sympmarc.com/2013/02/26/spservices-stories-10-jqgrid-implementation-using-spservices-in-sharepoint/
    http://www.codeproject.com/Articles/343934/jqGrid-Implementation-using-SpServices-in-SharePoi
    Mark (creator of SPServices) has some good documentation on how to use SPServices-
    http://spservices.codeplex.com/wikipage?title=%24().SPServices
    SPServices Stories #7 – Example Uses of SPServices, JavaScript and SharePoint
    http://sympmarc.com/2013/02/15/spservices-stories-7-example-uses-of-spservices-javascript-and-sharepoint/
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • How to get internal table from SAP Data Provider C#

    Hello.
    ABAP:
       DATA: lt_t001 TYPE TABLE OF t001.
       DATA: url(1000) TYPE c.
      SELECT * INTO TABLE lt_t001 FROM t001.
      CALL FUNCTION 'DP_CREATE_URL'
        EXPORTING
          type                 = 'APPLICATION'
          subtype           = 'X-R3TABLE'
        TABLES
          data                 = lt_t001
        CHANGING
          url                    = url
        EXCEPTIONS
          OTHERS           = 4.
    C#:
    using SAPDataProvider;
    using SAPTableFactoryCtrl;
    public void SetDataFromUrl(string url)
                SAPDataProviderClass p = new SAPDataProviderClass();
                p.SetDataFromURL("APPLICATION", "X-R3TABLE", url);
                ISapDPR3Table tbl = p.GetDataAsR3Table("APPLICATION", "X-R3TABLE");
                SAPTableFactoryClass tf = new SAPTableFactoryClass();
                Table tb = (Table)tf.NewTable();
                tb.ISAPrfcITab = tbl.DataTable; // Exception !!!!!!
    How to get internal table from SAP Data Provider ?

    Hi Sergey,
    I'm trying to do the same, have you found a solution to solved it?
    thanks for your help.
    Regards.
    Jonathan

  • SQL function column in drop down list's data provider's query

    Just wondering, if it is somehow possible to use SQL function column for drop down list through data provider.
    At the moment, I am using id column as return value and name as display value from this query through CachedRowSetDataProvider:
    SELECT ALL someTable.Id,
    someTable.Name,
    someTable.Postal_Code,
    FROM someTable
    However, I want to change display to use calculated column as display value, for example Name_PostalCode from below mentioned changed query:
    SELECT ALL someTable.Id,
    CONCAT(someTable.Name, ' - Pin Code: ',someTable.Postal_Code) Name_PostalCode ,
    someTable.Name,
    someTable.Postal_Code,
    FROM someTable
    But JSC doesn't seem to like this.
    Is it someway possible to achieve this?
    Thanks.

    >
    But JSC doesn't seem to like this. Can you explain more. When doesn't it like it, in the design view, in the query editor, when your run it? What is the error you are seeing?
    See http://blogs.sun.com/divas/entry/displaying_multiple_fields_in_a

  • Web report data provider change from Master data table to InfoCube

    hi Experts,
    I have created one report on top of multiprovider but in the selection screen when i check the values for a variable I came to know that data is coming from master data table and not from data provider(InfoCube).Can any one help to change the data selection from master data table to data provider(InfoCube) and i am sure that there is no ODS involved in the multiprovider.
    Thanks in advance
    With Regards,
    Bala

    Hello,
    If u are using Analyser then just put a Analysis Grid on the output of the query(should cover all the rows and column) , click on the grid and put the dataprovider. and do auto fit.
    Rohit

  • Table Data Provider

    Hi,
    I am trying to manually fill a table component from a ResultSet.
    My question is : what Table Data Provider to use ?
    If you have a look to this adress : http://developers.sun.com/prodtech/javatools/jscreator/reference/fi/2/data-providers.html
    you will see that we should have a "ResultSet Table Data Provider" in the Palette Window but it is not my case.
    Thank you in adavance for any help !
    Marc

    Hi,
    The article at http://developers.sun.com/prodtech/javatools/jscreator/reference/fi/2/data-providers.html was writen pre EA and not all that accurate. I let the author know that it needs to be corrected.
    We published a new tutorial that might help you. While it is about Hibernate, you can apply the same techniques to your result set results:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/hibernate.html

  • Use table component without data provider

    Since it is very difficult to solve the browser "BACK" button problem caused by my data provider, I decide not to use data provider to populate the table.
    Does anyone know some sample code about playing around with the table component without using data provider?
    Thanks in advance,

    Unfortunately, Table Component from basic category does not work with out Data Provider. But Data Table component from standard section works with out data provider. But it does not have the frills and whistles of basic table component.
    - Winston
    http://blogs.sun.com/roller/page/winston?catname=Creator

  • Table with object array data provider

    hi!
    i use the studio creator table and want to fill it with an object array data provider!
    i have an array and the getter:
      public TanData[] getTanDataArray()
            return tanDataArray;    
        }i choosed this for the data provider and in table layout i choose the dataprovider, but when i run my application there are no datas found although the array isn't empty!

    maybe this is a problem:
    i got my data from a database table and i store it in a vector.
    in the example they have a class WeekBean and they fill their array with
       WeekBean[] weeks = {
                new WeekBean(1),
                new WeekBean(2),
                new WeekBean(3),
                new WeekBean(4)
            };and i tried to do this:
        private Vector<TanData> tanDataList = new Vector();
        private TanData[] tanDataArray;
       getTanDataList().copyInto(tanDataArray);could it be that that isn't correct?

  • Best Practice on using and refreshing the Data Provider

    I have a �users� page, that lists all the users in a table - lets call it master page. One can click on the first column to of the master page and it takes them to the �detail� page, where one can view and update the user detail.
    Master and detail use two different data providers based on two different CachedRowSets.
    Master CachedRowSet (Session scope): SELECT * FROM UsersDetail CachedRowSet (Session scope): SELECT * FROM Users WHERE User_ID=?I want the master to be updated whenever the detail page is updated. There are various options to choose from:
    1. I could call masterDataProvider.refresh() after I call the detailDataProvider.commitChanges() - which is called on the save button on the detail page. The problem with this approach is that the master page will not be refreshed across all user sessions, but only for the one saving the detail page.
    2. I could call masterDataProvider.refresh() on the preRender() event of the master page. The problem with this approach is that the refresh() will be called every single time someone views the master page. Further more, if someone goes to next page (using the built in pagination on the table on master page) and clicks on a user to view its detail and then close the detail page, it does not keep track of the pagination (what page the user was when he/she clicked on a record to view its detail).
    I can find some work around to resolve this problem, but I think this should be a fairly common usage (two page CRUD with master-detail). If we can discuss and document some best practices of doing this, it will help all the developers.
    Discussion:
    1.     What is the best practice on setting the scope of the Data Providers and CahcedRowSet. I noticed that in the tutorial examples, they used page/request scope for Data Provider but session scope for the associated CachedRowSet.
    2.     What is the best practice to refresh the master data provider when a record/row is updated in the detail page?
    3.     How to keep track of pagination, (what page the user was when he/she clicked on the first column in the master page table), so that upon updating the detail page, we cab provide user with a �Close� button, to take them back to whaterver page number he/she was.
    Thanks
    Message was edited by:
    Sabir

    Thanks. I think this is a useful information for all. Do we even need two data providers and associated row sets? Can't we just use TableRowDataProvider, like this:
    TableRowDataProvider rowData=(TableRowDataProvider)getBean("currentRow");If so, I am trying to figure out how to pass this from master to detail page. Essentially the detail page uses a a row from master data provider. Then I need user to be able to change the detail (row) and save changes (in table). This is a fairly common issue in most data driven web apps. I need to design it right, vs just coding.
    Message was edited by:
    Sabir

  • Data Source Tables in SAP BW 3.5

    Hello Experts,
    I am working on scenario where I need some information regarding data source present in 3.5 version.
    I have checked RSDT table but it contains data for data sources present in 7.0 version only.
    Please provide list of tables used for data soource and other objects for SAP BW 3.5 version.
    Thanks in Advance.
    Regards,
    Sachin Motgi

    Hi Sachin,
    Please find the below Data Source tables for BW 3.5
    RSTRANFIELD: Mapping of Rule Parameters, Structure Fields
    ROOSOURCE: Info about Data Sources and to see how a datasource is extracting the data
    RSOLTPSOURCE: list of DataSources by source system
    ROOSPRMS : To set the data packet size forData Source
    RODELTAM : Record mode
    RSDCUBET RSDODSOT RSDIPROIOBJT RSQISETT: for Texts
    RSDCUBE: InfoCube
    RSDODSO: DSO
    RSQISET: INFOSET
    RSDDSTAT: Statistics BW data for aggregate selection and query accounting
    Hope it helps.
    Regards,
    Raghu

  • XML Data Provider - Information

    Hi!
    I am using the web item "Data Provider - Information" in the WAD to get a query result in XML. When i choose view source in the explorer i can see the XML generated.
    My problem is that this generated XML generates one "XML set" for the characteristics in the query and one "XML set" for the key figures in the query.
    By this i mean that when i copy the xml from the "view source" file and save it as its own XML file i have to save it as one file for the Key Figures and one file for the Characteristics.
    Like this(Characteristic OMaterial and KeyFiure NetValue):
    <?xml version="1.0" encoding="iso-8859-1"?>
    <item>
    <material>12345</material>
    </item>
    and
    <?xml version="1.0" encoding="iso-8859-1"?>
    <item>
    <net_value>100</net_value>
    </item>
    I would like the web item to generate a XML file that includes both the KeyFigures and the Characteristics.
    Like this:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <item>
    <material>12345</material>
    <net_value>100</net_value>
    </item>
    Do any of you know if/how this is possible?
    Thanks,
    Charlotte

    Hey, sounds like you're getting pretty close. The next thing is integrating the XSLT transform into a web template. I'm actually working on a paper on this that I'll put out at some point. Anywho, here's a sample template that does the XSLT transform on load of the page... The most important thing is that the web template has property "STATELESS=X" so that any navigation you do reruns the transform. This way, you can still navigate and do BW type activities while still transforming the result set. This is very powerful and you'll be able to change or do anything using XSLT transforms. I'm even working on creating javascript functions that run these transforms to do left outer joins and inner joins based on 2 XML result sets. This way, even if data isn't modeled together, it can be presented together. I'm working through the kinks of some of these transforms. Also, I'm working to integrate stylesheet support into my transform as well. Just substitute your transform into the sample template below and it'll render an html table for the XML Query Result Set.
    [code]
    <HTML>
    <!-- BW data source object tags -->
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DATAPROVIDER_1"/>
             <param name="DATA_PROVIDER_ID" value="ZV_STAT_CUBE_VIEW"/>
             DATA_PROVIDER:             DATAPROVIDER_1
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_PROPERTIES"/>
             <param name="TEMPLATE_ID" value="ZPD_STAT_XSL_3"/>
             <param name="STATELESS" value="X"/>
             TEMPLATE PROPERTIES
    </object>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control">
    <TITLE>BW Web Application</TITLE>
    <link href="/sap/bw/Mime/BEx/StyleSheets/BWReports.css" type="text/css" rel="stylesheet"/>
    </HEAD>
    <script language="JavaScript">
          function loadIt() {
            XMLQUERYVIEWDATA_1.async = false;
    xsl_result_1.innerHTML = XMLQUERYVIEWDATA_1.transformNode(xsl_transform_1.documentElement);     
    alert(XMLQUERYVIEWDATA_1.transformNode(xsl_transform_1.documentElement));
        </script>
    <body onLoad="loadIt()">
    <P>
      <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TABLE_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             ITEM:            TABLE_1
    </object>
      <BR>
      <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="XMLQUERYVIEWDATA_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_XML_QUERYVIEW"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="NAVIGATIONAL_STATE" value=""/>
             <param name="RESULT_SET" value="X"/>
             ITEM:            XMLQUERYVIEWDATA_1
    </object>
    </P>
    <!--
    #==========================================================================
    XSL Transformation that displays
    Template Properties, List of Data Providers and List of Items
    #==========================================================================
    -->
    <xml id="xsl_transform_1">
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:variable name="header">
    <tr bgcolor="white"> <xsl:for-each select="//RRWS_SX_TUPLE[1]/*">
      <td>
      <xsl:value-of select="local-name()"/>
      </td>
    </xsl:for-each>
    </tr>
    </xsl:variable>
    <xsl:template match="/">
    <table bgcolor="gold" border="1">
    TESTVALUE -
    <tr>
      <xsl:copy-of select="$header" /> <xsl:apply-templates />
    </tr>
    <xsl:for-each select="//RRWS_SX_TUPLE">
          <tr>
            <td><xsl:value-of select="TUPLE_ORDINAL"/></td>
              <xsl:for-each select="//RRWS_S_CELL">           
              <td><xsl:value-of select="CELL_ORDINAL"></td>
              </xsl:for-each>
            <td><xsl:value-of select="TUPLE_ORDINAL"/></td>
            <td><xsl:value-of select="CHANM"/></td>
            <td><xsl:value-of select="CAPTION"/></td>
            <td><xsl:value-of select="CHAVL"/></td>
            <td><xsl:value-of select="CHAVL_EXT"/></td>
            <td><xsl:value-of select="NIOBJNM"/></td>
            <td><xsl:value-of select="TLEVEL"/></td>
            <td><xsl:value-of select="DRILLSTATE"/></td>
            <td><xsl:value-of select="OPT"/></td>
            <td><xsl:value-of select="SIGN"/></td>                    
            <td><xsl:value-of select="ATTRIBUTES"/></td>     
          </tr>
    <xsl:for-each select="//RRWS_S_CELL">
         <tr>     
            <td><xsl:value-of select="CELL_ORDINAL"/></td> 
            <td><xsl:value-of select="VALUE"/></td>            
            <td><xsl:value-of select="FORMATTED_VALUE"/></td> 
            <td><xsl:value-of select="VALUE_TYPE"/></td> 
            <td><xsl:value-of select="CURRENCY"/></td> 
            <td><xsl:value-of select="UNIT"/></td> 
            <td><xsl:value-of select="MWKZ"/></td> 
            <td><xsl:value-of select="NUM_SCALE"/></td> 
            <td><xsl:value-of select="NUM_PREC"/></td> 
            <td><xsl:value-of select="CELL_STATUS"/></td> 
            <td><xsl:value-of select="BACK_COLOR"/></td> 
         </tr>
    </xsl:for-each>
    </table>
    </xsl:template>
    <xsl:template match="RRWS_S_CELL/*">
    <td> <xsl:value-of select="." /> </td>
    </xsl:template></xsl:stylesheet>
    </xml>
    <table>
      <tr><td valign="top"><div id="xsl_result_1"></div></td></tr>
    </table>
    </body>
    </HTML>
    [/code]

Maybe you are looking for

  • Error -36 "The disk could not be read from or written to.

    I am downloading Weeds on iTunes. And right before the season finale starts to download, I run out of disk space. So I erase some of it. I then go back and refresh the download and get this error. I am downloading it straight to the mac, not some ext

  • Ideapad S10-3s crashes during start-up

    I need help, the other day my notebook crashed when I tried to turn it on. The blue screen appeared and it said "Page fault in nonpaged area" and then it started to dump physical memory. A few days before the incident I also had a hard time turning i

  • Script to save previously unsaved, newly created files?

    I'm looking for a script that can save an open, previously unsaved, image as a TIFF file. It's important that it's not needed to enter a new file name every single time the script is executed, I need the script to do that for me, at least once a file

  • Error message when enrolling in the same Offering

    Our catalog is structured with offerings which have a number of classes under them. These classes contain the same content, but are held weekly (start and end dates per week). Our problem is that a learner can get enrolled into the same course/offeri

  • Installation of Tiger on a PowerBook G4 17in - failing

    As the subject would suggest, I'm having troubles installing Tiger. My PowerBook went in to have its hard drive fixed as it had started developing errors. So, with a new hard drive installed (not by me, an Apple repair place) I have been trying to in