PAGE.RUNMODAL(0, "User Role") doesn't work?

YuriMYuriM Member Posts: 12
edited 2009-02-06 in NAV Three Tier
Hi,
the following code works in the Classical Client:
UserRole Record "User Role"
IF FORM.RUNMODAL(0,UserRole) = ACTION::LookupOK THEN ...
but in the RoleTailored Client it doesn't work any more (both variants):
IF PAGE.RUNMODAL(0,UserRole) = ACTION::LookupOK THEN ...
or
IF FORM.RUNMODAL(0,UserRole) = ACTION::LookupOK THEN ...
In the Classical Client this code calls some standard Form with a MenuButton "Role". This Form is pre-created and cannot be edited with Ctrl+F2. It seems that there is no any standard Page that corresponds to it.

Does anyone has any idea how to make it work?

Comments

  • ara3nara3n Member Posts: 9,248
    you need to create a form and page for the table. Then modify the table and add LookupFormID to the new form.

    This should work on both.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.