Hello Everyone,
First I want to say thank you for your help in the past! I have now come across something that is confusing me. I have a datawindow displayed in browseview. I can see my data (1000 records) with no problem, I can append a blank record with the code:
IF oSFSuub_Form2:Append() = TRUE
oSFSuub_Form2:FIRST_NAME := odcFName:CurrentTest
IF oSFSuub_Form2:Commit() = FALSEThis is a single user database, so no update conflicts are possible. Also no errors/crashes are shown or happen.
ErrorBox{NIL,"Commit Error!"}:Show()
ENDIF
ELSE
ErrorBox{NIL, "Append Error"}:Show()
ENDIF
So I see the bland record added, I step through the code and I see the data in my controls, but the data in my controls never get written to the database. The South Sea Adventure sample uses the same technique. I also tried fieldput() to no avail.
Does anyone and any questions or suggestions?
Thanks,
David
Hi David,
I do not see any record locking?
What is the DBServer:ConcurrencyControl setting?
This may affect the saving of the records.
Jamal
On 1/11/2023 2:24 PM, David Linda wrote:
Hello Everyone,
First I want to say thank you for your help in the past! I have now
come across something that is confusing me. I have a datawindow
displayed in browseview. I can see my data (1000 records) with no
problem, I can append a blank record with the code:
IF oSFSuub_Form2:Append() = TRUE
oSFSuub_Form2:FIRST_NAME := odcFName:CurrentTest
IF oSFSuub_Form2:Commit() = FALSE
ErrorBox{NIL,"Commit Error!"}:Show()
ENDIF
ELSE
ErrorBox{NIL, "Append Error"}:Show()
ENDIF
So I see the bland record added, I step through the code and I see the
data in my controls, but the data in my controls never get written to
the database. The South Sea Adventure sample uses the same
technique. I also tried fieldput() to no avail. This is a single
user database, so no update conflicts are possible. Also no
errors/crashes are shown or happen.
Does anyone and any questions or suggestions?
Thanks,
David
I think with Append the rec is automatically lockedRegards
Single User DB = SetExclusive(TRUE)
Franz
Am 15.01.2023 um 20:53 schrieb Jamal:
Hi David,
I do not see any record locking?
What is the DBServer:ConcurrencyControl setting?
This may affect the saving of the records.
Jamal
On 1/11/2023 2:24 PM, David Linda wrote:
Hello Everyone,
First I want to say thank you for your help in the past!� I� have now
come across something that is confusing me.� I have a datawindow
displayed in browseview.� I can see my data (1000 records) with no
problem, I can append a blank record with the code:
� IF oSFSuub_Form2:Append() = TRUE
����� oSFSuub_Form2:FIRST_NAME := odcFName:CurrentTest
���� IF oSFSuub_Form2:Commit() = FALSE
�������� ErrorBox{NIL,"Commit Error!"}:Show()
���� ENDIF
ELSE
ErrorBox{NIL, "Append Error"}:Show()
ENDIF
So I see the bland record added, I step through the code and I see the
data in� my controls, but the data in my controls never get written to
the database.� The South Sea Adventure sample uses the same
technique.� I also tried fieldput() to no avail.� This is a single
user database, so no update conflicts are possible.� Also no
errors/crashes are shown or happen.
Does anyone and any questions or suggestions?
Thanks,
David
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 143:47:59 |
| Calls: | 12,089 |
| Calls today: | 2 |
| Files: | 15,000 |
| Messages: | 6,517,477 |