web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)
Answered

Page editable = true by default (invoking it with lookupOK )

(0) ShareShare
ReportReport
Posted on by 179

Hello, I need to open a page with the ok and cancel buttons and being editable = true by default... but when I invoke the page with the command:

page.lookmode(true);

if page.runmodal:action.lookupOK then

BEGIN

...

END

The page is always not editable and I have to press the edit list button. There is any way to do it editable without having to press this button? Thanks

5314.Sin-t_ED00_tulo.jpg

*This post is locked for comments

I have the same question (0)
  • Verified answer
    IshwarSharma Profile Picture
    729 on at

    Check the properties of the Page variable in C/AL symbol menu. You may use EDITABLE property from there.

    Modify you code as shown below and try,

    page.lookmode(true);

    page.EDITABLE := TRUE

    if page.runmodal:action.lookupOK then

    BEGIN

    ...

    END

  • Verified answer
    Rabin Profile Picture
    2,976 on at

    hi,

    As suggested by Ishwar, Check the property of the page and you can also add Editable property on the page on Initialize trigger.

    In some cases because the table is non-editable you will have to apply explicit codes to make it work. If it does not resolves the issue then look into table property.

  • Verified answer
    Alexander Ermakov Profile Picture
    28,096 on at

    As advised by other members, set the property of the page to Editable. Also check the type of the pages, sometimes you would need to use a different page type.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans