B4J Question Updating Tableview data from textfield

Discussion in 'B4J Questions' started by AKJammer, Mar 2, 2019.

Tags:
Thread Status:
Not open for further replies.
  1. AKJammer

    AKJammer Member Licensed User

    Hello All,
    I know I'm missing something obvious, but for the life of me I can't see it. I have a Tableview that I'm populating with DBUTILS ExecuteTableView. When I click on a line, it will populate a couple textfields. If I update the Qty field, and send the data back to the row, the row behind the scenes will update, but the displayed value does not. Clicking to another row, then back will show (via logs) that the row is indeed updated. So why doesn't it show?!?! I've attached a simple example to demonstrate. Any ideas would be most helpful.
    Thanks,
    Jim
     

    Attached Files:

  2. klaus

    klaus Expert Licensed User

    Add this line at the end of the btnUpdate_Click routine:
    tvRegType.Items.Set(tvRegType.SelectedRow, row)
    You need to update the changed values, it's not automatic.
     
  3. AKJammer

    AKJammer Member Licensed User

    Ah, Thanks. Knew it had to be something silly.

    Thanks again,
    Jim
     
  4. roberto64

    roberto64 Active Member Licensed User

    Hi, I'm making a tableview that inside there are two comboboxes, two textfields, and a label, as an example that I enclose, in fact when I put in qty and price (qty * price) makes me the total in the label (total ), when I insert the second line in the tableview and insert quantity and the price is all right, but when I'm going to change the price or the amount the total changes in the second line. who can help me?
    regards
     

    Attached Files:

  5. Erel

    Erel Administrator Staff Member Licensed User

    You should never post a question in an existing thread.
     
Thread Status:
Not open for further replies.
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