This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Put a default value list value based on the current users

Hi!
I've search all over the community but did not find the answer.

Here's the context :

I have an Object named Employee, for who I know his Office and his name.
Each M-files users is automaticaly created from this list.

When a user creates a new object named Assignement using a specific class, this class has also a property named Office.
By default, I would like to put the Employee's office as the default value. But the value could be modified if it's not the correct one for the user.

Automatic value of the property definition does not allow the user to change the value while he is creating the object.

So I'm not sure how to do this?

Thanks for your help!
Parents
  • Almost there!

    I made changes you suggested and now it does set the "Member User" property on the class. But, the "Member" property does not automatically populate to the member the user works for.

    If I turn off the rule and manually enter the Member User, then the Member property is set correctly.

    It seems that the rule does not trigger the member property to update. :(

    If I can get the rule to work, then I will need to write code to update the m-files user property on the member user object when a new mfiles account is created. I have over 600 users so this cannot be a manual process.

    Thank you for all your help.

    If i can get the member property to update correctly, I will be 90% towards the goal.


    41404.zip
Reply
  • Almost there!

    I made changes you suggested and now it does set the "Member User" property on the class. But, the "Member" property does not automatically populate to the member the user works for.

    If I turn off the rule and manually enter the Member User, then the Member property is set correctly.

    It seems that the rule does not trigger the member property to update. :(

    If I can get the rule to work, then I will need to write code to update the m-files user property on the member user object when a new mfiles account is created. I have over 600 users so this cannot be a manual process.

    Thank you for all your help.

    If i can get the member property to update correctly, I will be 90% towards the goal.


    41404.zip
Children
No Data