Custom Pages: Difference between revisions

From IHRIS Wiki
(Created page with '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 b...')
 
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This is a planned feature for a future version of the software and is the intended basis for iHRIS Collect, a data collection tool.
This is a planned feature for a future version of the software and is the intended basis for [[iHRIS Collect Design Overview|iHRIS Collect]], a data collection/survey tool.


Here is a technical sketch of what needs to be done.
Here is a technical sketch of what needs to be done.
*Add ability to define a form with its fields. A fair amount of work but not too difficult.  Needs documentation for I2CE_Swiss on the wiki.
*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, ... )
*Modify/subclass "form relationships" in order to:
*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.
**add the ability to specify the number of each type of forms that can be joined (one, two, ... ten, unlimited)
*determining if a given pair of forms, or a given set of forms satisfies a relationship.
*Create the page:
*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.     
**Select the fields from the forms in the relationship you want in a particular page.    This is already done in the 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 the forms displayed on the page
*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 can be a tweak/subclass of a report view.
*mark the displayed fields as editable or not.  Subclass i2ce_swiss_report_view
**mark the displayed fields as editable or not
*add in a way to mark a page as needing a "confirm" on save or not
 
 
[[Category:Blueprints]]

Latest revision as of 18:10, 1 March 2019

This is a planned feature for a future version of the software and is the intended basis for iHRIS Collect, a data collection/survey 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