Dynamic multi-select value list handling in M-Files Word templates

Hi everyone,

 

I have a multi-select value list property inserted into a Word template using the “Insert Property” function. I understand that for a multi-select property Word generates separate DOCPROPERTY fields for each selected value (like Job title #1, Job title #2, …) and you can manually replicate them by incrementing the suffix (n1, n2, etc.) in the field code.

 However, in my case the number of selected values isn’t fixed — it can vary from 1 up to N values. I need a way to automatically display all selected multi-select values in Word, without pre-defining a fixed number of fields in the template.

 I’ve read the blog explanation about manually duplicating field codes (e.g. n1, n2, etc.) to get values, but that doesn’t scale when the number of values is dynamic.

 Thanks in advance for any guidance or examples applicable to both on-premises and cloud vaults.

Parents
  • Do you have the possibility of creating a "helper" property on the object that you can display in the word object. This property can be autocalculated and using vbscript or the VAF you can format the value of this property in almost any way you want before pushing it to word. 

    Admittedly I have not worked much with templates due to this exact reason as it gets complicated when you have dynamic amounts of values, however this is the way I would have approached this. 

Reply
  • Do you have the possibility of creating a "helper" property on the object that you can display in the word object. This property can be autocalculated and using vbscript or the VAF you can format the value of this property in almost any way you want before pushing it to word. 

    Admittedly I have not worked much with templates due to this exact reason as it gets complicated when you have dynamic amounts of values, however this is the way I would have approached this. 

Children
No Data