is correct write a PUBLIC SUB in B4XPage and in this same page do the ShowPage?
that is (code in
PaginaHVarios)
and in other pages (menu with any opciones for open same page, but with little changes).:
and a PUBLIC PAGE in B4XMainPage
It this is correct, this b4x is the event, sorry: heaven
great!!!
that is (code in
PaginaHVarios)
B4X:
Sub Class_Globals
Private Root As B4XView 'ignore
Private xui As XUI 'ignore
Private BHerramienta As B4XFloatTextField
Private ComboTipoMovimiento As B4XComboBox
Private ComboEstadoUso As B4XComboBox
Private txtIncidencia As B4XView
Private lblOperativa As B4XView
Private cmdFecha As B4XView
Public TipoGestionDiDeInFo As String 'Di-Disponer De-Devolver In-Incidencia Fo-Hacer Foto
End Sub
public Sub Abrir(Tipo As String )
TipoGestionDiDeInFo = Tipo
'remember, this code are INTO PaginaHVarios
B4XPages.ShowPage("PaginaHVarios")
SetTipoGestionEnCombo
End Sub
Sub ComboTipoMovimiento_SelectedIndexChanged (Index As Int)
SetTipoGestionEnCombo(Index)
End Sub
PRIVATE Sub SetTipoGestionEnCombo(Index As Int)
txtIncidencia.Visible = False
ComboEstadoUso.cmbBox.Visible = False
lblOperativa.Visible = False
Select Case Index
Case 0
Case 1 'disponer
Case 2 'devolver
Case 3 'inciddencia
txtIncidencia.Visible = True
ComboEstadoUso.cmbBox.Visible = True
lblOperativa.Visible = True
Case 4 'SOLO FOTO
End Select
End Sub
and in other pages (menu with any opciones for open same page, but with little changes).:
B4X:
B4XPages.MainPage.PaginaHVarios.Abrir( TipoGestionDiDeInFo)
and a PUBLIC PAGE in B4XMainPage
B4X:
Public PaginaHVarios As PageHVarios
It this is correct, this b4x is the event, sorry: heaven
great!!!