iOS Question REFRESH TABLEVIEW

Discussion in 'iOS Questions' started by Gigi59, Jun 22, 2015.

  1. Gigi59

    Gigi59 Member Licensed User

    Hello everyone,
    I have a problem with the update of a Tableview in B4i
    This charge is due to a database sqllite.
    the layout of Tableview (I do with% x% y) passes to resize the application starts up, and so far so good.
    but when I insert a new record, and I want to upgrade the Tableview does not pass more for the layout and resize it busts the Tableview becomes unreadable.
    someone help me figure out how to do?
    thanks
    Hello
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Can you post the code that adds the items?
     
  3. Gigi59

    Gigi59 Member Licensed User

    PLEASE SEE THE PROJECT
     
    Last edited: Jun 27, 2015
  4. Gigi59

    Gigi59 Member Licensed User

    PLEASE SEE THE PROJECT
     
    Last edited: Jun 27, 2015
  5. Erel

    Erel Administrator Staff Member Licensed User

    Please use [code]code here...[/code] tags when posting code.

    For such code it is better to upload the full project (File - Export as zip).
     
  6. Gigi59

    Gigi59 Member Licensed User

    Hi Erel,
    thanks for your help.
    Pier
     

    Attached Files:

    • B4i.zip
      File size:
      45 KB
      Views:
      14
  7. Erel

    Erel Administrator Staff Member Licensed User

    If I understand your code correctly you are creating a new TableView each time the page is resized. The result is that there are multiple TableViews one on top of the other.
     
  8. Gigi59

    Gigi59 Member Licensed User

    Hi Erel,
    could you tell me the code for a correct update ?
    I'm trying for a week and I can not.
    Many Thanks :)
     
  9. Gigi59

    Gigi59 Member Licensed User

    Could you please correct my project?
    Many Many Thanks.
     
  10. Gigi59

    Gigi59 Member Licensed User

    Help me:(:(
     
  11. Erel

    Erel Administrator Staff Member Licensed User

    Please do not "bump" threads.
    Why are you creating the TableView in page_resize?
     
  12. Gigi59

    Gigi59 Member Licensed User

    Hi Herel
    you are right.
    now it work
    Thanks.
     

    Attached Files:

    • B4i.zip
      File size:
      119.1 KB
      Views:
      13
Loading...