Subject | IB_Grid Editlinks Problem |
---|---|
Author | |
Post date | 2015-03-27T13:10:27Z |
Hello
I have a problem after upgrading IBObjects from 4.8 to 5.5:
I used to write the fieldnames into the Editlinks property but now the IB_Grid doesn´t show the 3 little dots.
e.g
Editlinks:
fieldname1
fieldname2
fieldname3
I tracked down the probem to the following code
IB_Grid.pas
procedure TIB_GridInplaceEdit.UpdateContents;
...
tmpIdx := EditLinks.LinkIndex[ SelectedField.BestFieldName ];
...
doesn´t find the Editlinks entry (tmpidx=-1) because of the change in IB_Stringlist.pas
function TIB_StringList.GetLinkIndex( ALink: String ): integer;
...
Result := IndexOfName( ALink );
// if Result = -1 then
// Result := IndexOf( ALink );
....
The last 2 row are commented out ?? but this was the old behaviour.
IndexOfName finds the entries only if there are Name=value pairs
My solution is to change the Editlinks
e.g.
Editlinks:
fieldname1=XXX
fieldname2=XXX
fieldname3=XXX
Thanks
Oliver