PdcCalculation.ShippingContactID: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 10: | Line 10: | ||
== Code example == | == Code example == | ||
< source lang=vb > | <source lang="vb"> | ||
dim objCalc | dim objCalc | ||
dim strCPID | dim strCPID | ||
Line 17: | Line 18: | ||
objCalc.ShippingContactID = strCPID | objCalc.ShippingContactID = strCPID | ||
objCalc.Save | objCalc.Save | ||
< /source > | |||
</source > | |||
== Availability == | == Availability == | ||
Available since October 2012 (from version 4.3 onwards) | |||
Available since |
Latest revision as of 15:15, 29 October 2012
Declaration
ShippingContactID as String
Description
Reads and writes the contactID for the shipping address to the calculation object.
Notes
The contactID needs to belong to the shipping customer. If not, the property is not changed. No error message is generated. Best practise is to have the user select the ContactID rather than keyed in.
Code example
dim objCalc
dim strCPID
set objCalc = pdc.ActiveCalculation
strCPID = pdc.ChooseRecord(8, "", "CP_DEBNR = '" & objCalc.ShippingCustomerID & "'")
objCalc.ShippingContactID = strCPID
objCalc.Save
Availability
Available since October 2012 (from version 4.3 onwards)