Hello!
I have a page with a list. I set the event on click for this list because i want to set the state on Select and on TextFields:
and on BananoSkeleton i made TextFields.
I want to set up the state on select and on TextField get from that list.
Also i want to know how could i "refresh" the list if i want to add a new item in there
Thanks for your patience
I have a page with a list. I set the event on click for this list because i want to set the state on Select and on TextFields:
Select made before:
Dim set1 As VueElement = vuetify.AddSelect(Me, rowSet1.id, "rowSet1", "rowSet1selected", "Set 1", False, False, "", "listitems", "", "", False, "set 1", CreateMap(":outlined":True))
setup.BindVueElement(set1)
'options for selects
Dim items As List = setup.NewList
items.AddAll(Array("Abilitato", "Disabilitato"))
setup.SetData("listitems", items)
and on BananoSkeleton i made TextFields.
Event onClick List:
Sub list1_click(item As Map)
vuetify.ShowSnackBarSuccess(item)
Dim codiceSetupScelto As String = item.Get("title")
setup.SetData("setupScelto", "")
Dim dbMySQL As BANanoMySQLE
dbMySQL.Initialize("Sql1407766_5", "setup_standard", "id_setup", "id_setup")
dbMySQL.SchemaAddText(Array("codice"))
'define a where clause
Dim aw As Map = CreateMap()
aw.Put("codice", codiceSetupScelto)
dbMySQL.SelectWhere(Array("*"), aw, Array("="), Array("codice"))
dbMySQL.JSON = banano.CallInlinePHPWait(dbMySQL.MethodName, dbMySQL.Build)
dbMySQL.FromJSON
Select Case dbMySQL.OK
Case False
Dim strError As String = dbMySQL.Error
vuetify.ShowSnackBarError("An error took place whilst running the command. " & strError)
Return
Case Else
vuetify.ShowSnackBarSuccess("OK")
End Select
'convert to json
Dim jsonSetupScelto As String = banano.ToJson(dbMySQL.result)
For Each rec As Map In dbMySQL.Result
Dim key As String = rec.get("key")
Dim value As String = rec.get("value")
'----------HERE i want to set value on Selects and on textFields
Next
setup.SetData("setupScelto", jsonSetupScelto)
End Sub
I want to set up the state on select and on TextField get from that list.
Also i want to know how could i "refresh" the list if i want to add a new item in there
Thanks for your patience