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
If you're coding a manual lookup using a (local) page variable and you are asking for the Action::LookupOK, you have to enable the lookup mode of the page first:
procedure LookupCustomer(var Customer: Record Customer)
var
CustomerLookup: Page "Customer Lookup";
begin
CustomerLookup.SetTableView(Customer);
if CustomerLookup.RunModal() = Action::LookupOK then // should rais a warning, because page is not run in lookup mode
// Do Something
end;
one of this lines is expected before the RunModal(): CustomerLookup.LookupMode(true); CustomerLookup.LookupMode := true;
The same is for Action::LookupCancel.
This results in up to 4 scenarios where a warning should be displayed - I'm not sure if this should be one, two or four seperate rules:
if Action::LookupOK is found and LookupMode is not used or set to false
if Action::LookupCancel is found and LookupMode is not used or set to false
if LookupMode is set to true and Action::OK is found
if LookupMode is set to true and Action::Cancel is found
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
Uh oh!
There was an error while loading. Please reload this page.
If you're coding a manual lookup using a (local) page variable and you are asking for the Action::LookupOK, you have to enable the lookup mode of the page first:
one of this lines is expected before the RunModal():
CustomerLookup.LookupMode(true);CustomerLookup.LookupMode := true;The same is for Action::LookupCancel.
This results in up to 4 scenarios where a warning should be displayed - I'm not sure if this should be one, two or four seperate rules:
All reactions