Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread TDataset Filtering and TGrid identification of click in which column
Mon, May 13 2013 3:14 AMPermanent Link

Justmade

We are waiting for EWB to add HTML offline manifest support.

Recently, we also had other online project we used Intraweb X before which we would like to convert to EWB instead of using newer version of Intraweb.  However, we find some function seems to be lacking.

1. Dataset Filtering
Our Customers are used to our advanced searching which they can type anything and the dataset will filter only show the rows with matching text in any field in any position.  We used OnFilterRecord in TDataset to achieve that.  However, it seems EWB dataset is lacking filtering mechanism for now and we need to generate prams for re-reading the data from server every-time that the filter had changed? Is there any way to do local filtering without resolved to server?

2. TGrid identification of which column clicked
When user click on a grid, we would like to know which column they had click to process different operation based on which column clicked.  However, the OnClick event only had Sender parameter.  Is that a way to detect which column had been clicked which we can do different operation when different column clicked?

Thank you.
Mon, May 13 2013 5:40 AMPermanent Link

Claudia Borsel

Justmade wrote:
...
2. TGrid identification of which column clicked
...


procedure TForm1.Grid1Click(Sender: TObject);
begin
  label1.caption := inttostr(Grid1.ColumnIndex);
  label2.caption := inttostr(Grid1.RowIndex);
end;
Tue, May 14 2013 12:24 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< 1. Dataset Filtering
Our Customers are used to our advanced searching which they can type
anything and the dataset will filter only show the rows with matching text
in any field in any position.  We used OnFilterRecord in TDataset to achieve
that.  However, it seems EWB dataset is lacking filtering mechanism for now
and we need to generate prams for re-reading the data from server every-time
that the filter had changed? Is there any way to do local filtering without
resolved to server? >>

Not at this time, no.  However, I can certainly look into adding something
similar to OnFilterRecord - it's the quickest and easiest way to add
filtering without having to add an expression parser, etc. for the
filtering.

Tim Young
Elevate Software
www.elevatesoft.com


Image