<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.ecibemet.com/index.php?action=history&amp;feed=atom&amp;title=PdcProject.SetContactID</id>
	<title>PdcProject.SetContactID - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.ecibemet.com/index.php?action=history&amp;feed=atom&amp;title=PdcProject.SetContactID"/>
	<link rel="alternate" type="text/html" href="http://wiki.ecibemet.com/index.php?title=PdcProject.SetContactID&amp;action=history"/>
	<updated>2026-05-06T18:16:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://wiki.ecibemet.com/index.php?title=PdcProject.SetContactID&amp;diff=1590&amp;oldid=prev</id>
		<title>Mike: Created page with &quot;== Declaration == SetContactID(ContactID as String) as Boolean  == Description == Returns true or false whether the contact id is succesfully changed with the supplied id   ==...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.ecibemet.com/index.php?title=PdcProject.SetContactID&amp;diff=1590&amp;oldid=prev"/>
		<updated>2012-05-22T07:40:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Declaration == SetContactID(ContactID as String) as Boolean  == Description == Returns true or false whether the contact id is succesfully changed with the supplied id   ==...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Declaration ==&lt;br /&gt;
SetContactID(ContactID as String) as Boolean&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
Returns true or false whether the contact id is succesfully changed with the supplied id &lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
This method sets the contact person for the project. The input parameter is the ID of the required contact. The method will populate both the DF_CPID and DF_NAME column once the object is saved. To ensure proper data entry please use the pdc.ChooseRecord method to select the contact&amp;#039;s ID. As the result of the method is boolean the result can be used to proceed or cancel the remainder of the script.&lt;br /&gt;
The method returns a false for a contact ID not belonging to the projects CustomerID.&lt;br /&gt;
&lt;br /&gt;
== Code example ==&lt;br /&gt;
This code example creates a project, lets the user select the correct customer and contact, saves and shows it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;vb&amp;quot;&amp;gt;&lt;br /&gt;
dim objProj&lt;br /&gt;
dim strRelNr&lt;br /&gt;
dim strCPID&lt;br /&gt;
&lt;br /&gt;
  set objProj= pdc.Projects.New&lt;br /&gt;
  strRelNr = pdc.ChooseRecord(0,&amp;quot;&amp;quot;, &amp;quot;&amp;quot;)&lt;br /&gt;
  strCPID = pdc.ChooseRecord(8,&amp;quot;&amp;quot;, &amp;quot;CP_DEBNR = &amp;#039;&amp;quot; &amp;amp; strRelNr &amp;amp; &amp;quot;&amp;#039;&amp;quot;)&lt;br /&gt;
  objProj.SetCustomerID(strRelNr)&lt;br /&gt;
  objProj.SetContactID(strCPID)&lt;br /&gt;
  objProj.Save&lt;br /&gt;
  objProj.Show&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Availability ==&lt;br /&gt;
Available since February 2011 (From version 4.2 onwards).&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
	</entry>
</feed>