i need to record in table "events" the value retrieved from a spinner.
Ex. Spinner >>
ID 1 : Work
ID 2 : Familiy
etc.
in Activity_Create:
....
DBUtils.ExecuteSpinner(SQLEvents, "SELECT description FROM eventsType", Null, 0, eventsTypeSpinner)
eventsTypeSpinner_ItemClick(1, eventsTypeSpinner.GetItem(0))
eventsTypeSpinner.SelectedIndex = 0
....
In InsertRecord:
m.Put("IDeventstype", eventstypespinner.SelectedItem )
...
ListOfMaps.Add(m)
DBUtils.InsertMaps(SQLEvents, "Events", ListOfMaps)
In ReadRecord ??????
eventstypespinner.GetItem(Cursor.GetString("IDeventstype")) ?????
thanks
Ex. Spinner >>
ID 1 : Work
ID 2 : Familiy
etc.
in Activity_Create:
....
DBUtils.ExecuteSpinner(SQLEvents, "SELECT description FROM eventsType", Null, 0, eventsTypeSpinner)
eventsTypeSpinner_ItemClick(1, eventsTypeSpinner.GetItem(0))
eventsTypeSpinner.SelectedIndex = 0
....
In InsertRecord:
m.Put("IDeventstype", eventstypespinner.SelectedItem )
...
ListOfMaps.Add(m)
DBUtils.InsertMaps(SQLEvents, "Events", ListOfMaps)
In ReadRecord ??????
eventstypespinner.GetItem(Cursor.GetString("IDeventstype")) ?????
thanks