When I check the update-properties, all looks fine. The Primary Key option
is selected and that looks correct. The only field I want updated is the
only thing selected in the updateable fields list.
The field in question is not a time-stamp or datetime or date. It is a
numeric. Decimal, I believe.
I have loop going through all of the items in the datawindow and doing a
SetItem into the field that I require populating. I can see the value pop
into the field.
I have Message indicators in the code showing the correct data and row
number all along the way. It's only when it gets to the
dw_gl_source.Update() part, does it throw up all over the place and I get
the "DataWindow does not have UPDATE capability" error message.
When I check the update-properties afterward, everything looks fine.
It's not like it's losing the capability, it behaves as if it just isn't
turned on.
Assistance would be greatly appreciated.
Thanks in advance!!
Brett
"John Ardila" <ardil...@hotmail.com> wrote in message
news:OHD%23%2377MDHA.187@forums-2-dub...
"John Ardila" <ardil...@hotmail.com> wrote in message
news:OHD%23%2377MDHA.187@forums-2-dub...
This is that code that is failing:
for ll_row = 1 to dw_gl_source.rowcount()
MessageBox("ll_row", String(ll_row))
MessageBox("ll_export_id", String(ll_export_id))
dw_gl_source.setItem(ll_row,'pa_eh_id',ll_export_id)
if dw_gl_source.GetItemStatus(ll_row, 0, Primary!) = NewModified! then
dw_gl_source.SetItemStatus(ll_row, 0, Primary!, NotModified!)
end if
next
li_rc = dw_gl_source.Update()
I doubt that it's code oriented, but maybe...
"Brett" <brettatweaversoftdotcom> wrote in message
news:OCcFNI8MDHA.349@forums-2-dub...
I will attempt the export, delete, and re-import method.
Thanks!
"Brett" <brettatweaversoftdotcom> wrote in message
news:OCcFNI8MDHA.349@forums-2-dub...
"Bruce Armstrong [TeamSybase]" <NOCANSPAM_br...@teamsybase.com>
wrote in message news:#6d4J8ANDHA.339@forums-2-dub...
--
Bruce Armstrong [TeamSybase]
http://www.teamsybase.com
Two new books on developing with PowerBuilder
http://www.pb9books.com?source=newsgroups
Need code sample? Check out CodeXchange:
http://www.codexchange.sybase.com
Preach the gospel at all times. If necessary, use words. - Francis of Assisi
http://www.needhim.org
"John Ardila" <ardil...@hotmail.com> wrote in message
news:OkkQ$0CNDHA.279@forums-2-dub...
Besides, there are two other datawindows in two other tabpages that function
just fine and their code for updating is nearly identical.
I've checked the Primary Key in the Update Properties -- OK
I've made sure that a field for updating has ben selected within Updateable
Columns.
"Bruce Armstrong [TeamSybase]" <NOCANSPAM_br...@teamsybase.com>
wrote in message news:eL1LjSDNDHA.187@forums-2-dub...