...
Code Block | ||
---|---|---|
| ||
def createNewQuoteButton(matrix, custId) { def targetPageState = [Customer: custId, customerFieldName:'customerId', customerFieldValue:custId] def buttonState = api.inputBuilderFactory() .createQuoteType('New Quote') .buildContextParameter() matrix.linkButtonCell('New Quote', AppPages.QC_NEW_QUOTE, targetPageState, buttonState) } def matrix = api.newMatrix('Customer','Total Value','Action') matrix.addRow('CD-00001', 12345, createNewQuoteButton(matrix, 'CD-00001')) matrix.addRow('CD-00002', 13206, createNewQuoteButton(matrix, 'CD-00002')) matrix.addRow('CD-00003', 23456, createNewQuoteButton(matrix, 'CD-00003')) matrix |
...
Info |
---|
See also the ResultMatrix Groovy API documentation for a full list of available methods. |