B4J Question [ABMaterial] Topitem calling Modalsheet

jinyistudio

Well-Known Member
Licensed User
Longtime User
Hi
I have add Contact on the Topitem. Could I showing a ModalSheet when i click it !? and How to do it !?

page.NavigationBar.AddTopItem("Contact", "", "mdi-action-account-circle", "", False)
 

jinyistudio

Well-Known Member
Licensed User
Longtime User
Hi

tbl1.Initialize(page, "tbl2", False, False, True, "tbl1theme") ---> tbl1.Initialize(page, "tbl1", False, False, False, "tbl1theme")
 
Upvote 0

amminf

Active Member
Licensed User
Longtime User
tbl1.Initialize(page, "tbl2", False, False, True, "tbl1theme") ---> tbl1.Initialize(page, "tbl1", False, False, False, "tbl1theme")
I can not solve it. In my case the error seems to be related to the number of rows.

thks.
 
Upvote 0

Harris

Expert
Licensed User
Longtime User
Hi
I have add Contact on the Topitem. Could I showing a ModalSheet when i click it !? and How to do it !?

page.NavigationBar.AddTopItem("Contact", "", "mdi-action-account-circle", "", False)

Use the Page_NavigationbarClicked. This gets called for Navigation Bar items (top / sidebar).

B4X:
Sub Page_NavigationbarClicked(Action As String, Value As String)

    page.SaveNavigationBarPosition   

    If Action = "LogOff" Then
        ABMShared.LogOff(page, ABMShared.AppName)
        Return
    End If

    If Action = "Help" Then   '   Open a modalsheet with specific help topics...
        Dim pgn As String = page.Name
        If ABMShared.FindHelp(ws,pgn) Then  ' findhelp looks up page name in my DB and returns true if help topic was found
            ' Show modal sheet with help...  (or, as in my case, open the associated PDF in new tab)
        Else
            myToastId = myToastId + 1
            page.ShowToast("my"&myToastId,"toastred","Sorry - Specific Help Topic Not Found",5000)
        End If       
        Return
    End If
   
    ABMShared.NavigateToPage(ws, ABMPageId, Value)
End Sub
 
Upvote 0
Top