Data binding with tableview: no data returned...

Hi,
I looked at the example BSP_MODEL and now I am trying to build a simple test application with a tableview.
I can easily display data from my model in the tableview, but I can't get the modified data back to my model.
I have implemented the method DO_HANDLE_DATA in the table's controller with the following code:<i>
  CALL METHOD super->do_handle_data
    EXPORTING
      form_fields     = form_fields
      global_messages = global_messages.</i>
The DO_INIT method is like this:
<i>m_model ?= create_model( model_id = 'm'
                         class_name = 'ZNP5' ).
if m_model is bound.
  m_model->init( ).     "a simple select on SFLIGHT
endif.</i>
Obviously I missed something, any idea?
Thanks for your help.
Nicolas

Hi Richard,
Here are more details on my test application:
Model:
- Class Name: ZNP5, superclass: CL_BSP_MODEL
- Attributes: FLIGHTS, Public, TYPE FLIGHTTAB
- Method INIT, Public:
  SELECT * FROM sflight INTO TABLE flights.
The BSP Applications consists of a main controller (main.do) and a subcontroller (table.do) calling views main.htm and table.htm.
MAIN.DO:
- DO_INIT method
  DATA: subc1 TYPE REF TO cl_bsp_controller2.
  subc1 ?=  create_controller( controller_name = 'table.do'
                               controller_id   = 'subc1' ).
- DO_REQUEST method
  DATA: view TYPE REF TO if_bsp_page.
  dispatch_input( ).
  view ?= create_view( view_name = 'main.htm' ).
  call_view( view ).
TABLE .DO
- Attributes: M_MODEL, Private, Type Ref To ZNP5
- DO_INIT method
  m_model ?= create_model( model_id = 'm'
                           class_name = 'ZNP5' ).
  if m_model is bound.
    m_model->init( ).
  Endif.
- DO_REQUEST method
  DATA: view TYPE REF TO if_bsp_page.
  view ?= create_view( view_name = 'table.htm' ).
  view->set_attribute( name = 'model' value = m_model ).
  call_view( view ).
- DO_HANDLE_DATA method
  CALL METHOD super->do_handle_data
    EXPORTING
      form_fields     = form_fields
      global_messages = global_messages.
main.htm
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<%@extension name="xhtmlb" prefix="xhtmlb" %>
<%@extension name="bsp" prefix="bsp" %>
<htmlb:content design="design2003" >
  <htmlb:page title=" " >
    <htmlb:form>
      <bsp:call comp_id="subc1" />
    </htmlb:form>
  </htmlb:page>
</htmlb:content>
table.htm
Attributes: model Type ref to ZNP5
            SelectedRow type string
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:tableView id               = "tvX"
                 headerText       = "Connections"
                 width            = "100"
                 headerVisible    = "true"
                 design           = "alternating"
                 visibleRowCount  = "8"
                 fillUpEmptyRows  = "true"
                 showNoMatchText  = "true"
                 filter           = "server"
                 sort             = "server"
                 onHeaderClick    = "MyEventHeaderClick"
                 onRowSelection   = "MyEventRowSelection"
                 selectionMode    = "LINEEDIT"
                 selectedRowIndex = "<%= selectedRow %>"
                 table            = "//model/flights"
                 tabIndexCell     = "true" />
I've just discovered that the data is actually transfered to the model but it's not retained: When I edit the 1st line of the table, the modified values are transfered to the model, but if I edit the 2nd line, I loose the previous changes... How to solve this?
Regards,
Nicolas

Similar Messages

  • Data not getting bind with cursor

    Hi,
    Database: Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit
    OS: Windows Server 2003
    Consider following procedure:
    Proc P1() as
    cursor c(in_par varchar2) is select distinct col1, col2 from Table1 where col3 = in_par;
    begin
    for rec_c in c('X') loop
    end loop;
    exception
    end;
    Problem: In most of the execution, the value 'X' passed in cursor c get bind with col3 in where clause and get the desired result. However, in some cases, the value 'X' does not get bind with col3 in where clause. I don't know the steps to re-produce the issue, but it occurs once in a while.
    On querying v$sql_bind_capture, i get 'NULL' in value_string whenever this problem occurs. Otherwise, I get 'X' in v$sql_bind_capture. No exception is thrown anytime.
    What may cause miss of binding constant literal 'X' to cursor?

    Have not seen this error before - PL/SQL not binding SQL statements containing PL/SQL variables, correctly. What at times happen is no bind at all due to name collision. Using the same name for a PL/SQL variable as a SQL column in the SQL statement and scope being such that with name resolution, the SQL column gets preference. This of course does not seem to be the case here.
    What could be happening is that a null variable is being passed as the bind value.
    You can also have a look at the Metalink/support.oracle.com for any notes or bugs on this behaviour. Knee-jerk reaction from my side that this is too a common issue to be an actual PL/SQL bug... (would have reared its head a long time ago)
    In cases like this I like to make sanity checks - reduce the problem to its bare basics with a test case and see if that works. Then gradually increase its complexity and see when it brakes, if at all.

  • No data return from BI7 via MDX drvier in Crystal report

    I have:
    Windows 2000 SP4
    SAP BI7 patch level 16
    SAP GUI 710 patch level 7 (BW3.5 addon patch 3, BI 710 patch 5)
    Crystal report XI R2 SP4
    SAP_Integration_Kit_XI R2-SP4
    and the BW tranports already imported in BI7.
    I can create a report over a Bex query in Crystal report using BW Query driver and retirved datafrom BI7
    Then I tried to create a report over the same Bex query in Crystal report using MDX driver, I got no data return from BI7.
    So I used the RSRTRACE transaction to trace the log when refreshing data in Crystal report, and then go to debug the call 10- GET_CELL_DATA and I have data from the MDX excution in BI7.
    So I think Crystal report can pass the MDX query to BI7 and BI7 can excute it without any problem, the issue is no data return to Crystal report.
    Could anyone help please?
    Thanks.

    [HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\SAP]
    "TraceDir"="C :\\Crystal Report\\"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\SAP\BW MDX Query Driver]
    "Trace"="Yes"
    "ExcludeSummaries"="Yes"
    Above are the right code in Reg and I have tried "C:\" as well, but still no trace file created.
    I was create the CR MDX report via SAP tool bar (and I create 2 reports base on the same Bex query with MDX and BW query just to compare, that one via BW query return data from BW)
    Thanks a lot.
    Allen
    Edited by: Wen Allen on Aug 25, 2008 5:32 PM

  • BW Error: No Data returned by XI

    Hello
    I am working on an BW(proxy) XI (synchronous)XMII scenario. The scenario is working fine in the DEV environment. I have transported objects to QA when BW is running the query it is givng an error which states no data returned by XI. Is the error due to improper transports on XI side ?
    I tested the scenario for XI to xMII connection and it is working fine. At BW end it is giving error.
    Thanks. I truly appreciate your help in this case.
    Kiran
    Edited by: KIRAN SAKHARDANDE on Apr 1, 2008 12:03 AM

    I performed the sldcheck and I think the error is caused since BW is unable to detect business system BWT
    BW Error 1:
    GET_BUSINESS_SYSTEM_ERROR: An error occured when determining the business sytem NO_BUSINESS_SYSTEM
    BW Error 2:
    No data returned by XI
    I will keep you update with the resolution.
    Thanks.
    Kiran

  • Datas return from Blob data type in Sqlite

    i am using sqlitejdbc-v053.jar through get SQLITE BLOB data type data. But i cannot data return from Blob type.
    Error will be display from :
    not implemented by SQLite JDBC driver
    and point out error line
    blob = rs.getBlob("NGP_REPDATA");
    {try {
                   Class.forName("org.sqlite.JDBC");
                    conn = DriverManager.getConnection("jdbc:sqlite:test.DB");
                    stmt = conn.createStatement();
                    rs = stmt.executeQuery("SELECT * FROM sometable");
                    System.out.println("==============");
                    while(rs.next()) {
                         blob = rs.getBlob("blobDATA");//
                         is = blob.getBinaryStream();
              catch(SQLException e) {
                   e.printStackTrace();
              }}any sample or solution pls give
    sqlite with BLOB sample there pls give link                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    There explicitly tells you that the JDBC driver that you are using will not do the method that you are calling.
    Thus you cannot use that method.
    There is another way to extract blobs which involves using a stream. You can search for that.
    If your blobs are actually short and only have character data then you might be able to use getString() as well.

  • When I call nifGetObjectDictionary on a Domain Index, what is the format of data returned

    hello,
    When I call nifGetObjectDictionary on an Active Schedule Domain Index (450) of NI Card, retrieved from S-OD -> DLL Link Schedule OD Index, what is the format of data returned? I received 0801C202FFFF000000 as data and it is not matching with FF-Spec (Field Device Access Agent, page 95).
    Could you please let me know the format/structure of the data i received, so that i can parse them and understand?
    Also let me know is there any API available in NI API to upload/read Schedule Domain?
    Thanks
    Shankar.

    Sorry for replying late!
    We don't have the nifGetObjectDictionary function, so may I make a guess that you mean nifGetObjectDescription? If I'm right, there will be some trouble.
    To be honest, basically we don't support the APIs which are not included in the "NI-FBUS CM Function Reference Manual". In further, would you please let me know how you find this kind of internal functions? We cannot support it until we verify the customer has bought the complete version of APIs package and this package is still in the support period. If it matches your case, would you please help me in the verification? And then we can support the details for your question later.
    On the other hand, we don't have the APIS to upload/read Schedule Domain now.

  • RMS wrong data returned

    Most of time I am getting the right result back, but occasionally, I am getting wrong data returned from the record store.
    I am storing a string of numeric characters only from a text field as bytes. It is only a maximum of 4 characters and quite often it seems to come up with 100, when that was not the value that was saved.

    Just to tie this off, this behavior was observed on 10.2.0.1 on both Windows and Linux. However we've verified that it is fixed in the 10.2.0.3 Patchset (Patchset 5337014) on Windows. I was unable to find an Oracle ticket that directly corresponded to this behavior, but it appears that there were similar-ish problems with query plans created to support NLS behavior and those must have addressed some fundamental issues.
    Thanks,
    -Michael

  • No data or limited data returned

    Hi,
    I am having the following issues right now.  Has anyone else seen this happen?  Is there a setting that may be causing these things to happen?  thanks!
    1.     I have a Crystal report, running against the production database.  It returns absolutely nothing.  If I do a show sql and copy and paste the exact sql into sql server management studio without making any changes whatsoever, I have over 80 records returned.  When I copied this same sql into a new report as a command (rather than joining tables like I did in the other report), I get all of the data returned.
    2.     In another Crystal report, I get a very limited set of data returned (less than a page or less than 40 some rows).  When I copy and paste the exact same sql into sql server management studio without making any changes, I get almost 2,000 records returned.

    Are you using wild cards ? Because there are problem when you use wild cards with crystal reports.
    - Regards, Dibya

  • Incorrect data returned when using a date prompt

    We are using BO XI R3.1 with fix pack 1.3 on windows with a CMS and report database on Oracle 11i. There is one report in which a date range is set by prompting for the Start and End date, depending on the dates entered it sometimes erroneously displays the message `No data to fetch`.  It can be confirmed that there is actual data rows, by either running the SQL script in an application such as Toad or by hard-coding the start and end dates into the condition, indicating that it is the `Prompt` which is causing the problem.
    For example if the start and end dates are 28/06/2010 - 02/07/2010 there will be no data returned, but if the end date is extended to 30/07/2010 then data will be returned which includes transactions from 28/06/2010 - 02/07/2010.  Whether the date range is set using the SQL `between`  operator  or  using the start date greater than or equal and end date less than or equal results in the same `no data to fetch` message displayed.
    Is this a known issue or have other users come across this behaviour in their desktopIntelligence reports ?. It may be that it is fixed in subsequent service packs but for the time being our environment cannot upgrade beyond the existing fix pack. This problem can also be replicated on new reports and even on other date fields in the database, and if the prompt is incorporated into the Universe the problem still remains.
    Meanwhile any thoughts or ideas on the problem are appreciated.
    Edited by: Peter Gibbs on Jul 26, 2010 1:14 PM

    Hi Peter,
    I've noticed similar behaviour in the past, and it had to do with a difference in language setting between client and server side.
    So let's say dutch client, american oracle.
    So oracle expects MM/DD/YYYY whereas the users think they must input DD/MM/YYYY.
    Now happens something that I consider BO being to clever for its own good.
    If a user enter 28/06/2010 it knows that can't have been MM/DD/YYYY since it is invalid that way,
    so it swaps it! and gives 06/28/2010 to the database.
    A date like 02/07/2010 doesn't get swapped because its valid,
    so it gives 02/07/2010 to the database.
    So ultimately the database tries to retrieve between Jun 28th and Feb 7th, which gives no data to fetch...
    Thats why in situations with different date formats I never use a data field to prompt,
    but request the data in a certain format as string and convert it myself in the universe to a dateformat for the database to process. I just state the expected input format to the user so there are no surprises anymore.
    Something like "Give date from (ddmmyyyy)"...
    Hope this helps,
    Marianne

  • Bad data returned using DSEE6.3: JDBC Data View to DB2 for CHAR fields

    I have created a JDBC dataview to a DB2 database using com.ibm.as400.access.AS400JDBCDriver. When using ldapsearch, the data returned is inconsistent with that which is on the database. The DB2 table has data types of CHAR, DECIMAL, and NUMERIC. For the Decimal and Numeric fields, I am not experiencing a problem. The data returned here maps exactly to that which is on the table. For CHAR fields, I get mixed results.
    When defining JDBC attributes in DSEE, I mapped the sql-syntax attribute accordingly for each corresponding attribute on the DB2 table. As a side note, I also configured each attribute so the ldap-syntax = ces (Case sensitive). Also, I could not find a way to define the length of the char for my JDBC attribute. I'm not sure if there's supposed to be a way that I just haven't figured out yet.
    For the CHAR fields, in some cases I get what's on the data source. In other cases, I don't. I've tried to find a pattern but have been unlucky so far. Many fields with length of just 1 come back ok, but a few of length 1 are incorrect. Some fields bigger then length 1 are ok, but the majority come back with garbage. Coincidently or not, it almost looks like a hash of some sort. I'm wondering if there is a character on the datasource that's causing problems with DSEE figuring out where the end of the string is. I'm using NetBeans to look at the database, but I don't have direct access to the DB2 database at this point to see the data directly.
    Has anyone experienced something simliar or have any suggestions as to further research of this problem?

    Upon further testing I have found that the problem mentioned exists only when using ldapsearch. When I used an ldap browser, the char fields looked as expected.

  • "Primitive Type Returned", when I try to configure the data return type.

    I am basically following this tutorial, Getting started with ColdFusion and Flash Builder 4 beta, but instead of using the database provided, I am using SQL Server 2008.  I am now stuck on the part titled, "Configuring the data return type".  In step 5 of this section, I submit my credentials and then I get a popup titled:
    Primitive Type Returned
    The operation returned a response of the type "Object".
    You may either update server code to fix the returned data or Click OK to set "Object" as the return type of this operation.
    I am not sure if "server code" would be my database and/or the Coldfusion code that was provided in this tutorial.  I am thinking that its the former, however I am new to both technologies.  Would anyone know why FlashBuilder will not strong type this data for me?

    Hi,
    Thanks for your feedback!
    The server code here means the ColdFusion code provided in the tutorial.
    The "Configure return type" step is performed to change the return type of the function.
    If you notice after importing the CFC in the Flash Builder the return type of getAllData was Object but with this step you are trying to change it to a Strong Type.
    So context click on the getAllData function,select 'Configure return type', enter "EmployeeSalesData" click NEXT , enter valid RDS credentials in the security dialog and click FINISH.
    This should have ideally set your return type to "EmployeeSalesData"(Strong type).
    Also if you are extremely new to this i suggest you to pick up a pre-release build of Flash Builder which has a COOL feature which can help you get started pretty fast and simplify most of these workflows.
    To avail for the pre-release build please send a mail to [email protected]
    Hope this helps!
    Thanks,
    Balaji
    http://balajisridhar.wordpress.com

  • Capturing xml data returned from a url post in a jsp page

    Hi,
    We are writing a interface which will capture data returned from an other website. The data returned will be in XML form.
    http://www.ecrm.staging.twii.net/ecrmfeed/ecrmfeedservices.sps?eCRMFeedInputXml=<twii><ecrmfeedinput><data%20method="Login"><username>[email protected]</username><password>password</password></data></ecrmfeedinput></twii>
    When the above url is executed in a browser, it required NT authentication. The username and password is getcouponed. Once the username and password is fed, we can see the output in the form of a xml. We require the xml in a String variable in a jsp page. We need to know the steps on how to execute the url in a jsp page. We used the url object to do the same, but we get a error saying "java.net.UnknownHostException: www.ecrm.staging.twii.net".
    Can anyone help?
    Regards,
    Gopinath.

    Hi,
    I would like to know if I can use the java.net package to get anything out of a website which requires authentication. In this case NT authentication.
    Thanks in advance,
    Gopinath.

  • Why Date() return local and GMT time intermixturely

    I have following code in my Java application:
    Date dt = new Date();
    System.out.println("Local Time: " + dt.toString());
    I got local date (CST) at most time. But I got GMT format date few times within hours' running by the same code and the same running, which will crash my DateFormate later.
    Can anyone tell me why this happened? Is there any way I may use to make sure of that "new Date() will return only one date format, local or GMT"?
    Thanks.

    Do appreciate of your reply. In my application, I do use new Date() and DateFormat.format() like you suggested. But I caught following exception. Then I use Date.toString() to test Date and found that " new Date() return local time (CST time) and GMT time intermixturely". Most time, my application got CST time string and my SimpleDateFormat("yyyy.MM.dd' 'HH:mm:ss:SSS") works well. But few times a running, new Date() return a GMT time string, then I got following exception. I was confused by why one statement "Date dt = new Date();" in one running return both CST and GMT time.
    java.lang.IllegalArgumentException
         at java.util.SimpleTimeZone.getOffset(SimpleTimeZone.java:427)
         at java.util.GregorianCalendar.computeFields(GregorianCalendar.java:1173)
         at java.util.Calendar.complete(Calendar.java:1058)
         at java.util.Calendar.get(Calendar.java:916)
         at java.text.SimpleDateFormat.subFormat(SimpleDateFormat.java:481)
         at java.text.SimpleDateFormat.format(SimpleDateFormat.java:410)
         at java.text.DateFormat.format(DateFormat.java:305)

  • Want to display "no data Return" message for empty report

    HI all
    I have a requirement where i should show a message saying "No data Returned" under the empty table in the webI report.
    I know that we should use function
    =If(NumberOfRows([Data Provider Name])=0;"NO Data Available")
    I will create a empty cell and include this formula for that cell, but any one please tell me what exactly is the Data Provider Name? Is it the name of the univerese or something else? where can i get the Data provider name?

    Data Provider Name is the name of your query.  By default its name is Query 1.
    =NumberOfRows([Query 1])
    Or you may have changed its name when you edited the query in the query panel, so that's the name you have to use there
    For example:
    =NumberOfRows([My Query])
    If you have a lot of Queries in your report they may be Query 1, Query 2, Query 3 and so.
    Edited by: PadawanGirl on Feb 18, 2011 3:33 PM

  • Is it possible to size a flash chart based on the amount of data returned?

    My chart is based on a date range. If a user enters say a range of one year, I need the line chart to be rather large so show all the data points. Though if they select just a week, then the chart can be much smaller. I only see the hard coded values to set the size of the chart (Chart Width and Chart Height). Can those be changed on the fly based on the amount of data returned?
    Using Application Express 3.1.2.00.02 and AnyChart 3.3
    Thanks.
    Chris

    Hello Hillary,
    I tried your suggestion, but still not working for me. I added hidden text field that wold hold the vaule of the width for the chart. Then I reference that field in the chart source. Is there some other property I need to change as well? Any more suggestions? Thanks.
    Here is my source.
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
         codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
         width="&P86_NUM_ROWS."
         height="#HEIGHT#"
         id="#CHART_NAME#"
         align="">
    <param name="movie" value="#IMAGE_PREFIX#flashchart/#CHART_TYPE#.swf?XMLFile=#HOST#apex_util.flash?p=&APP_ID.:86:&APP_SESSION.:FLOW_FLASH_CHART_R#REGION_ID#">
    <param name="quality" value="high">
    <param name="allowScriptAccess" value="sameDomain">
    <param name="allowNetworking" value="all">
    <param name="scale" value="noscale">
    <param name="wmode" value="transparent">
    <param name="FlashVars" value="waiting=#FLASH_WAITING#&loading=#FLASH_LOADING#">
    <embed src="#IMAGE_PREFIX#flashchart/#CHART_TYPE#.swf?XMLFile=#HOST#apex_util.flash?p=&APP_ID.:86:&APP_SESSION.:FLOW_FLASH_CHART_R#REGION_ID#"
    quality="high"
    width="&P86_NUM_ROWS."
    height="#HEIGHT#"
    name="#CHART_NAME#"
    scale="noscale"
    align=""
    allowScriptAccess="sameDomain"
    allowNetworking="all"
    type="application/x-shockwave-flash"
    pluginspage="http://www.macromedia.com/go/getflashplayer"
    wmode="transparent"
    FlashVars="waiting=#FLASH_WAITING#&loading=#FLASH_LOADING#">
    </embed>
    </object>
    #CHART_REFRESH#

Maybe you are looking for

  • Conecting Mini DVI to HDMI Video Cable with my mac book pro

    Hi. I just bought Mini DVI to HDMI Video Cable to connect my mac book pro to my HD TV. I connected the cables and put my TV on HDMI input. On the TV it appears the Snow Leopard Background but I can't see my desktop or the icons. What should I do to v

  • Security question: Can you decompile a PL/SQL compiled procedure?

    I am wondering if anyone would be able to tell me if it is possible to decompile a compiled oracle PL/SQL procedure. Scenario: I create some data encryption code in PL/SQL that contains an encryption key string. I compile the PL/SQL as a stored proce

  • Special usb cable for Nokia 5230?

    Does the Nokia 5230 use a special usb cable? I can't get my ordinary usb cable to fit. (And the secondary question if yes on the first would be why? Out if greed?) Solved! Go to Solution.

  • Restore photo editor and video editor

    Can someone really help regain my photo and video editor on my nokia 700 after i have performed factory reset, my nfc tutorial, photo editor as well as video editor have vanished after using the back up.I love using thee apps on my phone, please i re

  • Connect JAVA with ABAP

    Hi, I have a requirement in my project to connect Java with ABAP. I want to access ABAP tables from my java application. I am not sure but I think we can use SAP JDBC drivers to do that. I found this link to connect JAVA with ABAP  : SAP DB JDBC Driv