You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using an method to populate a Filter text, passing this directly into the filter expression of the SetFilter method, an runtime could occur.
procedure MyProcedure()var
Customer: Record Customer;
begin
Customer.SetFilter("No.", GetFilter()); // This is okay
Customer.SetFilter("No.", '%1', GetFilter()); // Should throw an warning that the procedure could return a greater length then the MaxStrLen of the field.end;
procedure GetFilter(): Textbeginexit('<>10000&<>20000&<>30000&<>40000'); // Length of 31 charactersend;
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When using an method to populate a Filter text, passing this directly into the
filter expression
of theSetFilter
method, an runtime could occur.Beta Was this translation helpful? Give feedback.
All reactions