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
Posting for my wife, since she's given up and gone to bed.  Yes, I've read all the lovely information on what to do if you've forgotten your passcode.  Here's the problem; she's never used one.  Ever.  She was working on her ipad earlier this evening [More]
Dear Experts, I am getting following error while executing application developed in WebDynpro  for JAVA. "Screen output without connection to user,error key:RFC_ERROR_SYSTEM_FAILURE" I have checked all the possible causes. still not able to reso [More]
The top button on my phone recently stopped working. Well sometimes. Majority of the time if I click it hard enough on the left side of the button it will lock the screen... Otherwise it doesnt work at all anymore. Also the camera appears to be placi [More]
Hello All, My client has implemented fund management so i need to ask , when i do advance payment to vender against Purchase order then will it affect the find budget. suggestHi, this is the Fixed Asset Accounting forum, hence not the appropriate one [More]
Hello! Where could I get the GPS maps for Ukraine? I see that maps for South America are very detalized since Kyiv is marked only as a dot. Please help me to obtain that maps. Thank you! WBR, Roman V. Sytnik22-May-200712:13 AM stiscooby wrote: Accord [More]
I clicked the URL in the email message in the inbox, but a notice came up that I was not authorised to read it.  I  don't understand why I can't access it.   Hi Judith, I think that you are probably referring to a notification from Adobe Forums about [More]
Wen trashing prefrences, out of Final Cut Pro Obj Cache and Final Cut Pro Prof Cache what one do i trash?Oddly enough, according to Apple's Knowledge Base article (for FCP 5), the answer is neither. <shrug> (this must be new for FCP 5) Once you're d [More]
Hi all, Can any of the experts please tellme "how to create dynamic ed flash charts based on user selected fields in Oracle apex". Thanks ManishHello, Lots of different ways to do this, I blogged about one way (using a Pipelined function) here - [More]
Hi all, I try to change the title to no avail. Is there an explanation and solution? Here's the code I have in dreamweaver: <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>Rainfunds | Welcome - Home</ [More]
I just bought a Mercedes-Benz GLK 350 and I cannot figure out how to transfer my Verizon iPhone contacts to the MB console via Bluetooth vCard upload. Having trouble fidning a resource that can enlighten me on this.The iPhone 4 does not support the O [More]