Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

There's a method Object option(String entryName, List<Object> options, Map<String,Object> labels) which allows you to set values' labels in the drop-down. To set these labels when adding the drop-down in a quote header logic, use the following examples.

This is a header level drop-down with options (just the list of values):

def endCustomerList = [
"customer1",
"customer2",
"customer3",
"customer4",
"customer5",
"customer6"
]

quoteProcessor.addOrUpdateInput("ROOT", ["name" : "Requestor",
"label" : "Requestor",
"type" : InputType.OPTIONS,
"valueOptions" : endCustomerList,
])


Now you need to split names and labels. To do so, put the labels into the field "parameterConfig" as a sub-map with the name "labels":

def labels = [ "A": "Label A", "B": "Label B" ]
quoteProcessor.addOrUpdateInput("ROOT", ["name" : "FreightTerms",
"label" : "Freight Terms",
"type" : InputType.OPTION,
"valueOptions" : options,
"parameterConfig": [
"labels": labels
]
])


  • No labels