<?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: Edit Document Fields 5.1.0</title>
	<atom:link href="http://chadsmiley.com/chadsmiley/2005/07/edit-document-fields-5-1-0/feed/" rel="self" type="application/rss+xml" />
	<link>http://chadsmiley.com/chadsmiley/2005/07/edit-document-fields-5-1-0/</link>
	<description>Things about family, life, coding, and more</description>
	<lastBuildDate>Wed, 04 Apr 2012 15:06:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Chad Schelfhout</title>
		<link>http://chadsmiley.com/chadsmiley/2005/07/edit-document-fields-5-1-0/comment-page-/#comment-2451</link>
		<dc:creator>Chad Schelfhout</dc:creator>
		<pubDate>Thu, 23 Feb 2006 00:50:00 +0000</pubDate>
		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1317#comment-2451</guid>
		<description>Thanks for the feed back Jim.  I was working on some additiona features my self this week. &lt;img src=&quot;http://www.chadsmiley.com/chadsmiley/home.nsf/emoticons/DLYH-5MZVLY/$FILE/smile.gif&quot;&gt;   I will consider your thoughts when making my changes. &lt;br /&gt; &lt;br /&gt;Just curious what you are looking to add.  Maybe everyone could benefit from it.&lt;img src=&quot;http://www.chadsmiley.com/chadsmiley/home.nsf/emoticons/DLYH-5MZVLS/$FILE/biggrin.gif&quot;&gt;   If you would like you can e-mail me.</description>
		<content:encoded><![CDATA[<p>Thanks for the feed back Jim.  I was working on some additiona features my self this week. <img src="http://www.chadsmiley.com/chadsmiley/home.nsf/emoticons/DLYH-5MZVLY/$FILE/smile.gif"/>   I will consider your thoughts when making my changes. </p>
<p>Just curious what you are looking to add.  Maybe everyone could benefit from it.<img src="http://www.chadsmiley.com/chadsmiley/home.nsf/emoticons/DLYH-5MZVLS/$FILE/biggrin.gif"/>   If you would like you can e-mail me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Fricker</title>
		<link>http://chadsmiley.com/chadsmiley/2005/07/edit-document-fields-5-1-0/comment-page-/#comment-2457</link>
		<dc:creator>Jim Fricker</dc:creator>
		<pubDate>Wed, 22 Feb 2006 10:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1317#comment-2457</guid>
		<description>I was not aware of the speed issue with literal lists so thanks for the education. I am all for performance optimisation when needed but not when it impares code readability for very minimal benefit. I would like to point out that neither of the examples I gave are inside the loop. But I am spliting hairs. You have every right to code this way. I am just trying to point out there are negative consequences of over using a &quot;faster but harder to read&quot; coding pattern, especially when the benefit is so small. The only reason I noticed it was because I was trying to add some new functionality to your code and all those @explodes were confusing the hell out of me so I ran out of time, lost patience, and gave up. Maybe I&#039;ll have another go soon.</description>
		<content:encoded><![CDATA[<p>I was not aware of the speed issue with literal lists so thanks for the education. I am all for performance optimisation when needed but not when it impares code readability for very minimal benefit. I would like to point out that neither of the examples I gave are inside the loop. But I am spliting hairs. You have every right to code this way. I am just trying to point out there are negative consequences of over using a &#8220;faster but harder to read&#8221; coding pattern, especially when the benefit is so small. The only reason I noticed it was because I was trying to add some new functionality to your code and all those @explodes were confusing the hell out of me so I ran out of time, lost patience, and gave up. Maybe I&#8217;ll have another go soon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad Schelfhout</title>
		<link>http://chadsmiley.com/chadsmiley/2005/07/edit-document-fields-5-1-0/comment-page-/#comment-2450</link>
		<dc:creator>Chad Schelfhout</dc:creator>
		<pubDate>Mon, 20 Feb 2006 12:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1317#comment-2450</guid>
		<description>Yes, I am aware of that feature, and I purposelly avoided it base on Damien&#039;s post on Formula&#039;s dirty secret (&lt;a href=&quot;http://damienkatz.net/2004/11/formula-languages-dirty-secret.html&quot; rel=&quot;nofollow&quot;&gt;http://damienkatz.net/2004/11/formula-languages-dirty-secret.html&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;I would agree that it would make the code easier to read, but my goal is to make this to run as fast as possible since it can run over many documents.  Thanks for the suggestion and the spelling correction.&lt;img src=&quot;http://www.chadsmiley.com/chadsmiley/home.nsf/emoticons/DLYH-5MZVLY/$FILE/smile.gif&quot;&gt; </description>
		<content:encoded><![CDATA[<p>Yes, I am aware of that feature, and I purposelly avoided it base on Damien&#8217;s post on Formula&#8217;s dirty secret (<a href="http://damienkatz.net/2004/11/formula-languages-dirty-secret.html" rel="nofollow">http://damienkatz.net/2004/11/formula-languages-dirty-secret.html</a>).</p>
<p>I would agree that it would make the code easier to read, but my goal is to make this to run as fast as possible since it can run over many documents.  Thanks for the suggestion and the spelling correction.<img src="http://www.chadsmiley.com/chadsmiley/home.nsf/emoticons/DLYH-5MZVLY/$FILE/smile.gif"/></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Fricker</title>
		<link>http://chadsmiley.com/chadsmiley/2005/07/edit-document-fields-5-1-0/comment-page-/#comment-2456</link>
		<dc:creator>Jim Fricker</dc:creator>
		<pubDate>Sun, 19 Feb 2006 15:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1317#comment-2456</guid>
		<description>Chad, &lt;br /&gt; &lt;br /&gt;I&#039;m not sure if you are aware but Notes formula has a notation for literal lists which applies to text, number and date lists. You just separate values with a colon. So instead of this code. &lt;br /&gt; &lt;br /&gt;@If( DataType = @Explode( &quot;Implode;Explode&quot;; ArraySeperator ); ...etc... &lt;br /&gt; &lt;br /&gt;You can write &lt;br /&gt; &lt;br /&gt;@If( DataType = &quot;Implode&quot; : &quot;Explode&quot; ; ...etc... &lt;br /&gt; &lt;br /&gt;Which is more compact and I think easier to read. &lt;br /&gt; &lt;br /&gt;This notation applies to many places in the code including the assignment of the DataTypesCombo variable right at the start. No need for the @Explode and all those $ characters. &lt;br /&gt; &lt;br /&gt;Jim &lt;br /&gt; &lt;br /&gt;PS. Minor point but seperator is spelt separator. &lt;br /&gt;</description>
		<content:encoded><![CDATA[<p>Chad, </p>
<p>I&#8217;m not sure if you are aware but Notes formula has a notation for literal lists which applies to text, number and date lists. You just separate values with a colon. So instead of this code. </p>
<p>@If( DataType = @Explode( &#8220;Implode;Explode&#8221;; ArraySeperator ); &#8230;etc&#8230; </p>
<p>You can write </p>
<p>@If( DataType = &#8220;Implode&#8221; : &#8220;Explode&#8221; ; &#8230;etc&#8230; </p>
<p>Which is more compact and I think easier to read. </p>
<p>This notation applies to many places in the code including the assignment of the DataTypesCombo variable right at the start. No need for the @Explode and all those $ characters. </p>
<p>Jim </p>
<p>PS. Minor point but seperator is spelt separator. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad Schelfhout</title>
		<link>http://chadsmiley.com/chadsmiley/2005/07/edit-document-fields-5-1-0/comment-page-/#comment-2449</link>
		<dc:creator>Chad Schelfhout</dc:creator>
		<pubDate>Tue, 22 Nov 2005 05:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1317#comment-2449</guid>
		<description>Joel- Yes a simple form would work, but what is nice about this code is it all encompassing.  All you have to do is add the code to a toolbar icon. There are other field editors out there that have some of these features.  Here is one the Joe Litton did using LS: &lt;a href=&quot;http://joelitton.net/A559B2/home.nsf/plinks/JLIN-6FS498&quot; rel=&quot;nofollow&quot;&gt;http://joelitton.net/A559B2/home.nsf/plinks/JLIN-6FS498&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Joel- Yes a simple form would work, but what is nice about this code is it all encompassing.  All you have to do is add the code to a toolbar icon. There are other field editors out there that have some of these features.  Here is one the Joe Litton did using LS: <a href="http://joelitton.net/A559B2/home.nsf/plinks/JLIN-6FS498" rel="nofollow">http://joelitton.net/A559B2/home.nsf/plinks/JLIN-6FS498</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joel Phelan</title>
		<link>http://chadsmiley.com/chadsmiley/2005/07/edit-document-fields-5-1-0/comment-page-/#comment-2458</link>
		<dc:creator>Joel Phelan</dc:creator>
		<pubDate>Tue, 22 Nov 2005 02:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1317#comment-2458</guid>
		<description>&quot;Field value is limited to 255 because of the @Prompt limitations&quot;&lt;br /&gt;&lt;br /&gt;On this one, could you not simply use a dialog box with a single field on it and return it to the calling form?  I have an application in which I am doing this with LS, but a formula implementation would not be difficult and would remove the limitation on characters.</description>
		<content:encoded><![CDATA[<p>&#8220;Field value is limited to 255 because of the @Prompt limitations&#8221;</p>
<p>On this one, could you not simply use a dialog box with a single field on it and return it to the calling form?  I have an application in which I am doing this with LS, but a formula implementation would not be difficult and would remove the limitation on characters.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad Schelfhout</title>
		<link>http://chadsmiley.com/chadsmiley/2005/07/edit-document-fields-5-1-0/comment-page-/#comment-2452</link>
		<dc:creator>Chad Schelfhout</dc:creator>
		<pubDate>Sat, 19 Nov 2005 03:47:00 +0000</pubDate>
		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1317#comment-2452</guid>
		<description>Thanks Jim for the suggestions. I will correct the address book selection statement that you mentioned.&lt;br /&gt;&lt;br /&gt;As for the adding of a basic formula option I have been pondering that for some time, just struggling on the implementation.  The execution of just a formula almost fits with the toolbar functions &lt;a href=&quot;http://www.chadsmiley.com/toolbarFunctions&quot; rel=&quot;nofollow&quot;&gt;http://www.chadsmiley.com/toolbarFunctions&lt;/a&gt; better, but it also edits fields.  So the dilemma.</description>
		<content:encoded><![CDATA[<p>Thanks Jim for the suggestions. I will correct the address book selection statement that you mentioned.</p>
<p>As for the adding of a basic formula option I have been pondering that for some time, just struggling on the implementation.  The execution of just a formula almost fits with the toolbar functions <a href="http://www.chadsmiley.com/toolbarFunctions" rel="nofollow">http://www.chadsmiley.com/toolbarFunctions</a> better, but it also edits fields.  So the dilemma.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Fricker</title>
		<link>http://chadsmiley.com/chadsmiley/2005/07/edit-document-fields-5-1-0/comment-page-/#comment-2455</link>
		<dc:creator>Jim Fricker</dc:creator>
		<pubDate>Wed, 16 Nov 2005 09:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1317#comment-2455</guid>
		<description>I often use the following very simple smarticon code to do updates to documents. &lt;br /&gt; &lt;br /&gt;@Eval(@Prompt([OkCancelEdit]; &quot;Formula Document Update&quot;; &quot;Please enter the formula to evaluate against the currently highlighted document&quot;; &quot;&quot;)) &lt;br /&gt; &lt;br /&gt;I can then enter things like this into the prompt box &lt;br /&gt; &lt;br /&gt;FIELD dateCreated := @Now; FIELD Creator := @Username; FIELD Subject := @ProperCase(Subject) + &quot; plus extra subject text&quot; &lt;br /&gt; &lt;br /&gt;Which allows multiple fields to be updated, with a lot of flexibility of how the field updates are done. Perhaps this could be another option for your code? In other words, allow the user to enter a formula without specifying a field name or field value, and let the user supplied formula do all the work.</description>
		<content:encoded><![CDATA[<p>I often use the following very simple smarticon code to do updates to documents. </p>
<p>@Eval(@Prompt([OkCancelEdit]; &#8220;Formula Document Update&#8221;; &#8220;Please enter the formula to evaluate against the currently highlighted document&#8221;; &#8220;&#8221;)) </p>
<p>I can then enter things like this into the prompt box </p>
<p>FIELD dateCreated := @Now; FIELD Creator := @Username; FIELD Subject := @ProperCase(Subject) + &#8221; plus extra subject text&#8221; </p>
<p>Which allows multiple fields to be updated, with a lot of flexibility of how the field updates are done. Perhaps this could be another option for your code? In other words, allow the user to enter a formula without specifying a field name or field value, and let the user supplied formula do all the work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim Fricker</title>
		<link>http://chadsmiley.com/chadsmiley/2005/07/edit-document-fields-5-1-0/comment-page-/#comment-2454</link>
		<dc:creator>Jim Fricker</dc:creator>
		<pubDate>Mon, 14 Nov 2005 12:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1317#comment-2454</guid>
		<description>Incredible piece of code, and I learnt a lot from it. But there was one bit I did not understand. If a name multi value, or common name multi value or abbreviated name multi value option is selected then the user is prompted with @PickList([Name]). As far as I am aware this returns a multivalued list rather than a delimited string. In other words, it does not need to be exploded to generate a list as it is already a list. This seems to be taken into account for the name multi value option because the formula for this option does not include an explode. But for the common and abbreviated name multi value options the value is exploded on the colon character which seems strange. &lt;br /&gt; &lt;br /&gt;I removed the explode from these two lines with no apparent change in the way it works &lt;br /&gt; &lt;br /&gt;&quot;CommonName Multi Value&#124;@Name( [CN]; RawValue )$&quot; &lt;br /&gt; &lt;br /&gt;&quot;Abbreviate Name Multi Value&#124;@Name( [Abbreviate]; RawValue )$&quot; &lt;br /&gt; &lt;br /&gt;Great piece of work Chad!! Many thanks for sharing this.</description>
		<content:encoded><![CDATA[<p>Incredible piece of code, and I learnt a lot from it. But there was one bit I did not understand. If a name multi value, or common name multi value or abbreviated name multi value option is selected then the user is prompted with @PickList([Name]). As far as I am aware this returns a multivalued list rather than a delimited string. In other words, it does not need to be exploded to generate a list as it is already a list. This seems to be taken into account for the name multi value option because the formula for this option does not include an explode. But for the common and abbreviated name multi value options the value is exploded on the colon character which seems strange. </p>
<p>I removed the explode from these two lines with no apparent change in the way it works </p>
<p>&#8220;CommonName Multi Value|@Name( [CN]; RawValue )$&#8221; </p>
<p>&#8220;Abbreviate Name Multi Value|@Name( [Abbreviate]; RawValue )$&#8221; </p>
<p>Great piece of work Chad!! Many thanks for sharing this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chad Schelfhout</title>
		<link>http://chadsmiley.com/chadsmiley/2005/07/edit-document-fields-5-1-0/comment-page-/#comment-2448</link>
		<dc:creator>Chad Schelfhout</dc:creator>
		<pubDate>Tue, 06 Sep 2005 17:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://chadsmiley.com.previewdns.com/chadsmiley/?p=1317#comment-2448</guid>
		<description>David thanks for the feedback.  I wish I could set the field type to Readers, Authors, or Names but Formula does not allow this.  &lt;br /&gt;&lt;br /&gt;I use the current contents of a field all the time.  My favorite is to select multiple documents then move to the document that has the value I want to use then run the macro.  This removes any typing mistakes and is less typing.&lt;br /&gt;&lt;br /&gt;I did find one feature that I don&#039;t have and that is the check to see if a document is selected.  I like that.  I will also see if any more stream lining can be done with the dialog boxes.&lt;br /&gt;</description>
		<content:encoded><![CDATA[<p>David thanks for the feedback.  I wish I could set the field type to Readers, Authors, or Names but Formula does not allow this.  </p>
<p>I use the current contents of a field all the time.  My favorite is to select multiple documents then move to the document that has the value I want to use then run the macro.  This removes any typing mistakes and is less typing.</p>
<p>I did find one feature that I don&#8217;t have and that is the check to see if a document is selected.  I like that.  I will also see if any more stream lining can be done with the dialog boxes.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: www.chadsmiley.com @ 2012-05-17 12:04:36 -->
