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

Copy Object value from one property to another on the same metadata card and allow it to be manually edited

We're looking for functionality where a user when creating or editing an Asset object would select an  Asset Location from a list of Location objects, and whatever they select would also be copied over to another property User Location. The assumption being that the assigned user will almost always be at the same location as the asset. But in cases where it isn't, we would also like to allow users to override that User Location manually.

I was looking at creating a rule, filtered on Asset object type, with Event Type of OnPropertyValueChanged for Asset Location property, and Behavior of property User Location, Set Value dynamic of {Asset Location}, with Force Set Value ON.

But this doesn't work neither during initial Asset object creation nor editing the Asset Location on a pre-existing object.

Is this the appropriate rule to use for my goal and is there something I have missed in the configuration?

Thanks

Parents
  • Event-based condition cannot be used here, according to Configuring the M-Files Metadata Card they are only used for fetching suggestions from intelligence services such as M-Files Information Extractor even though the event type name would suggest otherwise: 

    Try removing the event from the filter and see if you get results then, i.e. only use the object type, class and property filters.

  • If Joonas' suggestion doesn't work you could create a validation script. The script should check if the property value is empty (user has not entered a location manually), and if so the script should enter the location value from the asset. This will allow the user to select or change a location. The script will only set a value if the user doesn't.

Reply
  • If Joonas' suggestion doesn't work you could create a validation script. The script should check if the property value is empty (user has not entered a location manually), and if so the script should enter the location value from the asset. This will allow the user to select or change a location. The script will only set a value if the user doesn't.

Children