<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Rename Notes Location Document</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/rename-notes-location-document/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/rename-notes-location-document/</link>
	<description></description>
	<lastBuildDate>Wed, 19 Jun 2013 10:51:37 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: brooklynegg</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rename-notes-location-document/#comment-54164</link>
		<dc:creator>brooklynegg</dc:creator>
		<pubDate>Wed, 25 Jun 2008 14:10:32 +0000</pubDate>
		<guid isPermaLink="false">#comment-54164</guid>
		<description><![CDATA[My mistake. I wrecked the document object name. Did you notice and fix it and it still failed? If not do this and let me know.

Case “Internet”
‘docLocation.RemovePermanently(True) ‘mark at front of line disables it. you can delete instead.
docLocation.name = “My Company name”
Call docLocation.Save(True, False)]]></description>
		<content:encoded><![CDATA[<p>My mistake. I wrecked the document object name. Did you notice and fix it and it still failed? If not do this and let me know.</p>
<p>Case “Internet”<br />
‘docLocation.RemovePermanently(True) ‘mark at front of line disables it. you can delete instead.<br />
docLocation.name = “My Company name”<br />
Call docLocation.Save(True, False)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bfoster27</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rename-notes-location-document/#comment-54152</link>
		<dc:creator>bfoster27</dc:creator>
		<pubDate>Tue, 24 Jun 2008 21:16:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-54152</guid>
		<description><![CDATA[Brooklynegg, I tried what you suggested but it didn&#039;t work. Any other suggestions? Please reply to this blog... Thanks a million]]></description>
		<content:encoded><![CDATA[<p>Brooklynegg, I tried what you suggested but it didn&#8217;t work. Any other suggestions? Please reply to this blog&#8230; Thanks a million</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brooklynegg</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rename-notes-location-document/#comment-54144</link>
		<dc:creator>brooklynegg</dc:creator>
		<pubDate>Tue, 24 Jun 2008 14:04:42 +0000</pubDate>
		<guid isPermaLink="false">#comment-54144</guid>
		<description><![CDATA[In the script you posted, change this case

Case “Internet”
&#039;docLocation.RemovePermanently(True) &#039;mark at front of line disables it. you can delete instead.
Locationdoc.name = “My Company name” 
Call docLocation.Save(True, False)]]></description>
		<content:encoded><![CDATA[<p>In the script you posted, change this case</p>
<p>Case “Internet”<br />
&#8216;docLocation.RemovePermanently(True) &#8216;mark at front of line disables it. you can delete instead.<br />
Locationdoc.name = “My Company name”<br />
Call docLocation.Save(True, False)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bfoster27</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rename-notes-location-document/#comment-54127</link>
		<dc:creator>bfoster27</dc:creator>
		<pubDate>Mon, 23 Jun 2008 15:23:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-54127</guid>
		<description><![CDATA[Broxy, or anyone else. Based on the script I posted above it ther a way to do this and If so can you please repost .

Thanks]]></description>
		<content:encoded><![CDATA[<p>Broxy, or anyone else. Based on the script I posted above it ther a way to do this and If so can you please repost .</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: broxy</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rename-notes-location-document/#comment-54091</link>
		<dc:creator>broxy</dc:creator>
		<pubDate>Fri, 20 Jun 2008 18:50:34 +0000</pubDate>
		<guid isPermaLink="false">#comment-54091</guid>
		<description><![CDATA[In order to modify location documents then every user has to run the script which can be done by sending an email with a preprogrammed button, This needs careful thought before you do this especially if you are considering sending a button that deletes all existing location documents.

This sort of high-handed action is likely to upset users a great deal if they have already customised their location documents, by all means create a standard new one but give the users a choice rather than installing automatically unless you consult widely beforehand.]]></description>
		<content:encoded><![CDATA[<p>In order to modify location documents then every user has to run the script which can be done by sending an email with a preprogrammed button, This needs careful thought before you do this especially if you are considering sending a button that deletes all existing location documents.</p>
<p>This sort of high-handed action is likely to upset users a great deal if they have already customised their location documents, by all means create a standard new one but give the users a choice rather than installing automatically unless you consult widely beforehand.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bfoster27</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rename-notes-location-document/#comment-54055</link>
		<dc:creator>bfoster27</dc:creator>
		<pubDate>Thu, 19 Jun 2008 20:30:15 +0000</pubDate>
		<guid isPermaLink="false">#comment-54055</guid>
		<description><![CDATA[This is the scrip i&#039;m using. What I would like to do is delete all locations and somehow rename the OFFICE location to HNRGMAIL. Please see my script below and make the changes you see fit and repost... I would appreciate it a million.

Dim viewLocations As NotesView
	Dim docLocation As NotesDocument
	Dim item As NotesItem
	Dim vec As NotesViewEntryCollection
	Dim ve As NotesViewEntry
	
	Dim session As New NotesSession
	Dim db As NotesDatabase
	Dim doc As NotesDocument
	Set db = session.GetDatabase(&quot;&quot;, &quot;names.nsf&quot;)
	Set doc = db.CreateDocument
	doc.Type = &quot;Connection&quot;
	doc.ConnectionType = &quot;Local Area Network&quot;
	doc.Destination = &quot;HNRGMAIL&quot;
	doc.LanPortName = &quot;TCPIP, COM1, COM2, COM3, COM4&quot;
	doc.ConnectionLocation = &quot;HNRGMAIL&quot;
	doc.OptionalNetworkAddress = &quot;*&quot;
	doc.Form = &quot;local&quot;
	Call doc.ComputeWithForm(False, False)
	Call doc.save(True, True)
	Msgbox &quot;Your (HNRGMAIL) Location Connection Document was Created&quot;
	
	Set db = session.GetDatabase(&quot;&quot;, &quot;names.nsf&quot;)
	Set doc = db.CreateDocument
	doc.Type = &quot;Connection&quot;
	doc.ConnectionType = &quot;Network Dialup&quot;
	doc.Destination = &quot;HNRGMAIL&quot;
	doc.LanPortName = &quot;TCPIP, COM1, COM2, COM3, COM4&quot;
	doc.ConnectionLocation = &quot;Home (Network Dialup)&quot;
	doc.OptionalNetworkAddress = &quot;165.71.63.84&quot;
	doc.Form = &quot;local&quot;
	Call doc.ComputeWithForm(False, False)
	Call doc.save(True, True)
	Msgbox &quot;Your (Home Dial-up) Connection Document was Created&quot;
	
	Set session = New NotesSession 
	Set dbNAB = session.GetDatabase(&quot;&quot;, &quot;names.nsf&quot;)
	Set viewLocations = dbNAB.GetView(&quot;Locations&quot;)
	Set vec = viewLocations.AllEntries 
	For k = 1 To vec.Count
		Set ve = vec.GetNthEntry(k)
		Set docLocation = ve.Document
		Select Case docLocation.Name(0) = &quot;HNRGMAIL&quot;
		doc.name = &quot;HNRGMAIL&quot;
		Case &quot;HNRGMAIL&quot;
			docLocation.ReplicationEnabled = &quot;1&quot;
			docLocation.ReplicateImmediate = &quot;0&quot;
			docLocation.ReplicateAtStart = &quot;0&quot;
			docLocation.PromptAtStart = &quot;0&quot;
			docLocation.Schedule = &quot;12:01:00 AM - 11:59:00 PM&quot;
			docLocation.Intervals = “4”
			docLocation.Enabled = &quot;1&quot;
			docLocation.ReplicateAtEnd = &quot;0&quot;
			Set item = docLocation.ReplaceItemValue(&quot;WebRetriever&quot;, &quot;2&quot;) &#039;from the test
			docLocation.WeekDays = Null
			For q = 1 To 7
				If (docLocation.HasItem(&quot;WeekDays&quot;)) Then 
					Set item = docLocation.GetFirstItem(&quot;WeekDays&quot;)
					item.AppendtoTextList Cstr(q)
				Else
					docLocation.WeekDays = Cstr(q)
				End If
			Next
			
		Case &quot;HNRGMAIL”
			docLocation.ReplicationEnabled = &quot;1&quot;
			docLocation.ReplicateImmediate = &quot;0&quot;
			docLocation.ReplicateAtStart = &quot;0&quot;
			docLocation.PromptAtStart = &quot;0&quot;
			docLocation.Schedule = &quot;12:01:00 AM – 11:59:00 PM&quot;
			docLocastion.Intervals= “4”			
			docLocation.Enabled = &quot;1&quot;
			docLocation.ReplicateAtEnd = &quot;0&quot;
			Set item = docLocation.ReplaceItemValue(&quot;WebRetriever&quot;, &quot;2&quot;) &#039;from the test
			docLocation.WeekDays = Null
			For q = 1 To 7
				If (docLocation.HasItem(&quot;WeekDays&quot;)) Then 
					Set item = docLocation.GetFirstItem(&quot;WeekDays&quot;)
					item.AppendtoTextList Cstr(q)
				Else
					docLocation.WeekDays = Cstr(q)
				End If
			Next
			
		Case &quot;Home (Network Dialup)&quot;
			docLocation.ReplicationEnabled = &quot;0&quot;
			docLocation.ReplicateImmediate = &quot;0&quot;
			docLocation.ReplicateAtStart = &quot;0&quot;
			docLocation.PromptAtStart = &quot;0&quot;
			docLocation.Schedule = &quot;08:30:00 AM - 10:00:00 PM&quot;
			docLocation.Enabled = &quot;1&quot;
			docLocation.Interval = &quot;0&quot;
			docLocation.ReplicateAtEnd = &quot;0&quot;
			Set item = docLocation.ReplaceItemValue(&quot;WebRetriever&quot;, &quot;2&quot;) &#039;from the test
			docLocation.WeekDays = Null
			For q = 1 To 7
				If (docLocation.HasItem(&quot;WeekDays&quot;)) Then 
					Set item = docLocation.GetFirstItem(&quot;WeekDays&quot;)
					item.AppendtoTextList Cstr(q)
				Else
					docLocation.WeekDays = Cstr(q)
				End If
			Next			
			
			Call docLocation.Save(True, False)
		Case &quot;Home (Notes Direct Dialup)&quot;
			docLocation.RemovePermanently(True)
		Case &quot;Island (Disconnected)&quot;
			docLocation.RemovePermanently(True)
		Case &quot;Travel (Notes Direct Dialup)&quot;
			docLocation.RemovePermanently(True)
		Case “Office”
			docLocation.RemovePermanently(True) 
		Case &quot;Internet&quot;
			docLocation.RemovePermanently(True)]]></description>
		<content:encoded><![CDATA[<p>This is the scrip i&#8217;m using. What I would like to do is delete all locations and somehow rename the OFFICE location to HNRGMAIL. Please see my script below and make the changes you see fit and repost&#8230; I would appreciate it a million.</p>
<p>Dim viewLocations As NotesView<br />
	Dim docLocation As NotesDocument<br />
	Dim item As NotesItem<br />
	Dim vec As NotesViewEntryCollection<br />
	Dim ve As NotesViewEntry</p>
<p>	Dim session As New NotesSession<br />
	Dim db As NotesDatabase<br />
	Dim doc As NotesDocument<br />
	Set db = session.GetDatabase(&#8220;&#8221;, &#8220;names.nsf&#8221;)<br />
	Set doc = db.CreateDocument<br />
	doc.Type = &#8220;Connection&#8221;<br />
	doc.ConnectionType = &#8220;Local Area Network&#8221;<br />
	doc.Destination = &#8220;HNRGMAIL&#8221;<br />
	doc.LanPortName = &#8220;TCPIP, COM1, COM2, COM3, COM4&#8243;<br />
	doc.ConnectionLocation = &#8220;HNRGMAIL&#8221;<br />
	doc.OptionalNetworkAddress = &#8220;*&#8221;<br />
	doc.Form = &#8220;local&#8221;<br />
	Call doc.ComputeWithForm(False, False)<br />
	Call doc.save(True, True)<br />
	Msgbox &#8220;Your (HNRGMAIL) Location Connection Document was Created&#8221;</p>
<p>	Set db = session.GetDatabase(&#8220;&#8221;, &#8220;names.nsf&#8221;)<br />
	Set doc = db.CreateDocument<br />
	doc.Type = &#8220;Connection&#8221;<br />
	doc.ConnectionType = &#8220;Network Dialup&#8221;<br />
	doc.Destination = &#8220;HNRGMAIL&#8221;<br />
	doc.LanPortName = &#8220;TCPIP, COM1, COM2, COM3, COM4&#8243;<br />
	doc.ConnectionLocation = &#8220;Home (Network Dialup)&#8221;<br />
	doc.OptionalNetworkAddress = &#8220;165.71.63.84&#8243;<br />
	doc.Form = &#8220;local&#8221;<br />
	Call doc.ComputeWithForm(False, False)<br />
	Call doc.save(True, True)<br />
	Msgbox &#8220;Your (Home Dial-up) Connection Document was Created&#8221;</p>
<p>	Set session = New NotesSession<br />
	Set dbNAB = session.GetDatabase(&#8220;&#8221;, &#8220;names.nsf&#8221;)<br />
	Set viewLocations = dbNAB.GetView(&#8220;Locations&#8221;)<br />
	Set vec = viewLocations.AllEntries<br />
	For k = 1 To vec.Count<br />
		Set ve = vec.GetNthEntry(k)<br />
		Set docLocation = ve.Document<br />
		Select Case docLocation.Name(0) = &#8220;HNRGMAIL&#8221;<br />
		doc.name = &#8220;HNRGMAIL&#8221;<br />
		Case &#8220;HNRGMAIL&#8221;<br />
			docLocation.ReplicationEnabled = &#8220;1&#8243;<br />
			docLocation.ReplicateImmediate = &#8220;0&#8243;<br />
			docLocation.ReplicateAtStart = &#8220;0&#8243;<br />
			docLocation.PromptAtStart = &#8220;0&#8243;<br />
			docLocation.Schedule = &#8220;12:01:00 AM &#8211; 11:59:00 PM&#8221;<br />
			docLocation.Intervals = “4”<br />
			docLocation.Enabled = &#8220;1&#8243;<br />
			docLocation.ReplicateAtEnd = &#8220;0&#8243;<br />
			Set item = docLocation.ReplaceItemValue(&#8220;WebRetriever&#8221;, &#8220;2&#8243;) &#8216;from the test<br />
			docLocation.WeekDays = Null<br />
			For q = 1 To 7<br />
				If (docLocation.HasItem(&#8220;WeekDays&#8221;)) Then<br />
					Set item = docLocation.GetFirstItem(&#8220;WeekDays&#8221;)<br />
					item.AppendtoTextList Cstr(q)<br />
				Else<br />
					docLocation.WeekDays = Cstr(q)<br />
				End If<br />
			Next</p>
<p>		Case &#8220;HNRGMAIL”<br />
			docLocation.ReplicationEnabled = &#8220;1&#8243;<br />
			docLocation.ReplicateImmediate = &#8220;0&#8243;<br />
			docLocation.ReplicateAtStart = &#8220;0&#8243;<br />
			docLocation.PromptAtStart = &#8220;0&#8243;<br />
			docLocation.Schedule = &#8220;12:01:00 AM – 11:59:00 PM&#8221;<br />
			docLocastion.Intervals= “4”<br />
			docLocation.Enabled = &#8220;1&#8243;<br />
			docLocation.ReplicateAtEnd = &#8220;0&#8243;<br />
			Set item = docLocation.ReplaceItemValue(&#8220;WebRetriever&#8221;, &#8220;2&#8243;) &#8216;from the test<br />
			docLocation.WeekDays = Null<br />
			For q = 1 To 7<br />
				If (docLocation.HasItem(&#8220;WeekDays&#8221;)) Then<br />
					Set item = docLocation.GetFirstItem(&#8220;WeekDays&#8221;)<br />
					item.AppendtoTextList Cstr(q)<br />
				Else<br />
					docLocation.WeekDays = Cstr(q)<br />
				End If<br />
			Next</p>
<p>		Case &#8220;Home (Network Dialup)&#8221;<br />
			docLocation.ReplicationEnabled = &#8220;0&#8243;<br />
			docLocation.ReplicateImmediate = &#8220;0&#8243;<br />
			docLocation.ReplicateAtStart = &#8220;0&#8243;<br />
			docLocation.PromptAtStart = &#8220;0&#8243;<br />
			docLocation.Schedule = &#8220;08:30:00 AM &#8211; 10:00:00 PM&#8221;<br />
			docLocation.Enabled = &#8220;1&#8243;<br />
			docLocation.Interval = &#8220;0&#8243;<br />
			docLocation.ReplicateAtEnd = &#8220;0&#8243;<br />
			Set item = docLocation.ReplaceItemValue(&#8220;WebRetriever&#8221;, &#8220;2&#8243;) &#8216;from the test<br />
			docLocation.WeekDays = Null<br />
			For q = 1 To 7<br />
				If (docLocation.HasItem(&#8220;WeekDays&#8221;)) Then<br />
					Set item = docLocation.GetFirstItem(&#8220;WeekDays&#8221;)<br />
					item.AppendtoTextList Cstr(q)<br />
				Else<br />
					docLocation.WeekDays = Cstr(q)<br />
				End If<br />
			Next			</p>
<p>			Call docLocation.Save(True, False)<br />
		Case &#8220;Home (Notes Direct Dialup)&#8221;<br />
			docLocation.RemovePermanently(True)<br />
		Case &#8220;Island (Disconnected)&#8221;<br />
			docLocation.RemovePermanently(True)<br />
		Case &#8220;Travel (Notes Direct Dialup)&#8221;<br />
			docLocation.RemovePermanently(True)<br />
		Case “Office”<br />
			docLocation.RemovePermanently(True)<br />
		Case &#8220;Internet&#8221;<br />
			docLocation.RemovePermanently(True)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bfoster27</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rename-notes-location-document/#comment-54036</link>
		<dc:creator>bfoster27</dc:creator>
		<pubDate>Thu, 19 Jun 2008 13:40:00 +0000</pubDate>
		<guid isPermaLink="false">#comment-54036</guid>
		<description><![CDATA[Could you be more specific? as to what you mean by: &quot;See below&quot;
--------------------------------------------------------------------------------------------
Then just change its Name field.

If doc.Name(0) = “Offiice” then ‘ the sub-sero reference is needed here
doc.name = “My Company” ‘ the sub-zero reference cannot be used here
----------------------------------------------------------------------------------------------------

I don&#039;t get what your refering to.]]></description>
		<content:encoded><![CDATA[<p>Could you be more specific? as to what you mean by: &#8220;See below&#8221;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Then just change its Name field.</p>
<p>If doc.Name(0) = “Offiice” then ‘ the sub-sero reference is needed here<br />
doc.name = “My Company” ‘ the sub-zero reference cannot be used here<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>I don&#8217;t get what your refering to.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brooklynegg</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/rename-notes-location-document/#comment-53747</link>
		<dc:creator>brooklynegg</dc:creator>
		<pubDate>Thu, 05 Jun 2008 14:57:59 +0000</pubDate>
		<guid isPermaLink="false">#comment-53747</guid>
		<description><![CDATA[If you have script to delete the others, you should be able to test for the document that you want to rename. Then just change its Name field.

If doc.Name(0) = &quot;Offiice&quot; then &#039; the sub-sero reference is needed here
   doc.name = &quot;My Company&quot; &#039; the sub-zero reference cannot be used here.
End if]]></description>
		<content:encoded><![CDATA[<p>If you have script to delete the others, you should be able to test for the document that you want to rename. Then just change its Name field.</p>
<p>If doc.Name(0) = &#8220;Offiice&#8221; then &#8216; the sub-sero reference is needed here<br />
   doc.name = &#8220;My Company&#8221; &#8216; the sub-zero reference cannot be used here.<br />
End if</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.011 seconds using memcached
Object Caching 366/369 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-06-19 11:25:45 -->