Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagegroovy
def products= api.find("P", 0, 10, null, ["sku", "label", "currency"])

def resultMatrix = api.newMatrix().withColumnFormats([
        "sku"  : FieldFormatType.TEXT,
        "label":FieldFormatType.TEXT,
        "currency": FieldFormatType.TEXT
]).withRows(products);

resultMatrix.rowSelectionBackEndAction("productsDataSet")
        .withLogicName("ContextLinkingProductsExperimentsBackEndActionLogic")
        .withColumns("sku")
        .withButtonLabel("New Quote")

return resultMatrix;

See also example of the BackEndActionLogic, which shows you, how to receive the parameter with selection of items from matrix, and how to construct the context link action.