Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 80876

Change the object of a page

$
0
0

Hi,

We have a manager who is responsible for updating the employee-file in our company. 

The unique key of the employee-entity is the emailadress.

When our manager wants to create a new employee, an empty page is showed on which he can fill the employee-information, starting with the emailadress. Now it can happen that the manager thinks he is adding a new employee, when in fact this employee is already in the file. So when he enters the employee's emailadress, a microflow starts and shows a page that will tell him that this employee already exists.

What I want is that when this message is presented, it not only tells him that the employee already exists, but also asks him if he wants to proceed his input with this existing employee. If he decides to proceed with this employee, then an edit-page is showed with the information of this existing employee.

Now here is the problem. To show the initial input-page, an empty new employee was created. I cannot change the object for the page, so in order to edit the existing  employee, I have to open another edit-page. However, to show him the message, and let the manager choose how to proceed, I also have shown him a informational page. Now in the microflow that handles this process, I can only close this last informational page. I cannot also close the initial input page, so this page is still opened when I proceed with the existing employee. I cannot close this page because in a microflow you cannot choose a specific page to close. (Of course, besides this, I also have to rollback the creation of the intended new employee). 

Has anyone an idea to solve this problem in Mendix?

Look forward,

Regards,

Patrick Linckers

 

 

 

 


Viewing all articles
Browse latest Browse all 80876

Trending Articles