I have been working through this YouTube tutorial from Geoff on DBKit. DBKit has changed in organization considerably since the video was released. However, one can still work through it, at least to a point.
I have run into a problem of app behavior that I can’t quite figure out.
If this behavior is a bug, I will submit it as an ‘issue’. However, it is more likely that I am making a mistake.
To start, here is a screenshot of the XOJO project
I solved the problem, though my solution may create problems down the line.
In the DBKit.Connector.LoadSelectedRow method I added a call parameter DisableRowChangeCheck As Boolean=True, then changed the method by adding at the beginning
//Added a Boolean parameter to the method call to Disable RowChange Check
//Default is True. This clears up a problem when loading a listbox from a search field
If DisableRowChangeCheck Then AllowCheckForRowChange=False
Then in the DBKit.SearchResultsListBox.AddRowsFromRowSet, I changed the LoadSelectedRow call from
If RowCount > 0 Then
SelectedRowIndex = 0
Connector.LoadSelectedRow
End If
to
If RowCount > 0 Then
SelectedRowIndex = 0
Connector.LoadSelectedRow(False)
End If
I cannot get the New Button to work in my DB Kit project. It is a DBKit.NewButton and is on the same Window with a listbox. All other buttons do work as expected. Is there anything I should do to make it work?