Interface OutputsColumns

All Known Subinterfaces:
CalculableLineItemColumns, ClicColumns, QapiActionItem, QapiCompensationLineItem, QapiContractLineItem, QapiCustomForm, QapiQuoteLineItem, QapiRebateLineItem

public interface OutputsColumns
Access to the logic outputs (element results) stored on the rows of tables whose rows are calculated by a logic.

Example:


 def q = api.queryApi()
 def t = q.tables().quoteLineItems("P-1168")

 return q.source(t, [t.lineId(), t.output("Price").result().as("Price")])
         .stream { it.collect { it } }
 
Since:
15.0.6 - Southside
See Also:
  • Method Details

    • output

      Returns the columns of the output with the given name.

      The name is the name of the logic element that produced the output. Dots in the name are handled the same way as when the output is stored, so you can pass the name unchanged. A name that contains [ or ] is rejected with an error. If the row has no output with this name, the columns return null.

      Example:

      
       def q = api.queryApi()
       def t = q.tables().actionItems()
      
       return q.source(t, [t.id(), t.output("MyProfitElement").result().as("Element")])
               .filter { cols -> cols.Element.castAsReal().greaterThan(5) }
               .stream { it.collect { it } }
       
      Parameters:
      name - the output name
      Returns:
      a reference to the columns of the given output name
      See Also: