Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

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

  • Verified answer
    Alexander Ermakov Profile Picture
    28,094 on at
    RE: Page editable = true by default (invoking it with lookupOK )

    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.

  • Verified answer
    Rabin Profile Picture
    2,976 on at
    RE: Page editable = true by default (invoking it with lookupOK )

    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
    IshwarSharma Profile Picture
    729 on at
    RE: Page editable = true by default (invoking it with lookupOK )

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,289 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,064 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans