Custom Pages: Difference between revisions
From IHRIS Wiki
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
*choose the order that you want to display the fields of a form. This might simply be a i2ce_swiss_report_view (or subclass for) | *choose the order that you want to display the fields of a form. This might simply be a i2ce_swiss_report_view (or subclass for) | ||
*mark the displayed fields as editable or not. Subclass i2ce_swiss_report_view | *mark the displayed fields as editable or not. Subclass i2ce_swiss_report_view | ||
*add in a way to mark a page as needing a "confirm" on save or not |
Revision as of 12:14, 2 September 2009
This is a planned feature for a future version of the software and is the intended basis for iHRIS Collect, a data collection tool.
Here is a technical sketch of what needs to be done.
- Modify/subclass i2ce_form_relationships in order to add the ability to specify the number of each type of forms that can be joined (one, two, ... )
- handle evaluating form relationship functions from within PHP -- perhaps by exec the sql function with the form fields as appropriate, or else don't allow sql functions in form relationships for pages.
- determining if a given pair of forms, or a given set of forms satisfies a relationship.
- Select the fields from the forms in the relationship you want in a particular page. This is already done in the i2ce_swiss_report you would only need to tweak the UI to remove the limits.
- choose the order that you want the forms displayed on the page. this functionality could be subclassed from the i2ce_swiss_report
- choose the order that you want to display the fields of a form. This might simply be a i2ce_swiss_report_view (or subclass for)
- mark the displayed fields as editable or not. Subclass i2ce_swiss_report_view
- add in a way to mark a page as needing a "confirm" on save or not