PdcPuchaseInvoiceLineList.Clear: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Methods == <br> == Description == Calculation Object == Notes =="
 
No edit summary
Line 1: Line 1:
== Methods ==
== Declaration ==
<br>
Clear


== Description ==
== Description ==
Calculation Object
Deletes all the invoice lines of the linelist.


== Notes ==
== Notes ==
This method closes the calculation in PdC. A useful method to show any changes made by the script for which the form needs to be refreshed.
== Code example ==
The script creates term invoice lines. These are not shown in the calculation from in PdC until it's refreshed.
After hiding and showing the calculation the new term invoices lines are visible.
<source lang="vb">
dim objCalc
dim strCalcNr
  'Script code to create term invoice lines.
  'Retain the calculation number to open later.
  strCalcNr= ObjCalc.CalculationNo
  ObjCalc.Save
  ObjCalc.Hide
  set ObjCalc = nothing
  'Calculatie ophalen
  pdc.ShowCalculation(strCalcNr)
</source>
== Availability ==
Available since April 2005.

Revision as of 08:44, 19 August 2015

Declaration

Clear

Description

Deletes all the invoice lines of the linelist.

Notes

This method closes the calculation in PdC. A useful method to show any changes made by the script for which the form needs to be refreshed.

Code example

The script creates term invoice lines. These are not shown in the calculation from in PdC until it's refreshed. After hiding and showing the calculation the new term invoices lines are visible.

dim objCalc
dim strCalcNr

  'Script code to create term invoice lines.

  'Retain the calculation number to open later.
  strCalcNr= ObjCalc.CalculationNo

  ObjCalc.Save
  ObjCalc.Hide
  set ObjCalc = nothing

  'Calculatie ophalen
  pdc.ShowCalculation(strCalcNr)

Availability

Available since April 2005.