Subject | RE: [IBO] Duplicating rows |
---|---|
Author | Riho-Rene Ellermaa |
Post date | 2002-03-05T09:25:09Z |
UpdateData(Sender,Source,Field) is protected
method and not accessible. I don't want to start messing with IBO header files.
Riho-Rene Ellermaa
senior programmer
Hansabank
var
ii: integer;
..
..
with aForm do
for ii := 0 to ComponentCount -1 do
begin
if Components[ii] is TIB_CustomEdit and not(Components[ii] is
TIB_CustomGrid) then
if Datasource = aDatasource then
if Components[ii].Field.FieldName in (['FieldA', 'FieldB',
'FieldC']) then
TIB_CustomEdit(Components[ii]).UpdateData;
end;
regards,
Helen Borrie (TeamIBO Support)
method and not accessible. I don't want to start messing with IBO header files.
Riho-Rene Ellermaa
senior programmer
Hansabank
>2. After duplication (query i still in Insert state) the new data whows okWhat happens if you call the UpdateData method of the edit controls?
>on the grid, but TIB_Edit fields (etc.) are empty. They start showing
>values only when I click on them. Should I call some kind of method to get
>the values visible in Edit fields also?
var
ii: integer;
..
..
with aForm do
for ii := 0 to ComponentCount -1 do
begin
if Components[ii] is TIB_CustomEdit and not(Components[ii] is
TIB_CustomGrid) then
if Datasource = aDatasource then
if Components[ii].Field.FieldName in (['FieldA', 'FieldB',
'FieldC']) then
TIB_CustomEdit(Components[ii]).UpdateData;
end;
regards,
Helen Borrie (TeamIBO Support)