No, I need to trigger a full refresh of views. Try to explain more.
I have a B4XPages app, in Mainpage I have a menu build like this:
Sub Class_Globals
...
Private modomenu As B4AMenuItem
End Sub
Private Sub B4XPage_Created (Root1 As B4XView)
Root = Root1
Root.LoadLayout("Resumen")
modomenu = B4XPages.AddMenuItem(Me, "Enabled")
B4XPages.AddMenuItem(Me, "Another item")
...
End Sub
Private Sub B4XPage_Appear
Log("MyAppear")
...
End Sub
Private Sub B4XPage_MenuClick (Tag As String)
If Tag = "Enabled" Then
modomenu.Title = "Disabled"
...
B4XPage_Appear 'Don't trigger full refresh, so don't work for my purpose
End If
...
End Sub
After I press enabled option in the menu, it collapsed and the setting is set. But if I click the menu again, it still has the word "Enabled"...
But if then I load another page and just after load that new page I press back to close it and return to main. The menu now displays "Disabled".
Thats why when Mainpage shows again another kind of Appear is trigger (I guess an appear sub in parent class maybe), that appear sub, the good one, log: "*** mainpage: B4XPage_Appear", but when I call B4XPage_Appear that entry log is not shown only its logged: "MyAppear".
In C# you can call parent function from child like this:
public class Child : Parent
{
public void LoadData()
{
base.MyMethod(); // call method of parent class
// other stuff...
}
}
Here I don't know how to call the Appear function that log "*** mainpage: B4XPage_Appear", or, in case, how to trigger a menu entries refresh.