General information
Title:
ListBox and Remote Views
Hi All,
This is my first message posting on the Thread. So I hope you'll be kind and answer ASAP!!! . Just kidding!!! :-)
Here is my problem:
I have a ListBox in a form that is populated with data from a remote view.
When adding a record to the view I get an error when setting the .Enabled property of the ListBox to .F.. At this point an APPEND BLANK on the view has already occurred.
The error message is:
Error: 1547
Cannot insert an empty row from a remote view into its base table(s)
I tried the following:
CURSORSETPROP('SendUpdates', .F., myView)
myListBox.Enabled = .F.
CURSORSETPROP('SendUpdates',.T. , myView)
This approach worked for the error part but the problem is that if I cancel out of the adding process then TableRevert() doesn't do its job and I ended up with a BLANK record.
I checked GetFldState(-1) before and after I changed the .Enabled property off the list to .F. and it changed from '3333333' to '1111111'; probably the reason why the TableRevert() fails to work. I tried to change the state of the record using SetFldState() only to find that, as quoted on the Hacker's Guide, this function has a strange behavior.
Thanks in advance and I hope this message is not too long.
Iraldo.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only