Hi,
I am trying to replicate the CK template function, but I want to use other documents rather than Templates (class). This is because I want the object created to be a new Class and Document Type, which doesn't seem too easy with the existing template function.
I have approached this with the Object Creator - creating a button to 'create document from' that will copy the document but update the Class and Document type.
I am now struggling to populate in the new object the Created From Version property, which I would like to point to the version of the original document (as it does with the CK Template functionality).
To date, I have managed to populate the Created From Version by using the 'Set Properties' in Object creator, and setting the property with Self(). However this provides the name but not the specific version of the object that was copied. I have also attempted to fill the property using PropertyCalculator, however I am not very familiar with the available expressions. I am unable to populate the property with more than the name. I am able to generate the correct expression, {Created From Version} (version {Version()}), however this does not provide a link to the object, just a string I guess? Further, it doesnt seem to be able to populate the Created From Property, which must be a choose from list property. I tested it by using that expression to populate the Description property just so I knew it was populating the right information. I suspect I might need to use a Lookup value (MSLU) from PropertyCalculator to get it to work? or maybe its not possible?
I also read about creating a separate application: https://www.linkedin.com/pulse/using-m-files-record-template-used-object-craig-hawker/ which seems like a promising approach, but based on my skill set and current implementation, property calculator might be the better way to go if its possible.
My question is: Is it possible to acheive a pointer to a specific version of an object in PropertyCalculator and use it to populate the Created From Version property? Can someone provide me advice?
Thank you and thanks for all the great work on PropertyCalculator, this forum, and the VAF advice as in the link above!
