PdcCalculation.ShippingContactID: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == ShippingContactID as String == Description == Reads and writes the contactID for the shipping address to the calculation object. == Notes == The contactI..."
 
No edit summary
Line 10: Line 10:
   
   
== Code example ==
== Code example ==
"<" source lang="vb" ">"
< source lang="vb" >
dim objCalc
dim strCPID
   set objCalc = pdc.ActiveCalculation
   set objCalc = pdc.ActiveCalculation
   strCPID = pdc.ChooseRecord(8, "", "")
   strCPID = pdc.ChooseRecord(8, "", "CP_DEBNR = '" & objCalc.ShippingCustomerID & "'")
   objCalc.ShippingContactID = strCPID  
   objCalc.ShippingContactID = strCPID  
"<" /source ">"
  objCalc.Save
< /source >
   
   
== Availability ==
== Availability ==
Geef hierbij op sinds wanneer het beschikbaar is en vanaf welke versie.
Geef hierbij op sinds wanneer het beschikbaar is en vanaf welke versie.
Available since November 2004 (From version 3.5)
Available since November 2004 (From version 3.5)

Revision as of 15:13, 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

< source lang="vb" > dim objCalc dim strCPID

 set objCalc = pdc.ActiveCalculation
 strCPID = pdc.ChooseRecord(8, "", "CP_DEBNR = '" & objCalc.ShippingCustomerID & "'")
 objCalc.ShippingContactID = strCPID 
 objCalc.Save

< /source >

Availability

Geef hierbij op sinds wanneer het beschikbaar is en vanaf welke versie. Available since November 2004 (From version 3.5)