Cannot see data in SAP.Web.UI.Controls.Table

Hi,I have created a portal project and dragged a sap table into the design area. then i call a webservice and bind the resulting dataset to the table. the dataset seems to bind, since i can see there are the right number of pages in the table, but i cannot see any of the data. all the rows are blank. am i treating the ascx file correctly? i deploy and browse to test it.
this is the code in the aspx:
<%@ Register TagPrefix="sap" Namespace="SAP.Web.UI.Controls" Assembly="SAP.Web, Version=1.2.0.0, Culture=neutral, PublicKeyToken=50436dca5c7f7d23" %>
<%@ Control language="vb" Codebehind="PortalComponent1.ascx.vb" AutoEventWireup="false" Inherits="pdkdemo2.PortalComponent1"  targetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<!%@ PortalComponent name="PortalComponent1" %>
<LINK href="C:\Program Files\SAP\SAP Portal Development Kit for .NET 1.0\Controls\ur\ur_design.css"
     type="text/css" rel="stylesheet">
<body class="prtlBody">
     <sap:Table id="Table1" runat="server">
          <sap:Caption Text="Table" ID="Caption2"></sap:Caption>
          <sap:TableRow ID="Table1_ItemTemplate">
               <sap:TableCell ID="TableCell4" Title="Column1">
                    <sap:TextView ID="TextView4"></sap:TextView>
               </sap:TableCell>
               <sap:TableCell ID="TableCell5" Title="Column2">
                    <sap:TextView ID="TextView5"></sap:TextView>
               </sap:TableCell>
               <sap:TableCell ID="TableCell6" Title="Column3">
                    <sap:TextView ID="TextView6"></sap:TextView>
               </sap:TableCell>
          </sap:TableRow>
     </sap:Table>
</body>
and this is the code behind:
Imports System
Imports System.Collections
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Web
Imports System.Web.UI
Imports SAP.Portal.Web.UI
Imports SAP.UI
Imports SAP.Web.UI.Controls
Public class PortalComponent1
    Inherits SAP.Portal.Web.UI.PortalComponent
    Protected WithEvents Table1 As SAP.Web.UI.Controls.Table
    Protected WithEvents Caption1 As SAP.Web.UI.Controls.Caption
    Protected WithEvents Table1_ItemTemplate As SAP.Web.UI.Controls.TableRow
    Protected WithEvents TableCell1 As SAP.Web.UI.Controls.TableCell
    Protected WithEvents TextView1 As SAP.Web.UI.Controls.TextView
    Protected WithEvents TableCell2 As SAP.Web.UI.Controls.TableCell
    Protected WithEvents TextView2 As SAP.Web.UI.Controls.TextView
    Protected WithEvents TableCell3 As SAP.Web.UI.Controls.TableCell
    Protected WithEvents Caption2 As SAP.Web.UI.Controls.Caption
    Protected WithEvents TableCell4 As SAP.Web.UI.Controls.TableCell
    Protected WithEvents TextView4 As SAP.Web.UI.Controls.TextView
    Protected WithEvents TableCell5 As SAP.Web.UI.Controls.TableCell
    Protected WithEvents TextView5 As SAP.Web.UI.Controls.TextView
    Protected WithEvents TableCell6 As SAP.Web.UI.Controls.TableCell
    Protected WithEvents TextView6 As SAP.Web.UI.Controls.TextView
    Protected WithEvents TextView3 As SAP.Web.UI.Controls.TextView
    Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim proxy As New secblrnd.Service1
        Dim ds As DataSet
        ds = proxy.GetData("U020_EQUIP", "ALL", "NO", 0, "MOODLET1", "MOODLET1")
        Table1.DataSource = ds
        Table1.DataBind()
    End Sub
#Region "Web Form Designer generated code"
    Protected Overrides Sub OnInit(ByVal e As EventArgs)
        ' CODEGEN: This call is required by the ASP.NET Web Form Designer.
        InitializeComponent()
        MyBase.OnInit(e)
    End Sub
    ' Required method for Designer support - do not modify
    ' the contents of this method with the code editor.
    Private Sub InitializeComponent()
    End Sub
#End Region
End class
any assistance would be highly appreciated.

Hi,
The problem is that the SAP table doesn't support this kind of "dynamic binding" at the moment. The SAP table can contain any one of several controls in each cell, and these controls have several possible properties to bind to. So currently you have to "tell" the table what you want to bind to.
You have several options:
1. The easiest option, if you can create a typed dataset in design-time, according to what your webservice returns, then do that... and then put an instance of it on your portal component, and bind your table to that typed dataset (using the designer property grid). This should create a default ItemTemplate with all textViews in the cells, and the texts will be bound to the columns.
2. Write code in ItemCreated Event handler of the table. This event will be raised for each row in the DS. There you can tell the cells to get the data from the content. Remember that you'd have to create the cells according to the number of columns and set the content of each cell to be what control you want (like TextView) and then fill the properties of that control.
3. If you know the Data structure, but don't want to or can't create a typed DataSet - First define the columns using the designer (right click the table, select "edit columns"). Then in the event handler (from "2") just set the property "text" of each TextView which is in the content of each cell (use the Cell's property "TableCellContent" to get to the TextView control)
4. Don't use databinding and create the table contents completely manually (See here -
How to modify cells in a table?)
One last thing, here's a link to some more explanations about DataBinding in SAP controls:
https://media.sdn.sap.com/html/submitted_docs/PDK_for_dotNET_10/Programming%20with%20PDK%20for%20.NET/SAP%20NetWeaver%20.NET%20Controls/Data%20Binding/Complex%20Data%20Binding.htm
If you choose a solution and need more help, just ask. 
Regards,
Ofer

Similar Messages

  • Cannot see data in BSO from transparent ASO partition

    I have 2 cubes: BSO (target) and ASO (source).
    BSO should show data from ASO corresponding element "Fact" from dimension "Scenario".
    I can see the data using ASO directly, but I cannot see data viewing it from BSO using transparent partition...

    Hi,
    When you have the data in the ASO( i.e source cube) ,it should reflect in the BSO ( i.e destination) . I am sure there is problem with the transparent partition ,you had created .Validate and share more info of error ( if you encounter during partition creatino) , that should be resourceful
    Sandeep Reddy Enti
    HCC

  • Consuming SAP web services with tables

    I'm doing kind of feasibility study on consuming SAP web
    services from CF.
    So far so good, but I'm stuck dealing with tables
    (import/export parameters in SAP world).
    I know how to receive a table object from SAP functions:
    * With Apache Axis v1.2: pass an empty CF structure as a
    parameter
    * With Apache Axis v1.4: pass an empty CF array as a
    parameter
    Then the parameter is filled with data (replaced with Java
    object) and we can just parse the object accordingly.
    My question here is whether or not we can pass a *table with
    actual records*.
    For example, I want to pass a table with multiple records to
    update DB records under SAP.
    I tried passing (1) CF array of structure and (2) Java
    ArrayList with no chance.
    The web service call itself completes without errors (no
    method signature error), but the SAP function seems to see the
    parameter as an empty table.
    Anyone has been successful with this case?
    Any suggestion would be much appreciated.

    Thanks Dan,
    Unfortunately CF query object didn't work either.
    Now I'm looking at the code generated by Flex Builder to see
    how the classes are like ;-)
    It's just an ArrayCollection of simple value objects
    (representing a row).
    So CF array of structure or Java ArrayList looks a reasonable
    approach though they don't at all.

  • 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

  • How to delete the data from SAP R/3 DB table from BW

    Hi,
       I am facing an issue... I have populated the data into custom r/3 DB table by running a user exit.I am getting the data and loading(Full Load) it in BW ODS. But my problem is when i rerun the user exit it is giving me a short dump saying "SAPSQL_ARRAY_INSERT_DUPREC". when i delete the enteries of DB table it is working fine. But this fine in development.but i production i cannot do this.So i want to delete the DB table enteries by an ABAP program and call this ABAP program using Process chain when my ODS data LOAD is successful. How to go About this.
    P.S: I want only to delete the DB table enteries not the DB table.....
    Thanks and Regards
    Sairam phani

    Sairam,
    why don't you just add the code for deletion of records into that user exit, so it would first delete entries and then write new ones.
    Alternatively, you could use a Process Chain to trigger an event in R/3, and by that event a scheduled job would run, deleting entries from that table.
    As I don't know details of the solution you're implementing, that's all I can think of now.
    Cheers,
    /RB

  • Cannot see data or enter data in pdf forms

    I am an elementary school teacher, and use an application to maintain student information.  I am able to navigate thru the app to select various student data, but when I click to display a students information, a blank PDF form is displayed.  Borders and grids display, but no data is displayed, and I cannot enter any data.  The IT help desk suggested uninstalling the old Adobe Reader, and replacing with 9.4.1, but this did not help.    

    It's really hard to say what's going on without knowing more about the system. It's possible that the program is generating an FDF (Forms Data Format) file and launches it, causing the PDF to load and populate with the data in the FDF. Folks have reported that recent changes to Reader have broken this type of thing. So you may need to go back to an even earlier version, such as 9.2 or 9.3, or somehow contact the developers of the application for help.
    Is this something that happens in a web browser?

  • Cannot see the elements in Web Service Action block

    Hi,
    When I use SoapUI I can see the elements of a Service but when I use Web Service Action block of MII, I can only see the first element (job). The children of job are not appearing in link editor. Any Idea?
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.ct.xxx.de" xmlns:xsd="http://data.xxx.de/xsd">
       <soapenv:Header/>
       <soapenv:Body>
          <ws:startJob>
             <!--Optional:-->
             <ws:job>
                <!--Optional:-->
                <xsd:a>?</xsd:a>
                <!--Optional:-->
                <xsd:dir>?</xsd:dir>
                <!--Optional:-->
                <xsd:dirR>?</xsd:dirR>
                <!--Optional:-->
                <xsd:u>?</xsd:u>
                <!--Optional:-->
                <xsd:g>?</xsd:g>
                <!--Optional:-->
                <xsd:value>?</xsd:value>
             </ws:job>
          </ws:startJob>
       </soapenv:Body>
    </soapenv:Envelope>

    Anyone has any idea? I really appreciate any idea. Thanks

  • Cannot see data in infotype when creating new Crystal Report

    Dear Experts,
    I have installed SAP Crystal Report 2011 trial version. After many weeks of trying to install CR2011 and making it work, i finally able to connect to SAP R/3 (ECC5.0).
    The problem is after choosing the table (eg. PA0002) and selecting field "employee number", "name", "start date", "end date" and other fields and selecting preview, the report only show "employee number", "start date" and "end date".
    The rest of the fields in PA0002 is showing BLANKS. I check in backend R/3 and the data is there.
    I also tried choosing "Mandt", the field is also showing blank in report preview.
    My basis team has done the following:
    1. Performing ABAP imports
    2. Grant authorisation for crystal report connection
    But still the fields above is not showing.
    Any clue?
    Thank in advance,
    Zul

    HI Zul,
    Its clearly the problem with the version of crystal you are using
    you have mentioned that you are using crystal 2011 and the ECC is SAP R/3 5.0
    Because crystal 2011 is only compatible with latest ECC client like 6.0 and above ...
    Solution are :-
    1.) you can upgrade the connectivity driver with the ECC
    or
    2.) you can use 2008 crystal report tool to connect the table , so can find the missing feilds
    Please try this and let me know you are able to fix this
    Thank you
    R.Arun

  • Cannot see data in HFR

    I have a Planning application which is showing up data in data forms for a particular scenario/version/year/period combination.
    However, when trying to view the data through a HFR financial report for the same intersection, there is no data all of a sudden. I double checked the intersection combination to make sure it matches what we see in the data forms, and it does.
    Just wondering if anybody has any guidance as to how to proceed: what else can I check?
    thanks.

    Login to Workspace > Explore > Tools > Database Connection Manager. Confirm that the database connection is created. Click Close.
    Click on Tools > Change Database Connections > Find your report > Click OK > The first box (Find all references to the Database Connection) shows you which db connection your report is mapped to.
    Hope this helps.
    Cheers,
    Mehmet

  • 04s WAD: Cannot see assigned roles and web templates

    Hi,
    when i log into the 04s WAD, i am unable to see the roles that are assinged to my id as well as teh templates assigned to those roles.  using the "find" function does not return web templates that i should be able to see. I am able to see the roles & web templates when logging in through the 3.x WAD.
    We are on SP11.  any suggestions are appreciated.  Thanks!

    Hi,
    You should migrate your 3.x WAD to see them with the new WAD.
    -> Tool -> migrate.
    You can see the old WAD with the 3.X WAD.
    hope it help's

  • ITunes cannot see data in the MyBookLive shared drive, but it's there

    I have iTunes on a Mac OS X 10.6 and the 2TB MBL. I transferred 40G of music from local drives to my MBL successfully. I can see those in Finder - Public - Shared Music. I enabled the Public Share to be "ALL" for media sharing. I can see the MBL in the SHARED options in iTunes, then when I click on it, or double click on it, I only see the 3 default playlists - Movies, Music, and TV. There are no files in any of them. I have iTunes Enabled in the MBL Settings - Media. I then rebootedthe MBL then rebooted the Mac, and still no luck.
    The WD goons think this is an apple issue. Please help.

    Moved to Crystal Reports forum.
    ludek

  • Cannot see data on  totals for a cross tab report

    Hi All,
    I create calculation with Count_Distinct function in crosstab format
    when insert Total in the bottom, the data is not appear in total.
    What is wrong about my report?
    Thank you,
    Mcka

    Is the same problem happening in a 'table' as well as the xtab?
    If so, then have you more than 1 folder being joined in this report?
    Russ

  • Cannot see data in table column

    Hello All,
    There is no data being shown in my table columns as soon as I increased the amount of data that is being placed in each column. how should i fix this?
    Thanks

    Hi Vijay,
    Please explain your question in detail.
    Please check the table Datasource property and check the column data bindings.
    Regards, Anilkumar

  • Cannot see dates in time machine

    I am trying to use Time Machine but when it opens it only shows my files from todays date. It doesnt show the previous dates. Any ideas?

    Have earlier backups completed successfully?
    Does the Time Machine Preferences panel show a last backup date?
    Assuming you're starting from a Finder window, was the folder it's showing backed-up previously?

  • Web Dynpro UI Vs SAP Web UI

    I have been trying to understand this but don't see enough material on this topic.
    As we know, we can always go for SAP Web UI (Web version of SAP GUI) to web enable SAP Transactions. I would like to know what are the specific advantages and differences between standard SAP Web UI and Web Dynpro UI approach.
    I guess, we can share our own experiences and thoughts on this and may be we can reach on some conclusion.
    Thanks
    Chandra

    Hi,
    go through:[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10c671f2-6364-2a10-8d96-8b3145d4a478]
    for SAP web ui chk this link:[https://media.sdn.sap.com/html/submitted_docs/dotnet/Reference/SAP.Web.UI.Controls.html]
    for web dynpro UI info go through:[https://www.sdn.sap.com/irj/sdn/nw-ui]
    Regards
    Khushboo

Maybe you are looking for