dennysutanto
10/25/2021, 10:36 AMview
Purchase Order, as what i understand pageInit
will not run on View mode.
Please suggest any way to achieve this ? Thanksmichoel
10/25/2021, 10:38 AMdennysutanto
10/25/2021, 10:51 AMscottvonduhn
10/25/2021, 12:28 PMbeforeLoad
script will definitely work. We have two UE scripts that do this, to add alerts in View mode.stalbert
10/25/2021, 2:59 PMconst beforeLoad = (context) => {
rather than just function beforeLoad (context) {
?stalbert
10/25/2021, 3:00 PMdennysutanto
10/25/2021, 4:56 PMdennysutanto
10/25/2021, 4:59 PMscottvonduhn
10/25/2021, 5:13 PMstalbert
10/25/2021, 5:45 PMfunction foo()
is also ES6 syntax 🙂 and since arrow functions assigned to a variable are not the same as a function statement I thought maybe there was a particular technical reason to choose that over function foo()
. There are subtle differences between a const variable assigned a function expression with an arrow function and an old school function statement.scottvonduhn
10/25/2021, 6:53 PMstalbert
10/25/2021, 6:55 PMthis
is handled, when you can use the function (only after declaration in the case of function expressions) and the potential for missing/different info in stack traces should the function throw an exception?scottvonduhn
10/25/2021, 8:42 PMdennysutanto
10/26/2021, 2:51 AM