Hi, I found a very unexpected behaviou of the Edit page Page templates.
Current behaviour:
When creating a page from the New edit page dialog using Edit Page template, widgets with data sources
(Gallery, List View) are automatically removed without warning. But when creating a page from the new page button the widgets will be preserved.
Expected behaviour:
Regardles from where you create a new page the page should contains the same widgets and configuration.
How i found out about it:
I have a page template for user search that looks kinda like this.
The Template tooks Search helper object as an argument. This search helper have a SearchParam attribute which is set to the search field. On this search field are added events that cause to fire search api. This search api adds the search hist as associated object to the search helper objects. These associated hist are shown in the Galery widget. (btw: I know this could be done simpler in Mendix 11, but I need to support MX 10.)
Our team uses this as somewhat of a standart for user search pages. So, I wanted to abstract this to create page template from this. And because the most common way how to use the page is from create object action i set to Show when Generating edit pages.
There is no warning or Error about this behaviour. So imagine my confusion when i created a new page it half of the template was missing. This is unexcapteble behaviour. This thing happen regardles if the DS source is filled or not. I would understand the it removes every other object, but what i can't uderstand is why is
Sugested fixes: