DavidFeldhoff / al-codeactions

MIT License
17 stars 8 forks source link

Create Procedure: Objects by name not recognized as integer #84

Closed NKarolak closed 3 years ago

NKarolak commented 4 years ago

Hi David,

Creating a new procedure for MyFunction(Database::"Sales Header"); or MyFunction(Page::"Sales Order"); etc.

returns

    local procedure MyFunction(arg: Variant)
    begin
        Error('Procedure MyFunction not implemented.');
    end;

instead of

    local procedure MyFunction(i: Integer)
    begin
        Error('Procedure MyFunction not implemented.');
    end;
DavidFeldhoff commented 3 years ago

Hi Natalie, the parameters will now be named "TableId", "PageId" and so on and the type will be Integer. Is that fine for you? I'll release it in a few days.

NKarolak commented 3 years ago

Perfect, thanks.

DavidFeldhoff commented 3 years ago

I just released it. Feel free to test it and close it afterwards :)

NKarolak commented 3 years ago

Works like a charm, thanks :-)