Frequent use Script Events: Difference between revisions
Content added Content deleted
m (Changed protection level for "Frequent use Script Events" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite) [Delete=Allow only administrators] (indefinite)) [cascading]) |
No edit summary |
||
Line 5: | Line 5: | ||
==Frequent Use Events== |
==Frequent Use Events== |
||
{{NavigateDeveloper|collapsed}} |
{{NavigateDeveloper|collapsed}} |
||
==OnMasterColumnChanged== |
===OnMasterColumnChanged=== |
||
Learn about [[Master and Detail in Document]]. |
|||
'''OnMasterColumnChanged''' is triggered when user changes the value on master area of entry form, except detail area. |
'''OnMasterColumnChanged''' is triggered when user changes the value on master area of entry form, except detail area. |
||
===OnMasterColumnChanged event in Sales Invoice=== |
====OnMasterColumnChanged event in Sales Invoice==== |
||
<syntaxhighlight lang="csharp"> |
<syntaxhighlight lang="csharp"> |
||
public void OnMasterColumnChanged(BCE.AutoCount.Invoicing.Sales.Invoice.InvoiceMasterColumnChangedEventArgs e) |
public void OnMasterColumnChanged(BCE.AutoCount.Invoicing.Sales.Invoice.InvoiceMasterColumnChangedEventArgs e) |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
===Example=== |
====Example==== |
||
* |
*When DebtorCode is Changed, prompt message box to display Price Category of selected customer. |
||
<syntaxhighlight lang="csharp"> |
<syntaxhighlight lang="csharp"> |
||
public void OnMasterColumnChanged(BCE.AutoCount.Invoicing.Sales.Invoice.InvoiceMasterColumnChangedEventArgs e) |
public void OnMasterColumnChanged(BCE.AutoCount.Invoicing.Sales.Invoice.InvoiceMasterColumnChangedEventArgs e) |
||
Line 43: | Line 44: | ||
[[Category:Script Event]] |
[[Category:Script Event]] |
||
===[[OnDetailColumnChanged]]=== |
|||
===[[BeforeSave]]=== |
|||
===[[CalcSubTotal]]=== |
|||
===[[OnFormInitialize]]=== |
|||
<br /> |
<br /> |
||
[[:Category:Script_Event|More Application Script Events]] |
[[:Category:Script_Event|More Application Script Events]] |
||
<br /> |
<br /> |
||
[[Category:Developers]] |
[[Category:Developers]] |
||
[[Category:AppScript]] |