Hi,
I'd like to set dropdown options programmatically. I can't figure out how to do this.
I wrote a script which generated a string with 'n' between each value, then in my dropdown list for "Data type" i selected multi-line text with variables and dropped the PrivateData key for that multi-line string in there, hoping that would work -- but it didn't.
Next I tried making an external XML dataset that looks like this:
email1
email2
But then when I chose "Data type" "define values from a dataset", it would not let me build a path for the parent "emails" node. Only one of the individual emails.
I'm trying to build a dropdown list that could have multiple options. The dropdown values are the result of a query so they cannot be hard coded. Is this not possible?
Populating a checkpoint metdata dropdown list with multiple values
Populating a checkpoint metdata dropdown list with multiple values
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Populating a checkpoint metdata dropdown list with multiple values
Gabriel,
I did something similar in the Submit point and fill the dropdown with a script expression:
function getHfbfFtpDestination() : string {
var basePath = 'D:/EnfocusSwitch/flowConfiguration/';
var xmlConfig = new Document(basePath + s.getFlowName() + '.xml');
var folderList = '';
var delimiter = '';
var rootNode = xmlConfig.getDocumentElement();
var nodeList = rootNode.evalToNodes('directoryList/destinationDirectory', null);
for (var i=0; i
HFBF_PU_Lieferung_November_2014
HFBF_PU_Lieferung_Oktober_2014
HFBF_PU_Lieferung_September_2014
Best regards,
Thomas
I did something similar in the Submit point and fill the dropdown with a script expression:
function getHfbfFtpDestination() : string {
var basePath = 'D:/EnfocusSwitch/flowConfiguration/';
var xmlConfig = new Document(basePath + s.getFlowName() + '.xml');
var folderList = '';
var delimiter = '';
var rootNode = xmlConfig.getDocumentElement();
var nodeList = rootNode.evalToNodes('directoryList/destinationDirectory', null);
for (var i=0; i
HFBF_PU_Lieferung_November_2014
HFBF_PU_Lieferung_Oktober_2014
HFBF_PU_Lieferung_September_2014
Best regards,
Thomas
Populating a checkpoint metdata dropdown list with multiple values
@Gabriel: you are using "Define values from dataset" which means you are in a drop down list in a Checkpoint. Taking multiple values from an XML works, but you have to choose "Text indexed" as the resulting data type. If it is greyed out when using "XML location path", switch to "XPath expression".
@Compendio: in a submit point there is no dataset yet and then your method is indeed the way to go.
Freddy
@Compendio: in a submit point there is no dataset yet and then your method is indeed the way to go.
Freddy
Populating a checkpoint metdata dropdown list with multiple values
Thank you both!
I was able to work it out with XPath using "Text indexed"
I was able to work it out with XPath using "Text indexed"
Chat: open-automation @ gitter
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix
Code: open-automation & dominickp @ GitHub
Tools: Switch, Pitstop, EPMS, Veracore, PageDNA, SmartStream, Metrix