Enhancement
Creating new instances in Forms
Issue description
In Topincs Forms select boxes are used. It should be possible to add new instances to the select box by entering a modal dialog which asks for the type (if more than one type can play the role) and then opens the form for the type.
Developer comments
This is a tricky one. There is two approaches:
1. save the child form when confirming the child form,
1. save the child form together with the parent form.
Advantages of seperate saving:
* the id and label are known and set in the select box.
* the information can be used when calculating the range of select boxes of other associations in the parent form.
Disadvantages:
* If the user decides to throw the parent form away, some topics will be lingering around that might not have to be there (e.g. an address)
* If the association that supports the child form is mandatory, it leaves the store in an invalid state until the parent form is saved.
Advantages of saving with the parent form:
* All information will be saved or not saved, no in between state.
Disadvantages:
* The label (in case of a rule) would have to be computed in the client in order to be set correctly.
* The topic role constraints would have to be evaluated on the client as well. This is only done on the server.
I decided to save the child form if possible and if not the saving is deferred to the parent form.
Basically child forms can be saved if the association which creates the new instance is not necessary for the new instance.
|
Work sessions9
Start |
2010-01-31T08:16:34
|
End |
2010-01-31T09:28:10
|
Participant |
Robert Cerny
|
Summary |
Implementation of new option in select box.
|
Start |
2010-01-31T18:45:27
|
End |
2010-01-31T19:38:36
|
Participant |
Robert Cerny
|
Summary |
JavaScript coding.
|
Start |
2010-02-01T05:52:55
|
End |
2010-02-01T08:48:48
|
Participant |
Robert Cerny
|
Summary |
Implementation of opening of sub form. Problem with naming the option and binding the current statement.
|
Start |
2010-02-01T10:52:52
|
End |
2010-02-01T14:09:23
|
Participant |
Robert Cerny
|
Summary |
Implementation of sub forms for creating new instances within forms.
|
Start |
2010-02-01T16:27:54
|
End |
2010-02-01T18:27:54
|
Participant |
Robert Cerny
|
Start |
2010-02-02T10:42:27
|
End |
2010-02-02T14:30:24
|
Participant |
Robert Cerny
|
Summary |
Implementation of child form saving.
|
Start |
2010-02-02T22:35:01
|
End |
2010-02-02T23:54:15
|
Participant |
Robert Cerny
|
Summary |
* Redesign of the sub form display.
* Creating instances in sub forms works fairly well.
|
Start |
2010-02-03T08:09:46
|
End |
2010-02-03T11:15:14
|
Participant |
Robert Cerny
|
Summary |
Continued implementation of creating new instances. Almost beta worthy. Still a lot of detail work to do.
|
Start |
2010-02-04T11:48:58
|
End |
2010-02-04T15:52:55
|
Participant |
Robert Cerny
|
Summary |
* Implementation of naming of new instances in select boxes and form titles.
* Implementation of stacking of child forms.
* Testing.
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.