Hello good day.
Quote:
1º I am trying to perform a high value field search but due to the Mascara in the Dataset I cannot search the type of mask is
'R$ ,0.00; R$ -,0.00' thus a value like
1450,15 will be equal to R$ 1.450,15 this value I can't search by typing directly into the Grid with the option "splCellInplaceEh"
Can you describe how you think the search should work here?
On the screen there is a DisplayText 'R$ 1.450.15' and there is an EditText value of '1450.15'.
The user presses 1, then 4.
If we use DisplayText (R $ 1.450,15) we cannot find text '14' because the point interferes.
If we use EditText (1450.15) we will find the text, but we will not be able to highlight the found text '14' since it is not on the screen. The user will not understand the state of the search, as he will not see th highlighted text on the screen.
Quote:
2º Another thing if at the same time that I am doing the search, I Click on any column other than the Column I am typing will give error.
We will write a little later on this issue.
Perhaps it can be solved.
Quote:
3º In TDbcomboboxEh for me to be able to simulate "csDropDownList" I need to fill in the "KeyItems" property and activate the "LimitTextToListValues" property but that way I can't do partial searches like typing "Mourao" and finding "Campo Mourao" I have to disable the "LimitTextToListValues" property, but I would like to simulate "csDropDownList" so as not to let the user type something that does not exist in combobox and use "lsftContainsEh".
There is no such possibility now.
We suggest writing an event when focus is lost TDbcomboboxEh
in which to write a message that the text should correspond to the list.
The event may look as follows.
Code:
procedure TForm2.DBComboBoxEh1Exit(Sender: TObject);
begin
if (DBComboBoxEh1.Text <> '') and
(DBComboBoxEh1.ItemIndex = -1) then
begin
ShowMessage('Please Enter value from list');
DBComboBoxEh1.SetFocus;
end;
end;