<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://myipeople.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>MEDITECH Report Writer</title><link>http://myipeople.com/forums/43/ShowForum.aspx</link><description>Post questions, tips and tricks about the MEDITECH Report Writer. Open to everyone.</description><dc:language>en</dc:language><generator>CommunityServer 2.1 (Build: 60809.935)</generator><item><title>Using the PRE Field Attribute on NPR Report Writer Screens</title><link>http://myipeople.com/forums/thread/502.aspx</link><pubDate>Fri, 03 Aug 2007 15:18:32 GMT</pubDate><guid isPermaLink="false">858269fb-c1a4-4a80-9dbd-7a3c21d8108f:502</guid><dc:creator>Brian</dc:creator><slash:comments>0</slash:comments><comments>http://myipeople.com/forums/thread/502.aspx</comments><wfw:commentRss>http://myipeople.com/forums/commentrss.aspx?SectionID=43&amp;PostID=502</wfw:commentRss><description>&lt;p&gt;The PRE Field Checks occur before the FCL Field Checks.&amp;nbsp; They are execute after the end-user enters a non-printable &lt;br /&gt;character.&amp;nbsp; Unlike FCLs, they execute regardless of whether or not the end-user entered in a new non-nil value.&lt;/p&gt;&lt;p&gt;Here is an example (MAGIC) that converts whatever the end-user enters from lowercase to uppercase:&amp;nbsp;&amp;nbsp; PRE1=A~$L.TO.U^A&lt;/p&gt;&lt;p&gt;Here is the same example but for C/S:&amp;nbsp;&amp;nbsp; &lt;a href="mailto:PRE1=A@Trl2u^A"&gt;PRE1=A@Trl2u^A&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Here is an example for MAGIC that automatically exits a screen if the end-user does not enter in any value into a field:&lt;/p&gt;&lt;p&gt;&lt;a href="mailto:PRE1=IF{@Not(A"&gt;PRE1=IF{@Not(A&lt;/a&gt;) 231^/Z^t}&lt;/p&gt;&lt;p&gt;Here is that sample example for C/S:&amp;nbsp;&amp;nbsp; &lt;a href="mailto:PRE1=IF{@Not(A"&gt;PRE1=IF{@Not(A&lt;/a&gt;) 27^/Z,1^/(.S).SKIP.EXIT}&lt;/p&gt;&lt;p&gt;This example will work for both MAGIC and C/S.&amp;nbsp; It pops up the exit prompt if no value is entered:&amp;nbsp;&amp;nbsp; &lt;a href="mailto:PRE1=IF{@Not(A"&gt;PRE1=IF{@Not(A&lt;/a&gt;) 27^/Z}&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>