B4J Question changing the title of a Modal Form

BigBoss123

Member
Licensed User
Longtime User
I'm calling up an modal form and show the title see (Modal Capture 1)
However when I go back to the original page and click again to see a modal form the title does not change see (Modal Capture 2)
The code is as follows

I'm sure the answer is simple but I just cannot get it to work.

Any ideas???


Thanks a lot

B4X:
Sub tblTrans_Clicked(PassedRowsAndColumns As List)
    Dim tblTransCellInfo As ABMTableCell = PassedRowsAndColumns.Get(0)

    Dim tbl As ABMTable = page.Cell(2,1).Component(tblTransCellInfo.TableName)

    curwine = tbl.getString(tblTransCellInfo.Row, 1) ' find out the winetype of the row clicked

    curlabel = tbl.getString(tblTransCellInfo.Row, 2) ' find out the winetype label of the row clicked

    tbl.clear

    getwinecat(curwine, curlabel)



End Sub



Sub getwinecat(id As String, lbl As String)

'    create a Modal ABMtable To show records

    Dim newtext As String

    newtext =  lbl

    Log(newtext)

    ABMGenBuildWineModal.Content.Cell(1,1).AddComponent(ABMShared.BuildSubHeader(page,"FirstLine","Winetype " & newtext ))



    tbl1.Initialize(page, "winedest1", True, False, True, "tbltheme")

    ' set the headers

    tbl1.SetHeaders(Array As String     ("Barcode", "Pallet Type  ", "Winetype",  "Current"))

    ' set the header themes

    tbl1.SetHeaderThemes(Array As String (  "bgr"   ,  "bgr"  ,   "bgr" ,         "bgr"   ))

    tbl1.SetColumnVisible (Array As Boolean( True,        True,       True,     True  ))

    tbl1.IsResponsive = False

    tbl1.IsBordered = True

    ABMGenBuildWineModal.Content.Cell(2,1).AddComponent(tbl1)
 

Attachments

  • Modal Capture1.PNG
    Modal Capture1.PNG
    15.5 KB · Views: 69
  • Modal Capture 2.PNG
    Modal Capture 2.PNG
    65.5 KB · Views: 73
Top