PdcCalculation.Hide

From External Bemet Wiki
Revision as of 08:31, 21 May 2012 by Mike (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Declaration

Hide

Description

Hides the form of the calculation object

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.