My app needs to be able to go offline and still function.
I have a list that has the primary key set as the return value. The primary key is one field which is a bigint in the database. This list is set to persist to local and has a detail view.
I have used the Genie to generate the CRUD buttons and text boxes for the fields in the table. I click on the "New Record" button and fill in the fields that are needed for a new record and then I click the Save button. The new record shows up in the list with the blue triangle in the top right corner. This all works as expected.
I have also added a textbox and a button to the UX. I'm entering a primary key value into the text box and clicking on the button which has this code in it's click event:
If I put in a primary key value for a record other than the record that I inserted, the record is selected in the list, as expected. The problem is that if I put in the value for the newly-inserted but not yet synchronized record, the record is not selected and the previous selection is de-selected leaving no records selected.
How do I select a record from the list that has not yet been synchronized back to the server?
I'm using build 12.3, 3200- 4560.
I have a list that has the primary key set as the return value. The primary key is one field which is a bigint in the database. This list is set to persist to local and has a detail view.
I have used the Genie to generate the CRUD buttons and text boxes for the fields in the table. I click on the "New Record" button and fill in the fields that are needed for a new record and then I click the Save button. The new record shows up in the list with the blue triangle in the top right corner. This all works as expected.
I have also added a textbox and a button to the UX. I'm entering a primary key value into the text box and clicking on the button which has this code in it's click event:
Code:
var value = {dialog.object}.getValue("txtTest"); {dialog.object}.setValue("listTest",value);
If I put in a primary key value for a record other than the record that I inserted, the record is selected in the list, as expected. The problem is that if I put in the value for the newly-inserted but not yet synchronized record, the record is not selected and the previous selection is de-selected leaving no records selected.
How do I select a record from the list that has not yet been synchronized back to the server?
I'm using build 12.3, 3200- 4560.
Comment