AL icon indicating copy to clipboard operation
AL copied to clipboard

Need SourceTableView for Page Extension

Open jeffgit opened this issue 6 years ago • 4 comments

Is your feature request related to a problem? Please describe. Yes, I need to change the SourceTableView for the native page object, but it's not available.

Describe the solution you'd like Include SourceTableView property for page extension object.

Describe alternatives you've considered Haven't thought of any.

Additional context

jeffgit avatar Feb 07 '19 08:02 jeffgit

Hi @jeffgit, thank you for your suggestion. Did you try setting the view programmatically in one of the trigger of the page extension?

You could use something like this:

pageextension 50100 MyExtension extends "Customer List"
{
    trigger OnOpenPage()
    begin
        rec.SetCurrentKey("Balance (LCY)");
        rec.SetAscending("Balance (LCY)", false);
        rec.SetFilter("Balance (LCY)", '> 50000');
    end;
}

qutreson avatar Feb 07 '19 10:02 qutreson

Thanks for getting back with suggestion, but it doesn't work for us. I need to set the SourceTableView on the List page so once the field on the SourceTableView filter changes on the Card page and saved, the Card page will be closed automatically. It works well in RTC, just need to replicate the similar behavior in BC.

jeffgit avatar Feb 21 '19 02:02 jeffgit

I will mark it as a suggestion for now and see what we can do about it. For now mostly UI related properties have been extended for a page.

kalberes avatar Feb 21 '19 21:02 kalberes