load( local!data: ri!data, local!pagingInfo: a!pagingInfo(startIndex: 1, batchSize: 10), local!items: todatasubset(local!data, local!pagingInfo), a!formLayout( label: "Assets Movement - " & ri!Account_ID, firstColumnContents: { a!sectionLayout( label: "Taxlot Grid", firstColumnContents: { a!gridLayout( headerCells: { a!gridLayoutHeaderCell(label: "Transfer %"), a!gridLayoutHeaderCell(label: "Transfer Shares"), a!gridLayoutHeaderCell(label: "Shares Held"), a!gridLayoutHeaderCell(label: "Tickler"), a!gridLayoutHeaderCell(label: "CUSIP ID"), a!gridLayoutHeaderCell(label: "Lot Acquired Date"), a!gridLayoutHeaderCell(label: "Asset Share Name"), a!gridLayoutHeaderCell(label: "Security Type"), a!gridLayoutHeaderCell(label: "Lot/Asset Mkt Val"), a!gridLayoutHeaderCell(label: "Transfer Mkt Val") }, /* Only needed when some columns need to be narrow */ columnConfigs: { a!gridLayoutColumnConfig(width: "DISTRIBUTE"), a!gridLayoutColumnConfig(width: "DISTRIBUTE"), a!gridLayoutColumnConfig(width: "DISTRIBUTE"), a!gridLayoutColumnConfig(width: "DISTRIBUTE"), a!gridLayoutColumnConfig(width: "DISTRIBUTE"), a!gridLayoutColumnConfig(width: "DISTRIBUTE"), a!gridLayoutColumnConfig(width: "DISTRIBUTE"), a!gridLayoutColumnConfig(width: "DISTRIBUTE"), a!gridLayoutColumnConfig(width: "DISTRIBUTE"), a!gridLayoutColumnConfig(width: "DISTRIBUTE") }, rows: a!applyComponents( function: rule!getTaxlotData( items: local!items.data, index: _ ), array: if(isnull(local!items.data), {}, 1+enumerate(count(local!items.data))) ) ) }, value: local!pagingInfo, saveInto: local!pagingInfo ) ), a!buttonLayout( primaryButtons: { a!buttonWidgetSubmit( label: "Submit", style: "PRIMARY", value: local!items.data, saveInto: ri!data ) } ) } ) )