Example of how to create portlet, which shows a list of products, the user can select several of them, and ask for a new quote to be created with those products.
Dashboard portlet logic, which renders the list of products and the action “New Quote”.
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("ContextLinkingProductsExperiments") .withColumns("sku") .withButtonLabel("New Quote") return resultMatrix;