1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question WebviewTable show selected row? [Closed. Ans: is Sort of]

Discussion in 'Android Questions' started by Roger Daley, Jul 16, 2019.

  1. Roger Daley

    Roger Daley Well-Known Member Licensed User

    Hi All

    I have Webview showing a table.
    When there are more items in the table than are displayed in the WebView if a row is selected is it possible get the Webview to show the selected row?
    [Similar to ListView.SelectRow( Int)]

    Regards Roger
     
  2. Erel

    Erel Administrator Staff Member Licensed User

  3. klaus

    klaus Expert Licensed User

    You may also have a look at the SQLExample in the source code of the B4X SQLite Database B4X Booklet (B4A ony).
    It contains a very simple table based on the ScrollView2D library, like the Flexible Table.
    It is not a CustomView, the project was developed quite some time ago and before classes were introduced.
     
    Roger Daley and Johan Hormaza like this.
  4. Roger Daley

    Roger Daley Well-Known Member Licensed User

    Thanks Klaus,
    Actually I am still mucking around with your SQL Example2. This is not the first time you've pointed me to the later examples, unfortunately example2 is almost perfect for my needs. Thank you for that.

    Regards Roger

    P.S. Perhaps if you have nothing to do [Ha ha] it's time to update the SQL examples. They are great for the learning process.
     
    Last edited: Jul 17, 2019
  5. klaus

    klaus Expert Licensed User

    The first SQLite project I wrote was SQLiteDB.
    Then I wrote a new one, SQLiteExample project for the User's Guide.
    Then, several users found it too 'complicated' for beginners.
    Then, I wrote the three SQLiteLight examples with the goal to show the basics of SQLite without much other code around.
    I used the WebView table, code borrowed from DBUtils, for its simplicity and already cross platform.
    Then came SQLiteLight4 with more than one table.
    And then, the same example projects for B4i and B4J published in the B4X SQLite Database booklet.
    I want to keep these projects simple, and the FlexibleTable class is much too complicated for this.
    Using the B4XTable might be a possibility, but I miss vertical scrolling.
     
    Roger Daley likes this.
  6. Roger Daley

    Roger Daley Well-Known Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice