Ads were blocked - no problem. But keep in mind that developing HeidiSQL, user support and hosting takes time and money. You may want to send a donation instead.

need help on new feature "follow foreign key"

dungsaga's profile image dungsaga posted 4 weeks ago in Feature discussion Permalink

I'm working on a new feature that allow the user to follow foreign key to the reference table and filter to show only rows linked from the current row (https:// github.com /HeidiSQL/HeidiSQL/pull/1571). Since I'm not familiar with Delphi and Pascal, there is a problem I can't resolve now.

I'm trying to set the filter after switching to the reference table from the foreign key. But the filter text only appears in Recent filters. I guess there's something that load the filter text from filter history whenever I switch to another table.

Here's the code I wrote:

SynMemoFilter.UndoList.AddGroupBreak;
SynMemoFilter.SelectAll;
SynMemoFilter.SelText := ForeignColumnName + ' = "' + TextCopy + '"';
// SynMemoFilter.Text := ForeignColumnName + ' = "' + TextCopy + '"';
actApplyFilter.Execute;
// actApplyFilterExecute(nil);

The commented code is the alternative code which also doesn't work.

@ansgar Can you give me some tips to handle this?

dungsaga's profile image dungsaga posted 4 weeks ago Permalink

I see the link Feature requests to issues with label:feature in GitHub. Should I ask for question in a GitHub issue instead of posting here?

Please login to leave a reply, or register at first.




Ads were blocked - no problem. But keep in mind that developing HeidiSQL, user support and hosting takes time and money. You may want to send a donation instead.