I am newbie in business Central development . I searched this on internet but didn't get any correct answers.
I have a requirement where a page need to be open in Create mode but the main thing I have to do it without RunPageMode property because I need to execute some code before Page opens .
I tried Page.Run(Page:: Page_name , Rec) without any filter for Record . It opens page with first record in table.
Open page in Create mode ( completely blank record editable page)
Hi @Yun Zhu,
As you suggested in previous answers, RunPageMode and RunObject properties is working fine , but I need to open the page in create mode in ONACTION TRIGGER .
Please help in this condition . When I try Page.Open(Page::page_object, rec) it opens the first record on the page .
Please Help . Is there any method to do it or not?
Open page in Create mode ( completely blank record editable page)
Hi @YUN ZHU and gdrentaria,
Thanks for your reply , I really helped to solved my problem .
But I am stucked in one more thing which is (There is a sales order in our database which is created by code in mistake having Blank primary key). Now I want to delete that sales order . But it says sales lines should have document no. (not blank) even I can't delete sales line also and tried to assign another non blank key but it says Sales order can't be renamed .
What I do here to delete that one ? Do you have any idea.?
Open page in Create mode ( completely blank record editable page)
Hi
I hope I understood correctly, the way to open a card type page from Bc would be through a list type page.
So using this property "CardPageID" you link that list-type page with its corresponding card, which is "opened" to execute insertion, modification or deletion actions. I hope it can help you a little.