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 have an old (5 years +/-) MacBook that is still running on 10.4.11. I want to upgrade to a better OS but I think I need to increase the memory in the computer to be able to upgrade. Is this true? If so, how do I go about it? Thanks!!Upgrade Paths t [More]
Hello, I'm facing a strange issue here. I have a site in sharepoint 365 and I wanted to load it on a local sharepoint 2013. So I've saved the site as template, saved it on my computer, loaded it to the solution gallery, activated it and... nothing. W [More]
My wife and I both have Ipads, I thought it might be allright to use the same apple ID on both. I got an email from Apple, asking to confirm the email user name. Several months ago I received an email supposedly from Microsoft asking for my name and [More]
Hello All, Here I have a requirement of flat file to proxy. Input Flat file  contains multiple records. I have to group messages based 2 Input fields(Location and ZIP). If the Input file has 4 records with Location and ZIP same for 2 records then I h [More]
I just bought a Logitech DiNovo Bluetooth keyboard and mouse. They work fine, but the mouse periodically "stalls" and movement lags. What is going on here? Is this a known OS X issue?I'm betting this is not the root cause, but it won't hurt to a [More]
Hi all, I want to upload the excel file in oracle db through oracle forms...I am new to oracle forms . I have searched a lot but not getting exact solution Is there anyone who will help me out with this ..... Any help will be appriciatedI'm trying to [More]
Hello everyone, I am looking for Trading Partner configuration Steps for intercompany clearing. I will appriciate if some one can share the important steps. Thanks in Advance KrishnaYou Can Assign Trading Partner in OBY6 At Customers and Vendors Have [More]
It's annoying. I reckon, one does want to preview the effect more often than not. It could also be a box that remember it's setting.Oh god yes I wish that box would at least remember its setting. They're all over Illustrator and they're always off wh [More]
Had to replace my desktop hard drive. How do I reinstall my CC Photoshop, Lightroom and Bridge?Exactly the same way you did the first time Some general information for a Cloud subscription Log in to your paid Cloud account -Sign in help http://helpx. [More]
I own a Treo650. I want to permanently delete Palm Desktop so I never have to use it again. Can iSync be used on its own to sync the Treo with my address book and iCal? Does it need to have a portion of the Palm software to sync to my Treo? Thanks.No [More]