28. Mai 2009 07:56
28. Mai 2009 10:28
28. Mai 2009 10:35
tbSearchValue - OnAfterValidate()
// RUB001 /A
Rec.RESET;
IF STRPOS(SearchText, ',' ) > 0 THEN
BEGIN
item1 := DELCHR( COPYSTR(SearchText, 1, STRPOS(SearchText, ',' ) -1 ), '<' );
item2 := DELCHR( DELSTR( SearchText, 1, STRPOS( SearchText, ',' ) ) , '<' );
item1 := DELCHR( item1, '>' );
item2 := DELCHR( item2, '>' );
Rec.SETFILTER(Description, '%1', '*' + item1 +'*' );
Rec.SETFILTER("Pattern Description", '%1', '*' + item2 +'*' );
END
ELSE
BEGIN
item1 := SearchText;
item2 := '';
Rec.SETFILTER("No.", '%1', item1 +'*' );
IF NOT Rec.FINDFIRST THEN
BEGIN
Rec.RESET;
Rec.SETFILTER(Description, '%1', '*' + item1 +'*' );
END;
END;
CurrForm.UPDATE;
// RUB001 /E
28. Mai 2009 10:39
SetItemFilter()
IF ItemCatCode <> '' THEN
SETRANGE("Item Category Code",ItemCatCode)
ELSE
SETRANGE("Item Category Code");
IF ProdGrCode <> '' THEN
SETRANGE("Product Group Code",ProdGrCode)
ELSE
SETRANGE("Product Group Code");
IF ManuCode <> '' THEN
SETRANGE("Manufacturer Code",ManuCode)
ELSE
SETRANGE("Manufacturer Code");
IF ItemDescription <> '' THEN BEGIN
SearchDescription := '*@' + ItemDescription + '*';
SETFILTER(Description,SearchDescription);
END ELSE
SETRANGE(Description);
CurrForm.UPDATE(FALSE);
28. Mai 2009 10:48
28. Mai 2009 10:58
CurrForm.Update( false );
28. Mai 2009 11:10
Jörg Nissen hat geschrieben:Hallo,
vielen Dank für die hilfe.
- Code:
CurrForm.Update( false );
SaveRecord
Type: Boolean
Set this parameter to true if you want to save the current record. Set this parameter to false if you want to update without saving the current record.
jetzt klappt es.