
Originally Posted by
jhguru
I have an sql-databound dialog for entering new invoices with a auto-primary key internal_invoice_no.
After entering and submitting data, the new record is inserted and can be updated afterwards - everything ok.
I have a grid component showing all invoices and a button to edit these invoices, which opens the same dialog-component, populated with the current grid records internal_invoice number - everything ok.
If I now close the two TAB-Panes and reopen the one for entering an new invoice, the dialog is empty and I can enter/submit/edit a new invoice - everything ok until here.
But, if I now use {dialog.Object}.getValue("INTERNAL_INV_NO") I get the invoice number from the last shown invoice (with the edit-button in the grid), although the new invoice number is shown correct on the dialog?
If I update another field in the invoice, the correct (last added invoice) is updated in database, but {dialog.Object}.getValue("INTERNAL_INV_NO") (and also all other fields in the dialog) show data from previous invoice.
It seems as if there is a refresh problem.
Does anyone has an idea to solve this problem? Thank you very much!
Bookmarks