<?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 BFI FIeld Attribute on NPR Report Writer Screens (MAGIC and C/S)</title><link>http://myipeople.com/forums/thread/501.aspx</link><pubDate>Fri, 03 Aug 2007 13:01:23 GMT</pubDate><guid isPermaLink="false">858269fb-c1a4-4a80-9dbd-7a3c21d8108f:501</guid><dc:creator>Brian</dc:creator><slash:comments>0</slash:comments><comments>http://myipeople.com/forums/thread/501.aspx</comments><wfw:commentRss>http://myipeople.com/forums/commentrss.aspx?SectionID=43&amp;PostID=501</wfw:commentRss><description>&lt;p&gt;BFI stands for Before Input.&amp;nbsp; BFI attributes can come in pairs, just like FCL attributes.&amp;nbsp; They perform checks after the IFE attribute has resulted in a non-nil value and after the DFT2 attribute has been set up, but before the end-user has entered in anything.&amp;nbsp; &lt;/p&gt;&lt;p&gt;In this example, assume your report has a Select Field called &amp;#39;date&amp;#39; that accepts a range of dates using the GE and LE operators.&amp;nbsp; The beginning date for the GE operator is stored in b.date, and the ending date for the LE operator is stored in e.date.&amp;nbsp; Assume the end-user enters in the dates incorrectly: b.date is after e.date.&amp;nbsp; If your report has another Select Field that comes after the &amp;#39;date&amp;#39; Select Field, you can use a BFI attribute on the third Select Field to check for the incorrect dates and then redisplay them correctly:&lt;/p&gt;&lt;p&gt;1) For your report, you will need to set up a macro called &amp;#39;check&amp;#39; with the following code:&lt;/p&gt;&lt;p&gt;b.date^TEMP,&lt;br /&gt;e.date^b.date,&lt;br /&gt;TEMP^e.date,&lt;br /&gt;@Display(b.date),&lt;br /&gt;@Display(e.date),&lt;br /&gt;&amp;quot;&amp;quot;;&lt;/p&gt;&lt;p&gt;2) Your BFI attributes should appear like this.&amp;nbsp; You will need to replace DPM with your Report DPM and report with the name of your report:&lt;/p&gt;&lt;p&gt;BFI1=b.date&amp;gt;e.date&lt;br /&gt;BFI1A=%DPM.zcus.report.M.check(&amp;quot;&amp;quot;)&lt;/p&gt;&lt;p&gt;Please NOTE: @Display is an NPR programming Macro that displays a value for a field in the position of the field at the time the NPR Report Macro is translated.&amp;nbsp; If your field is moved around on your screen, you will need to retranslate this macro so that the @Display programming Macro displays the value at the new position.&lt;/p&gt;</description></item></channel></rss>