Add multiple values to a property from XML file

Hello,

We are importing PDF file and XML from ABBYY OCR and would like to read more than one value to the same Property in M-Files.

Is this possible?

Also is there any way that M-Files adds value to value list from XML.

Case: Value that is not in value list, would add from XML.

Br

Rožle Štupica

Parents
  • If you are using external file sources to import the files, then unfortunately adding multiple values from the XML is not directly supported. One workaround is that you would import the values into a text property with a delimiter (e.g. pipe character) and then have a small event handler that splits the text string and stores the values to the multi-select property.

    So the XML would have something like "Huey|Dewey|Louie" which you would map to a text property and then split in your script.

    You can add new values to a value list if this option is checked in the property settings:

    The value list in question needs to allow user additions for the above option to be available:

Reply
  • If you are using external file sources to import the files, then unfortunately adding multiple values from the XML is not directly supported. One workaround is that you would import the values into a text property with a delimiter (e.g. pipe character) and then have a small event handler that splits the text string and stores the values to the multi-select property.

    So the XML would have something like "Huey|Dewey|Louie" which you would map to a text property and then split in your script.

    You can add new values to a value list if this option is checked in the property settings:

    The value list in question needs to allow user additions for the above option to be available:

Children
No Data