Since PHPMaker 8, there was a new feature introduced that called with "Generate Blank Page". This feature will allow you to generate a blank page and include it within your PHPMaker project. From this blank page, you may add your own script into that file based on that blank page template. This template is very important since PHPMaker uses the standard format page using an Object Oriented Programming (OOP) approach. So we have to comply with this PHPMaker's rule.
Unlike the other pages, this generated blank page is only consist of one file. By default, PHPMaker will generate it and name it with blankpage.php. Of course, you are strongly recommended to rename it to another file name afterwards, in order to avoid the losing of your modification if PHPMaker regenerate your script files in the future.
Here is the steps how you can generate a blank page using PHPMaker:
- Open your PHPMaker project (.pmp) file using PHPMaker application.
- Click on the Generate tab, and then make sure you have already checked the Generate a blank page item.
- Click on the Generate button.
- You will see a new pop up window appear named Generate. Expand the Other files item, and then make sure you have already checked the blankpage.php item.
- Click on the Generate button in that Generate dialog window to generate that page.
- After the blankpage.php is generated, please don't forget, I repeat: do not forget to rename it to another file name, and customize it by adding your own code into it. Important to know, that you should not modify or remove the generated code in that file unless you know what you are trying to do. You only need to add your own code that fits with your needs to that blank template page.
I have two nearly identical tables, both with associated details. I am looking to create a button on the screen that when clicked Order1 go to order2 screen with the fields and details filled in as Order1.
For example: In the Screen Order2 numorder1 field is filled with the numorder1 field value of Order1 table
#order1
.numorder1
#order2
.numorder2
.numorder1
#orderdetails1
.detail1
.detail2
.detail3
#orderdetails2
.detail1
.detail2
.detail3
This is poss?
Yes, this should be possible.
Please follow the logic from Master/Detail Copy feature.