Jump to content

Search the Community

Showing results for tags 'sapui5'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 1 result

  1. Hello, To start, sorry for my english i'm French ^^ I have a problem, in fact I can't retrieve the index of the row in a table. I tried many things but I haven't found the solution. Here is my code: <script id='TableSuser'> var oTableSuser = new sap.ui.table.Table({editable:false, width: "400px", visibleRowCount:2}); var oControl = new sap.ui.commons.Button({text : "{suser}", press : function() {openDialog(oTableSuser.getSelectedIndex());}}); oTableSuser.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "Suser"}), template: oControl, sortProperty: "Button", filterProperty: "Button", name: "password_colonne"})); oControl = new sap.ui.commons.TextView({text:"{suser_mdp}"}); oTableSuser.addColumn(new sap.ui.table.Column({label: new sap.ui.commons.Label({text: "suser_mdp"}), template: oControl, sortProperty: "suser_mdp", filterProperty: "suser_mdp", visible: false})); var oModel = new sap.ui.model.json.JSONModel(); oModel.loadData("suser.php"); oTableSuser.setModel(oModel); oTableSuser.bindRows("/"); function openDialog(index) { var currentRowContext = oTableSuser.getContextByIndex(index); var valeur_suser_mdp = oModel.getProperty("suser_mdp",currentRowContext); alert(index); alert(currentRowContext); alert(valeur_suser_mdp); oTableSuser.getColumns()[1].setVisible(true); }; oTableSuser.placeAt("suser"); </script> I would like to retrieve the index of the row when I call the function function() {openDialog(oTableSuser.getSelectedIndex());} I tried different things and I didn't find how to retrieve the index of the row, I always have "-1" If someone has an idea I'm interested? Thx
×
×
  • Create New...