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

Cannot see code for Calculated value (VBScript)

Hello,

There is a property called "Name" with alias "M-Files.ComplianceKit.Name", and it's value is Calculated Value (VBScript), however in the property definition the code is completely empty. I would like to change it a bit, since it's causing problems with naming Change Requests, as it forces the Change Request number into the name of the SOP document. Where can I find the code for this property?

Parents Reply Children
  • Try Compliance Kit -> Managed Properties -> Click Advanced and search the Code (STRG+F) for "M-Files.ComplianceKit.Name".. I bet it is set via a Server Addon, maybe not even Compliance Kit cause I guess the naming Property was original meant to be used with Compliance Kit but maybe changed and is now set by another Addon.. Or could it be set through an Event Handler?

  • Not in the advanced tab either.. :/ 

    It is a bit weird since we have both "Name or title" with ID 0 (no alias) and then the "Name" property with ID 1124 but compliance kit alias. It was probably part of the QMS vault we have, since it is only used in naming of the SOP's via Change Requests and General Templates. Where could I see if it is set through an event handler? Problem is the previous administrator who was in charge of setting up M-Files quit before I joined the team and there is no documentation he left behind or anything.

  • For what it's worth, the QMS 8.0 template has a property definition "Short Title" with this alias and it's not marked as a calculated value in that template. This property is used in quite many classes. Could it be that it's marked as a calculated value by mistake in your vault?

  • Hmm yes this does seem like the same property, just renamed in our case. What would happen if I were to disable the calculated value in the property? It would probably stop generating the name by itself and I would have to reconfigure it manually? Or are properties like these controlled by the compliance kit in the backend code somehow?

  • As far as I understand in the QMS template this property is expected to be filled by the user, so it doesn't get an automatic value. The user-defined value is used in some automatically calculated values in other properties with Managed Properties.

    If it seems to get some value automatically in your vault and there's no Managed Property rule for it, then you should check the event handlers like sweise suggested.

  • Oh and one more thing: check also that any managed property rule is not referencing the property by its ID instead of its alias, if you only searched by the alias so far.

  • Still havent found the code anywhere, but I did turn off the calculated value and set it as it was originally in the QMS template (on the Test version ofcourse) and so far I did not notice any issues. So I think that this was the issue, property wasn't supposed to be a calculated value at all