I have modified the WebTableControl sample.
- I cannot get the filter & search in the header working.
- Once I add the paging the WebEdit1Change event fails.
procedure TForm1.WebEdit1Change(Sender: TObject);
begin
if WebEdit1.Text <> '' then
WebTableControl1.SetFilter(0, WebEdit1.Text + '*', false)
else
WebTableControl1.RemoveFilter;
end;
https://rockstruck.com/test/
What am I missing here please.
I also need the cells to word wrap. It is mentioned in the docs but can't set it anywhere.
For cells to wordwrap, you need to set WebTableControl.WordWrap = true and have columns with fixed widths.
It fails here:
https://rockstruck.com/test/
Enter any letter into the WebEdit
Please send your modified project source code so I can see what you and properly debug.
I have created a simpler version here.
https://rockstruck.com/test2/Project12.html
Works on the editChange. However using the header search or filter causes an error
testWebControl.zip (7.8 KB)
Cheers
I have updated TMSWebcore to the latest version.
https://rockstruck.com/test2/Project12.html
Updated project.
Still fails on the Header Search & Filter
enter 'jo' in the Filter Header. No results.
enter Steve in the Header search. error
ERROR
Uncaught TypeError: Cannot read properties of undefined (reading 'length') | TypeError: Cannot read properties of undefined (reading 'length') at $impl.Matches (https://rockstruck.com/test2/testTWebControl.js:28254:48) at Object.MatchStr (https://rockstruck.com/test2/testTWebControl.js:27635:22) at Object.FindFrom (https://rockstruck.com/test2/testTWebControl.js:63798:35) at Object.FindNext (https://rockstruck.com/test2/testTWebControl.js:64488:27) at Object.HandleSearchClick (https://rockstruck.com/test2/testTWebControl.js:62427:26) at HTMLImageElement.cb (https://rockstruck.com/test2/testTWebControl.js:241:26)
at https://rockstruck.com/test2/testTWebControl.js [28254:48]
testWebControl.zip (7.7 KB)
https://rockstruck.com/test2/Project12.html
Click Fill Table
in search field enter jo click the search icon
error
ERROR
Uncaught TypeError: Cannot read properties of undefined (reading 'length') | TypeError: Cannot read properties of undefined (reading 'length') at $impl.Matches (https://rockstruck.com/test2/testTWebControl.js:28254:48) at Object.MatchStr (https://rockstruck.com/test2/testTWebControl.js:27635:22) at Object.FindFrom (https://rockstruck.com/test2/testTWebControl.js:63798:35) at Object.FindNext (https://rockstruck.com/test2/testTWebControl.js:64488:27) at Object.HandleSearchClick (https://rockstruck.com/test2/testTWebControl.js:62427:26) at HTMLImageElement.cb (https://rockstruck.com/test2/testTWebControl.js:241:26)
at https://rockstruck.com/test2/testTWebControl.js [28254:48]
refresh page.
click Fill Table
enter jo*
click search Icon
It works ( we goto the first record containing jo.
Hit search again and we get an error.
ERROR
Uncaught TypeError: Cannot read properties of undefined (reading 'length') | TypeError: Cannot read properties of undefined (reading 'length') at $impl.Matches (https://rockstruck.com/test2/testTWebControl.js:28254:48) at Object.MatchStr (https://rockstruck.com/test2/testTWebControl.js:27635:22) at Object.FindFrom (https://rockstruck.com/test2/testTWebControl.js:63798:35) at Object.FindNext (https://rockstruck.com/test2/testTWebControl.js:64488:27) at Object.HandleSearchClick (https://rockstruck.com/test2/testTWebControl.js:62427:26) at HTMLImageElement.cb (https://rockstruck.com/test2/testTWebControl.js:241:26)
at https://rockstruck.com/test2/testTWebControl.js [28254:48]