To implement a sign-up page in Mendix where a user can sign up as a referor and link their account with the referor entity, you can follow the following steps:
Create an Account entity with attributes such as email, password, and phone number. You can also add other attributes as per your requirements.
Create a microflow to handle the sign-up process. In the microflow, create an object of the Account entity and set the attributes of the object with the values entered by the user in the sign-up form.
Next, create an association between the Account entity and the Referor entity. This will enable you to link the referor entity with the account created by the user during the sign-up process.
In the microflow, retrieve the referor entity based on the referor's name or any other unique identifier.
Once you have retrieved the referor entity, set the association between the referor entity and the account entity created by the user.
Finally, commit the changes to the database.
Create a sign-up form in Mendix with fields for the attributes of the Account entity, such as email, password, and phone number. You can also add additional fields as per your requirements.
In the On-click event of the sign-up button, call the microflow created in step 2 to handle the sign-up process.
By following these steps, you can create a sign-up page in Mendix that links the user's account with the referor entity.
Let me know, if you face any issues,
Hope it helps!!