Hi There,
Thank you for taking the time to look. It's appreciated.
We have a series of ux components that are list bound. The list detail view is set to synchronize with the database with every action. When a person clicks a record on the list, the controls are populated.
Simple, right?
We've experienced a twek that we're not sure how to handle. I hope you can help.
This twek happens when this particular sequence is executed:
1. User clicks button 'create new record' (correct)
2. This executes the code: (correct)
var lObj = {dialog.object}.getControl('REPORT_LIST');
lObj.newDetailViewRecord();
(correct)
3. Controls are set to defaults (correct)
4. User puts in a few details in the controls making it dirty (correct)
5. User goes back to list control and selects a different record (correct)
6. Controls open with chosen record data (correct)
7. User puts list control back in focus. Added in the list is a listitem of the dirty new record and this is what is automatically loaded (without the user having any say or doing anything) into the controls. What this really means is a dirty new record is loaded at what seems to be randomly without any direction from the user.(incorrect)
What I ideally would like to happen is that if a new record is created but not saved, it is completely forgotten about, forever more. What that really means is that the list control does not retain the information, and doesn't try to retrieve it at a later date.
How do I get this to happen?
Thank you
Jane.
Thank you for taking the time to look. It's appreciated.
We have a series of ux components that are list bound. The list detail view is set to synchronize with the database with every action. When a person clicks a record on the list, the controls are populated.
Simple, right?
We've experienced a twek that we're not sure how to handle. I hope you can help.
This twek happens when this particular sequence is executed:
1. User clicks button 'create new record' (correct)
2. This executes the code: (correct)
var lObj = {dialog.object}.getControl('REPORT_LIST');
lObj.newDetailViewRecord();
(correct)
3. Controls are set to defaults (correct)
4. User puts in a few details in the controls making it dirty (correct)
5. User goes back to list control and selects a different record (correct)
6. Controls open with chosen record data (correct)
7. User puts list control back in focus. Added in the list is a listitem of the dirty new record and this is what is automatically loaded (without the user having any say or doing anything) into the controls. What this really means is a dirty new record is loaded at what seems to be randomly without any direction from the user.(incorrect)
What I ideally would like to happen is that if a new record is created but not saved, it is completely forgotten about, forever more. What that really means is that the list control does not retain the information, and doesn't try to retrieve it at a later date.
How do I get this to happen?
Thank you
Jane.
Comment