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

  • I have one other issue I hope you can help with.

    Up to now, I have been testing this class using internal user who has permission-change access. I tested with an external user and I get the attached warning message:

    "With the selected permissions, you may lose permission-change access to this object."

    I do not want external users to be able to change permissions on documents they upload. The automatic permissions are correct (delete, edit, read, but no change permission).

    How do I suppress this warning message?

    Sorry, can't help with that :( In the past I sometimes also wondered how to suppress certain M-Files messages, but did not find any related settings...maybe VBA code is needed, I have no idea. You might want to open a new thread for that issue
Reply

  • I have one other issue I hope you can help with.

    Up to now, I have been testing this class using internal user who has permission-change access. I tested with an external user and I get the attached warning message:

    "With the selected permissions, you may lose permission-change access to this object."

    I do not want external users to be able to change permissions on documents they upload. The automatic permissions are correct (delete, edit, read, but no change permission).

    How do I suppress this warning message?

    Sorry, can't help with that :( In the past I sometimes also wondered how to suppress certain M-Files messages, but did not find any related settings...maybe VBA code is needed, I have no idea. You might want to open a new thread for that issue
Children
No Data