I am trying to open the Service Order card page in edit mode for a record on a list page based on a temporary table. Even when setting the page to Editable, the page opens in View mode.
Any help would be appreciated!
local procedure ShowSVCO() var pageSVCO: page "Service Order"; svcorec: Record "Service Header"; begin if Rec.DocType = Rec.DocType::SVCO then begin svcorec.Reset(); svcorec.SetRange("Document Type", svcorec."Document Type"::Order); svcorec.SetRange("No.", Rec."No."); if svcorec.Find('-') then begin pageSVCO.SetRecord(svcorec); pageSVCO.Editable(true); pageSVCO.Run(); end
Maybe try running the debugger to see if another extension is overriding your code?
This does not work either for some reason. The only way I have been able to get it working is if I use RunModal on the page run.
Hi,
You cannot make the page editable dynamically and then open it, as YUN ZHU mentioned above you have to use CurrPage,Editable. Just run the specific code and remove 'pageSVCO.Editable(true)' from your procedure and extend the service document page 5900 to add 'CurrPage.Editable(true)' to the 'onOpenPageTrigger'.
Regards
Hi, please use CurrPage.Editable(true) in the OnOpenPage trigger.
More details: https://yzhums.com/9132/
Hope this helps.
Thanks.
ZHU
Sohail Ahmed
813
YUN ZHU
771
Super User 2025 Season 1
Mansi Soni
529