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
  • Hi mturner,

    I think I might have a solution for you :)



    Thank you! This got me closer but I have a roadblock. I created dynamic placeholder. Then when setting the "member user" value list property to the "%CurrentUserPersonObject.PROPERTY_{M-Files.AdvancedNotifications.EmailAddress}%" I get error because I am trying to set a text value to a value list item. The "member user" property is a value list item.

    I created a new email property on the class as a text box and that worked. But is not what I need.

    The member user object is a subtype of the Member object.
    The test class has a "Member User" value list property and a "Member" value list property.

    If I upload a document and manually choose the "member User", the "member" property is automatically entered by mfiles. The "member" list has automatic permissions applied so when the mfiles user uploads a file, any user of that same member gets permission to view the document.
    When i click the "member user" value list on the class, I see a list of email addresses.

    This is my goal. I want to automate the choosing of the "member user" email address to the current user, which applies the member automatic permission to the document.








    41382.zip
Reply
  • Hi mturner,

    I think I might have a solution for you :)



    Thank you! This got me closer but I have a roadblock. I created dynamic placeholder. Then when setting the "member user" value list property to the "%CurrentUserPersonObject.PROPERTY_{M-Files.AdvancedNotifications.EmailAddress}%" I get error because I am trying to set a text value to a value list item. The "member user" property is a value list item.

    I created a new email property on the class as a text box and that worked. But is not what I need.

    The member user object is a subtype of the Member object.
    The test class has a "Member User" value list property and a "Member" value list property.

    If I upload a document and manually choose the "member User", the "member" property is automatically entered by mfiles. The "member" list has automatic permissions applied so when the mfiles user uploads a file, any user of that same member gets permission to view the document.
    When i click the "member user" value list on the class, I see a list of email addresses.

    This is my goal. I want to automate the choosing of the "member user" email address to the current user, which applies the member automatic permission to the document.








    41382.zip
Children
No Data