Private Sub VueTable1_columnname_Change (item As Map)
vuetify.ShowSwal(banano.ToJson(item))
End Sub
Private Sub VueTable1_Change (item As Map)
vuetify.ShowSwal(banano.ToJson(item))
End Sub
Change the columnname to be the field name you used to define the switch.VueTable1_columnname_Change
VueTable1_active_Change
Its always better & recommended just to use this method as it gives you the item including anything changed data on that row and you don't have to have change events per field specified.VueTable1_Change
Mashy that's a matter of course, I just put a convenient name for the example.Change the columnname to be the field name you used to define the switch.
Please, its Mashy and not Masha.Masha
Noted. I didnt want to make assumptions.I just put a convenient name for the example.
Please do that will help find where the issue is. In the mean time please just use vuetable_change(item as map), it does the same exact thing.If you want, I'll give you an example, but I think it's really a bugs
Sub onmounted 'ignore
VueTable1.Clear
For i=1 To 5
Dim Row As Map = CreateMap("name":"Name_" & I, "active":False)
VueTable1.AddItem(Row)
Next
End Sub
Private Sub VueTable1_name_Change (item As Map)
vuetify.ShowSwalToastInfo(item.Get("name"),2000)
End Sub
Private Sub VueTable1_active_Change (item As Map)
vuetify.ShowSwalToastInfo("Active_change " & item.Get("active"),2000) ' Don't Work
End Sub
Private Sub VueTable1_Change (item As Map)
vuetify.ShowSwalToastInfo("Change " & item.Get("name"),2000)
End Sub
I didnt see this.I would like to set a field as Combo-Box, but as soon as I enter the name of the field the table goes into error and displays nothing
<v-combobox :items="" item-text="" item-value="" clearable=""
:return-object="false" v-model="props.item.um" :label="props.header.text"
dense="" class="mt-2" outlined=""></v-combobox>
Dim um As List = page.NewList
um.Add(CreateMap("id":"LT", "text":"LT"))
um.Add(CreateMap("id":"PZ", "text":"PZ"))
cboum.SetItems(page, um)
Played around and fixed the error checking scheme and applied an autofix to this. Using your original code without the VField, VForm, VDataSource.It seems I need to update the error checking scheme.
'add the combo items
Dim um As List = page.NewList
um.Add(CreateMap("id":"LT", "text":"LT"))
um.Add(CreateMap("id":"PZ", "text":"PZ"))
page.SetData("umitems", um)
unfortunately this second method does not work for mePlayed around and fixed the error checking scheme and applied an autofix to this. Using your original code without the VField, VForm, VDataSource.
We have this.
View attachment 124680
All that is needed to be done to your original source is to add this code on mounted.
B4X:'add the combo items Dim um As List = page.NewList um.Add(CreateMap("id":"LT", "text":"LT")) um.Add(CreateMap("id":"PZ", "text":"PZ")) page.SetData("umitems", um)
Terms and conditions Apply:
If you add a combo linked to this column in the layout. The data-source should be umitems, the item-value should be id and item-text should be text.
- umitems is based on the field name specified, suffixed with the word items. This will be the name of your list to store the dropdown items.
- The id and text are the default key value pairs that are automatically bound with this methodology you have used.
- There is no Combo on the layout..
Again, thanks for these reported issues, they help improve the code a great deal.
I have attached the source code. You will need the latest update of the BVAD3 library for this method. I will upload to github later today.
Perhaps thats the reason.You will need the latest update of the BVAD3 library for this method. I will upload to github later today.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?