Options

How do Page Handlers Work

LerxxLerxx Member Posts: 10
So I am currently testing with my Test Codeunit and I try to call my PageHandler "boi5" to open "Admin Page" but it won't work.

Variable: Name: AdminPage, Type: Page, Subtype: Admin Page

I try to call boi5(AdminPage);

[PageHandler] boi5(VAR MyPage : Page "Admin Page")
Starting := STRSUBSTNO('%1%2',startingthing,'Admin Page');
boi2(Starting);
PAGE.RUN(PAGE::"Admin Page");

When I try to compile it says:"Assignment is not allowed for this variable." and points at boi5(AdminPage).

Please help me

Thanks in Advance

Lerxx

Answers

  • Options
    vaprogvaprog Member Posts: 1,118
    Did you try making the MyPage parameter non-VAR?
  • Options
    LerxxLerxx Member Posts: 10
    vaprog wrote: »
    Did you try making the MyPage parameter non-VAR?

    a3u8j0a2oljv.png
Sign In or Register to comment.