Follow the steps below to use the Input Field[Multiple Lines] property control as an input for Data On Demand table to pass multiple values.Use the list variant of the Document Properties.
- Create a list property "listbox" by adding a 'List box (multiple select)' and then add a new property to the control. You can now delete the added List box if you do not want to show this in your analysis.
- Select the new list property created "listbox" as the On Demand input parameter. The list properties cannot be set from the property editor. It needs to be set from a script.
- Define an input that can be used to parse value into the list.
Create an Input Field[Multiple Lines] property control "Inputmulline". Adding a script on this property changes that parse the value to the list property.
Parse script (change the separator as required):
import re
string = Document.Properties['Inputmulline']
list = [x.strip() for x in string.split('\n')]
Document.Properties['listbox'] = list
Note : change the property names accordingly.
4). When you enter Multiple inputs in the property control "Inputmulline" , on demand will work and fetch results.
Detailed documentation is attached to this document in the file "UseInputFieIdDataOnDemand.pdf".