Android Question Table+Add rows

Discussion in 'Android Questions' started by Pilar-JLSineriz, Jun 2, 2015.

  1. Pilar-JLSineriz

    Pilar-JLSineriz Active Member Licensed User

    Dear colleagues,
    It's my first experience with B4A. Please, could you help me how I can make a table with several rows and columns (similar at datagridcontrol in VisualBasic). Thanks
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. Pilar-JLSineriz

    Pilar-JLSineriz Active Member Licensed User

    Thanks Erel, but my problem is different, I want to add new rows at real time. Similar at datagrid in Visual Basic. I need a listview with different colummns and have the possibility to edit the row and to add data in the columns (for the selected row).
     
  4. klaus

    klaus Expert Licensed User

    Did you have y look at the Classes Erel suggested you ?
    I'm almost sure you didn't otherwise you wouldn't ask again.
    Your requests are possible in these classes !

    I want to add new rows at real time.
    What is real time for you ? What frequecy of updates ?
     
  5. Peter Simpson

    Peter Simpson Well-Known Member Licensed User

    Hello Pilar, the flexible table class will do exactly what you are asking...
     
  6. Pilar-JLSineriz

    Pilar-JLSineriz Active Member Licensed User

    Thanks Klaus, Peter, Erel.. I am going to try again.. may be that I don´t know explain that I want to do!
     
  7. klaus

    klaus Expert Licensed User

    You may also have a look at the SQLiteLight examples in my signature.
    These examples use SQLite for the data and use a WebView to display the Table.
    And the SQLExample in the User's Guide.
    This example uses also SQLite for the data and uses a ScrollView to display the Table.
    In the examples above the editing of the data of a row is done in a separate Activity.

    You may also have a look at this library Grid/Table and ListView Library .
     
  8. Pilar-JLSineriz

    Pilar-JLSineriz Active Member Licensed User

    Thanks klaus.. but I want to fill the list and the following to act with SQlite.. If my first experience with this and I am very sad!!! now, I have another problem.. (several problems).. I have two layouts, and I want to charge the second layout with "startactivity" and I find the following text
    "java.lang.ClassNotFoundException: b4a.example.screen_pasivomineroentorno"
    I don´t understand, I have the scre
     
  9. klaus

    klaus Expert Licensed User

    You should post your project as a zip file, IDE menu File / Export As Zip / Include Shared Modules.
    Without seeing your code it's difficult to help.
    Did you look at the examples I suggest you ?
    They do what you want.
     
  10. Pilar-JLSineriz

    Pilar-JLSineriz Active Member Licensed User

    Dear Klaus.. I've got to solve the problem with the layout. Now, I am going to work with your examples. Sorry, my brother is very ill (lung cancer) and I have the mind in other site. Thanks for all
     
  11. klaus

    klaus Expert Licensed User

    I'm sorry about that.
     
  12. Pilar-JLSineriz

    Pilar-JLSineriz Active Member Licensed User

    Thanks for understand me :)
     
  13. Pilar-JLSineriz

    Pilar-JLSineriz Active Member Licensed User

    I am unable to find xnGrid library! :-(
     
  14. klaus

    klaus Expert Licensed User

    xnGrid is an object in the xnObjects library which you find in the first post of the link in post #7.
     
    Peter Simpson likes this.
Loading...