I'm always two cycles "behind the curve".
OI started to work with FormViews in a mobile application and came across the following issue: I have a FormView based on a List (SQL source), and an Editor Set for the fields on the Form. Following the Sample FormView Mobile App, each Editor appears on a screen with a "Save" and "Cancel" button at the bottom (I don't have an individual S&C set for the Editor) and Navigation buttons at the top. The "Save" button code is {dialog.Object}.editorCommit(EDITORSETNAME). What I THOUGHT would happen is that I could cycle forward and backward in the Editor set, entering values, then hit the Save and ALL the individual editor's values would be saved back to the Form. What I am finding is that when I navigate forward or backward, the value entered in the Editor is discarded, and the "Save" button only commits the data in the current Editor. To get the behavior I want I need to check the "AutoCommit" option of the EditorSet.
So my question is: Why have an EDITORSETNAME option in the editorCommit? If I AutoCommit (or, what is the same thing, save each Editor as I enter data) then I don't need it. If I don't AutoCommit then the only thing that will be saved is the current Editor, which is the same as if I specified just an individual EditorName as an argument to editorCommit. The only thing I can think of is Group Editing, but I'm not sure if that's the sole reason. I sure have searched the Documentation (and Videos) and see nothing about this.
Any info would be appreciated.
Norman
OI started to work with FormViews in a mobile application and came across the following issue: I have a FormView based on a List (SQL source), and an Editor Set for the fields on the Form. Following the Sample FormView Mobile App, each Editor appears on a screen with a "Save" and "Cancel" button at the bottom (I don't have an individual S&C set for the Editor) and Navigation buttons at the top. The "Save" button code is {dialog.Object}.editorCommit(EDITORSETNAME). What I THOUGHT would happen is that I could cycle forward and backward in the Editor set, entering values, then hit the Save and ALL the individual editor's values would be saved back to the Form. What I am finding is that when I navigate forward or backward, the value entered in the Editor is discarded, and the "Save" button only commits the data in the current Editor. To get the behavior I want I need to check the "AutoCommit" option of the EditorSet.
So my question is: Why have an EDITORSETNAME option in the editorCommit? If I AutoCommit (or, what is the same thing, save each Editor as I enter data) then I don't need it. If I don't AutoCommit then the only thing that will be saved is the current Editor, which is the same as if I specified just an individual EditorName as an argument to editorCommit. The only thing I can think of is Group Editing, but I'm not sure if that's the sole reason. I sure have searched the Documentation (and Videos) and see nothing about this.
Any info would be appreciated.
Norman
Comment