Sub Page_ModalSheetReady(ModalSheetName As String)
If ModalSheetName.ToLowerCase = "modalprintlayout" Then
BuildPrint
End If
End Sub
Sub buildPrint()
Dim Modal As ABMModalSheet = page.ModalSheet("ModalPrintLayout")
Dim outerCont As ABMContainer
outerCont.Initialize(page, "bcout", "")
Dim SQL As SQL = DBM.GetSQL
Dim founds As List = DBMApp.SELECTGroups(Table1.WHEREClause,"LIMIT 500","ORDER BY grpDescription", Table1.WHEREVars)
DBM.CloseSQL(SQL)
If founds.Size = 0 Then Return
outerCont.AddRowsM(1,False,0,0,"").AddCellsOSMP(1,0,0,0,0,2,2,0,0,0,0,"left").AddCellsOSMP(1,0,0,0,0,4,6,0,0,0,0,"left").AddCellsOSMP(1,0,0,0,12,6,4,0,0,0,0,"center")
outerCont.AddRowsM(1,False,0,0,"").AddCellsOSMP(1,0,0,0,12,6,4,0,0,0,0,"center")
outerCont.addrowsM(1,False,0,0,"").AddCellsOSMP(founds.Size,0,0,0,12,6,4,0,0,0,0,"centerclick")
outerCont.BuildGrid
outerCont.Row(1).SetExtraStyle("border-bottom: 1px dotted gray;margin-bottom: 10px")
...
Modal.Content.Cell(1,1).AddComponent(outerCont)
Modal.Refresh
...
' adding stuff to the outer container
...
outerCont.Refresh
End Sub