ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Access Request] table 37 "Sales Line"

Open pri-kise opened this issue 3 years ago • 3 comments

Could you please move the SalesHeader to the protected variables?

    protected var
        HideValidationDialog: Boolean;
        StatusCheckSuspended: Boolean;
        PrePaymentLineAmountEntered: Boolean;
        SkipTaxCalculation: Boolean;
//+Change
        SalesHeader: Record "Sales Header";
//-Change

pri-kise avatar Jan 11 '23 14:01 pri-kise

Hello,

Can you use global procedure GetSalesHeader defined under the Sales Line table?

MarkoTrn avatar Jul 13 '23 07:07 MarkoTrn

The problem I have is, that the method GetSalesHeader does a record assignment. Therefore any global variables on the Global SalesHeader are lost when the Global SalesHeader is assigned to the SalesHeader instance. This is currently a plattform limitation an the only way to work around this issue is by using the same SalesHeader Instance.

pri-kise avatar Jul 13 '23 07:07 pri-kise

Sorry, we cannot do this change. It require refactoring of our app and demo tool code as internal SalesHeader variable become visible in their scope, and we get unexpected errors.

AlexanderYakunin avatar Nov 20 '23 08:11 AlexanderYakunin