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

« Previous Version 65 Next »

The product and customer inputs lets the user pick a set of existing products and customer from the master data. The two inputs work in the same way except that they let the user pick data from different tables..

Product

The product filter allows the user to provide a set of products as inputs. The end-user can either select products from a list, or provide a filter that will be used to query the product master table.

product fixed product dynamic
 Forms
def formFieldSet = api.createConfiguratorEntry()

formFieldSet.inputs = [
    api.inputBuilderFactory()
        .createProductGroupEntry('productGroup')
        .buildContextParameter()
]

return formFieldSet
 In input generation mode (syntax check mode)
api.inputBuilderFactory()
        .createProductGroupEntry('productGroup')
        .getInput()
 In header Logics
processor.addOrUpdateInput(
        'ROOT',
        api.inputBuilderFactory()
                .createProductGroupEntry('productGroup')
                .buildMap()
)
 Reading input value
Reading input value in a line-item logic.
def value = input.productGroup as Map

Customer

The customer filter allows the user to provide a set of customers as inputs. The end-user can either select customers from a list, or provide a filter that will be used to query the customer master table.

customer fixed customer dynamic
 Forms
def formFieldSet = api.createConfiguratorEntry()

formFieldSet.inputs = [
    api.inputBuilderFactory()
        .createCustomerGroupEntry('customerGroup')
        .buildContextParameter()
]

return formFieldSet
 In input generation mode (syntax check mode)
api.inputBuilderFactory()
        .createCustomerGroupEntry('customerGroup', )
        .getInput()
 In header Logics
processor.addOrUpdateInput(
        'ROOT',
        api.inputBuilderFactory()
                .createCustomerGroupEntry('customerGroup')
                .buildMap()
)
 Reading input value
Reading input value in a line-item logic.
def value = input.customerGroup as Map
  • No labels