HowTo port a screen from Old Petra
Jump to navigation
Jump to search
- Start Old Petra (e.g. in a virtualBox).
- Make a screenshot from the screen you want to move (Press ALT GR +Print). Copy it into a word document (CRTL-V).
- If the screen contains a Table scroll from Left to right and make several screenshots in order to shot the headers of all columns.
- 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. Please note that you also need to shot the detail screen(s). In OpenPetra Screens are larger and contain Table and Details together on one screen.
- Now you can close Old Petra (+Virtualbox) and start with the devolopment of the new screen.
- 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.
- 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?)
- 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.