Sitemap

Amicuk Programming Answers

Table creation in sap ui5

-0001-11-30   Views:0

Advertisement

Hi, I am new at SAP UI5 and i am trying to create a table. I used the code given on the sap ui5 demokit but when i am running the application the table is not displaying. can anyone help me with this. Thanks in advance. var aData = [           {lastN

Hi,
I am new at SAP UI5 and i am trying to create a table.
I used the code given on the sap ui5 demokit but when i am running the application the table is not displaying.
can anyone help me with this.
Thanks in advance.
var aData = [
          {lastName: "Dente", name: "Al", gender : "male"},
          {lastName: "Friese", name: "Andy", gender : "female"},
          {lastName: "Mann", name: "Anita", gender : "female"}
  //table creation
  var oTable = new sap.ui.table.Table({
  title: "Guest House list",
  visibleRowCount: 3,
  firstVisibleRow: 2,
  selectionMode: sap.ui.table.SelectionMode.Single,
  //column creation
  oTable.addColumn(new sap.ui.table.Column({
  label: new sap.ui.commons.Label({text: "Last Name"}),
  template: new sap.ui.commons.TextView().bindProperty("text", "lastName"),
  sortProperty: "lastName",
  filterProperty: "lastName",
  width: "200px"
  oTable.addColumn(new sap.ui.table.Column({
  label: new sap.ui.commons.Label({text: "First Name"}),
  template: new sap.ui.commons.TextField().bindProperty("value", "name"),
  sortProperty: "name",
  filterProperty: "name",
  width: "100px"
  oTable.addColumn(new sap.ui.table.Column({
  label: new sap.ui.commons.Label({text: "Gender"}),
  template: new sap.ui.commons.ComboBox({items: [
  new sap.ui.core.ListItem({text: "female"}),
  new sap.ui.core.ListItem({text: "male"})
  ]}).bindProperty("value","gender"),
  sortProperty: "gender",
  filterProperty: "gender"
  //data collection
  var oModel = new sap.ui.model.json.JSONModel();
  oModel.setData({modelData: aData});
  oTable.setModel(oModel);
  oTable.bindRows("/modelData");
  //Initially sort the table
  oTable.sort(oTable.getColumns()[0]);
  oTable.placeAt("table");

The replay answer
Advertisement
Hi Anshul
it should be
press: function() {
   oTable.setVisible(true); // or false
am I right?
-D

Go to See the other 7 answers

Table creation in sap ui5

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I am new at SAP UI5 and i am trying to create a table. I used the code given on the sap ui5 demokit but when i am running the application the table is not displaying. can anyone help me with this. Thanks in advance. var aData = [           {lastN[More]

Dynamic Internal Table creation in SAP version 4.5B

Category:DefaultRelease time:-0001-11-30Views:130

Hi All, Can anybody please let me know if it is possible to create dynamic internal table in SAP version 4.5 B. If yes will be of great help if somebody can give the method of doing it or any sample code to follow. Thanks in advance!!!Hi Refer this w[More]

Creation of SAP Query in SQ02 with Single Table With Condition

Category:DefaultRelease time:2015-10-11Views:130

Hi All, I want to Create SAP Query in SQ02 using single Table MCHA. ii) I dont want all entries of MCHA Table I mean , I have to apply some Condition on this Table. i.e  Suppose I am having actual data in MCHA table is like this for Material M1. Plan[More]

Unable to create a new view for SAP UI5 in NWDS

Category:DefaultRelease time:2015-10-11Views:130

Hi UI5 Profis, I'm just getting started with SAP UI5 and wanted to create and run my first application using the UI5 Tools wirh NWDS. After having installed NWDS and the UI5 Tools I create new SAP ui5 project, but the wizard always run into error, wh[More]

Dynamic Internal Table creation and population

Category:DefaultRelease time:2015-10-11Views:130

Hi gurus ! my issue refers to the slide 10 provided in this slideshow : https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b332e090-0201-0010-bdbd-b735e96fe0ae My example is gonna sound dumb, but anyway: I want to dynamically select[More]

Derived Table creation

Category:DefaultRelease time:2015-10-11Views:130

Hi, we are working on Business Objects Migration 6.1 to BOXIR2 project.plz any one help me Derived table creation for Free Hand SQL Reports?.How to use promt functions also.........? Thanks for advance.... Thanks&Regards RamuRamu, Your question is po[More]

Creating a search help with SAP UI5 and js?

Category:DefaultRelease time:-0001-11-30Views:130

Hello com, I am trying to create a search help, collecting data from a table. Is there something similar to the typical ABAP search help in SAP UI 5? ABAP: PARAMETERS: lv_alias TYPE dsh_alias MATCHCODE OBJECT dashboard_alias_f4, I found this in the D[More]

How to Covert PDF! file format into XSTRING format in SAP UI5?

Category:DefaultRelease time:-0001-11-30Views:130

HI All, I Am ABAPer. I don't have any idea on front end system. Can any buddy guide me how to convert PDF file into XSTRING or BINARY in SAP UI5 (either it may be XML or Script )? My requirement is, I have to upload file in SAP-UI5. Those file should[More]

SAP UI5, MII, & JSON

Category:DefaultRelease time:-0001-11-30Views:130

I've been using jQuery ajax calls to fetch MII JSON data and display it in various ways for some time now when I want to display data in something other than an MII applet. My client wants to transition to using SAP UI5 in their web reports and so I'[More]

Auto tabbing in SAP UI5

Category:DefaultRelease time:-0001-11-30Views:130

Hi Experts, I need to implement Auto tab functionality in side  sap.m Table . I have two input fields in two colums inside sap.m.table. I have fixed length Value for each input filed ,once I filled first Input field  in a row1, next cursor has automa[More]

Need of buffering in table creation.

Category:DefaultRelease time:-0001-11-30Views:130

what is need of buffering in table creation and data class and delivey classDefinition The name table (nametab) contains the table and field definitions that are activated in the SAP System. An entry is made in the Repository buffer when a mass activ[More]

Hot
I'm at wit's end with this, and I'm hoping I can get some advice here.  I've read so many forum, posts and reviews that I'm not entirely sure what I can trust. I have an early 2011 MacBook Pro (MacBookPro8,3). I need to run Windows encrypted for work [More]
Hi Experts, I have few questions on the Precalculation of Webtemplates, Can anyone help me to get the answers for that? 1. How to precalculate the BI 7.0 Webtemplates. 2. Is the precalculation can be done in RSPRECADMIN and through Reporting agent fo [More]
I just reinstalled Leopard (long story) and synced ical with mobileme. Now, when I do the following, I get a strange result: 1. open ical 2. go to month view 3. cmd-T for today (itoday is 1/21/09) 4. cmd-rightarrow for FEB 5. cmd-leftarrow for... Not [More]
Hello all, I need to create an application which reads from one AVI file, processes each frame with a special effect, and outputs the result to another AVI of the same format. Fairly standard stuff. I am fairly new to JMF but I think I have the basic [More]
Hi, I have created a JSP application that uses BC4J. The BC4J has its basis in 4 database tables; 3 foreign keys to each of the other three tables link one of the tables. These Master tables have a one to one relationship with their respective Entiti [More]
After I updated to Yosemite I can't see my Iphoto library in the attachments window.  When I select Media ->Pictures only my Photo Booth Library Comes upOption 1 Back Up and try rebuild the library: hold down the command and option (or alt) keys whil [More]
Hi,   when i try to create a sale order by defoult date of delivery is in past. what is problem with that? and how i can make it correct. i means when i try to create sale order defoult date as current date. KhanYou can check the configuration of you [More]
Hello, My client requires a crystal report(CR 2011) with Columns A,B,C,D, and E. After exporting this report to Excel, the excel file should contain only columns A,C,and E. I need to hide/suppress columns B and D ONLY during exporting to excel/printi [More]
using digital editions from e library cannot download book. error message unknown file type or corrupted these are ACSM files Message was edited by: Nick356I had endless problems with the ADE2.0/Overdrive/Sony PRS-350,  and I think it is the same wit [More]
How do I airplay photos from Lightroom mobile?Slide up with one finger from the bottom of the screen. Hit the button that says "Airplay". Select your AppleTV. Turn on mirroring option that will show up below your AppleTV.Read other 2 answers [More]