AL icon indicating copy to clipboard operation
AL copied to clipboard

Problem: Page Action is not Displayed, when RunObject is used and the page refere to a special table

Open megel opened this issue 8 years ago • 9 comments

NAV Version: grafik

app.json ("target": "Internal")

In my page I have defined 3 actions, but only 2 are visible.

area(Processing)
{ 
        // This action is visible & can be executed
	action("Table Information")
	{
		ApplicationArea = All;
		Image = Info;
		trigger OnAction();
		var p : Page "My Table Information";
		begin
			p.Run;
		end;
	}

        // This action is not shown (same page is used)
	Action("Table Information 2")
	{
		ApplicationArea = All;
		RunObject = Page "My Table Information";
		RunPageMode = View;
		Image = Info;
	}

        // This action is shown - but uninterestion for the Issue
	Action(Setup)
	{
		ApplicationArea = All;
		RunObject = Page "My Setup";
		Image = Setup;
	}
}

The page / actions in the WebClient (RTC is the same result): grafik

My page uses the SourceTable Table Information:

page 51007 "Table Information OETT"
{
    PageType        = List;
    SourceTable     = "Table Information";
    // ...
}

When I change the SourceTable e.g. to: SourceTable = "Table Permission Buffer";

Than the action is shown correct: grafik

megel avatar Dec 22 '17 12:12 megel

Hi @megel . Could you please verify you are still experiencing this issue? I tried reproing it but it doesn't repro, I can see the action. One thing which happens is when you don't specify that the action does anything (no run object or trigger) then the action is not displayed. We should indeed report at least a warning in that case.

doivosevic avatar Feb 13 '18 07:02 doivosevic

@DominikDitoIvosevic which build should I try?

megel avatar Feb 13 '18 16:02 megel

Please try with a version after 11.0.20221.0. Could you maybe upload a small sample zip of the extension causing issues so that we have a repro?

doivosevic avatar Feb 14 '18 07:02 doivosevic

@DominikDitoIvosevic , sorry this Issue still exists: WebClient: grafik RTC: grafik

Here is a sample project: Microsoft AL [ActionTest].zip

My Version: grafik grafik grafik

megel avatar Feb 16 '18 10:02 megel

@megel thank you for the repro. Very peculiar indeed. I will investigate further

doivosevic avatar Feb 19 '18 13:02 doivosevic

The Page Action not being displayed is intentional because the table is not included in the license.

thpeder avatar Mar 20 '18 10:03 thpeder

@thpeder if the license is the root cause, what is the difference between:

var p : Page "My Table Information";
begin
	p.Run;
end;

and

RunObject = Page "My Table Information";
RunPageMode = View;

megel avatar Apr 09 '18 06:04 megel

The difference is how the action is declared.

In the latter case, the RunObject property adds metadata to the action telling us what table is being accessed. Because Table Information isn't part of the license, we remove the action from the ribbon when the page is opened.

In the former case everything is done in code so the action doesn't have that metadata.

RobAnderson42 avatar Apr 09 '18 16:04 RobAnderson42

We are closing this for "by design"

doivosevic avatar Apr 26 '18 09:04 doivosevic