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
My phone remains in the standard vertical view mode and even when turned never switches to horizontal view.Very simple, Press your home button twice. Swipe the bar to the left. Set the potrait orientation lock/unlock.Read other 3 answers [More]
I just built a new system with the following pieces 2.40 gigahertz AMD Athlon 64 4000 Board: MS-7025 Bus Clock: 200 megahertz BIOS: Phoenix Technologies, LTD 6.00 PG 02/17/2005 4x 512meg samsung  NVIDIA GeForce 6800 GT bfg oc agp Thermaltake Silent P [More]
Hello everyone. I'm looking for a positive solution to the problem that some folks experiencing as well. This problem applies to the capturing footage that has been taped at 60FPS. I contacted several forums regardings this issue as well as  Apple Te [More]
Hi, Is there any smart form for Invoice verification output. I have searched a lot but I did not find any smart form for invoice verification. Please advice if any one of you know any smart form for invoice verification. ThanksHi smart form you need [More]
Hello, I'm trying to make a simple 18 pixel image repeat in a column on the left side of my table. When I set the image to background, it appears fine, and automatically tiles. but, when I preview it in any 3 of my browsers, it appears choppy, with r [More]
Hi.. I noticed a strange files on my pen-drive.. I tried formatting my pendrive and they still copy themselves on the pendrive some how. Here is a screenshot of those files - http://i847.photobucket.com/albums/ab35/pinokio28/trasheswierdfiles_zps1e61 [More]
Hi All, I'm having an issue trying to delete a line item from a PO and then save.  The error I recieve is: "No update of sales order X from purchase order (error V1 154)." The long text says "You want to create or change a purchase order. T [More]
Hi All, Normally when we search for Open PO's in PO Summary form, the latest PO will be in bottom of the Lov. Is there a way to see the latest PO on top(i.e, descending order). We are on 11.5.10.2. Thank you in advance, PramodI think by default the l [More]
Snow leopard comes out tomorrow but will Final Cut Studio 2.0 work with it or will I have to upgrade to Final Cut Studio 3.0?I just opened up a multiclip project in 10.6 (FCS2) that had been created in 10.5.8 (FCS2) and it seems to be working fine if [More]
I have a T43 2686 that is experiencing BSOD (memory dump) periodically.  After the BSOD, the computer restarts then the following message shows in the dos screen, not yet booting to XP. (some lines abbreviated, as shown) I am usually able to get it b [More]