Announcements
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
*This post is locked for comments
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.
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.
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
André Arnaud de Cal...
293,289
Super User 2025 Season 1
Martin Dráb
232,064
Most Valuable Professional
nmaenpaa
101,156
Moderator