HowTo port a screen from Old Petra

From OpenPetra Wiki
Revision as of 18:35, 16 June 2011 by Mshobohm (talk | contribs)
Jump to navigation Jump to search
  1. Start Old Petra (e.g. in a virtualBox).
  2. Make a screenshot from the screen you want to move (Press ALT GR +Print). Copy it into a word document (CRTL-V).
  3. If the screen contains a Table scroll from Left to right and make several screenshots in order to shot the headers of all columns.
  4. Also make a screenshot of Help-ABout Petra. This contains the name of the progress program for the screen. You may need this later if values of boxes are calculated or to check if the old program has some extraordinary behavior.
  5. Now you can close Old Petra (+Virtualbox) and start with the devolopment of the new screen.
  6. Create a yaml file for the new screen. There is a very good long description for this in How-To: Creating a Maintain Table screen.
  7. The yaml files reference templates (at the moment located in [projectroot]\inc\template\src\Winforms), so you have to find out which is right template (does it have an own window (window...) or is it embedded in an other window (usercontrol...)? Does it contain a table, and an additional Details Panel which shall be filled automatically? Is the table part of a larger dataset or just single?)
  8. After your decision for the right template find an example where this template is already used and copy the yaml-file and the xx.manual-code file. This file is needed nearly always. Adopt the copied files to your purposes.