This OnOpenPage() trigger is not executing the Hello world and UpdateQtyBase() procedure when I open a Purchase Order. What could be the issue?.
pageextension 50820 PurchLineExt extends "Purchase Lines"
begin Message('App published: Hello world');
Have you extended the right page? on the client, use the page info (ctrl+alt+f1) and then, due to a bug, wait the opened side panel that load itself till the end and then click what you want to inspect (if you want to know the page no. of a subform, you have to click on the subform in order to update the page info panel).
With that, you know exactly the page that you want to extend.
p.s. the subform of the purchase order is not "Purchase Lines" but "Purchase Order Subform" (or something like that)
When OnOpenPage fires, there is no record yet, so there's nothing to update. General tip: when you do data stuff, your code should be in the table object, not the page object. Page triggers should only be used for page rendering stuff
Daniel Rimmelzwaan said:General tip: when you do data stuff, your code should be in the table object, not the page object. Page triggers should only be used for page rendering stuff
You're too gentle Daniel, "data stuff" should never be done directly on a page.
Add this to