<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Converting bytes to kB, MB, etc.</title><link>https://www.infopathdev.com:443/forums/thread/57518.aspx</link><pubDate>Mon, 02 Aug 2010 09:39:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57518</guid><dc:creator>Michael089</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57518.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=57518</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Jimmy, &lt;/p&gt;&lt;p&gt;&amp;nbsp;the values come from an XML file - some values (such as the file size) are already in the XML - other values should be edited by the user via InfoPath. I don&amp;#39;t think I can do this with a rule, since as far as I understand, a rule is executed as soon as the users edits a field (I&amp;#39;m pretty new to InfoPath - so I don&amp;#39;t know if that is really true).&amp;nbsp; &lt;/p&gt;&lt;p&gt;I can also use a new field since the file size does not need to be updated or changed - but I still have the problem, that I need to do the following steps:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;check the file size (= &amp;gt;1024 or &amp;gt;1024*1024 ...)&lt;/li&gt;&lt;li&gt;divide the file size by 1024 or 1024*1024 ...&lt;/li&gt;&lt;li&gt;show the nicely converted figure (kB, MB, GB ..) in the new field&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;Previously, I used XSLT to display the XML data in a browser - there this was simple since a could use conditional statements and mathematical operations on the XML data!&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Regards, &lt;/p&gt;&lt;p&gt;&amp;nbsp;Michael&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Converting bytes to kB, MB, etc.</title><link>https://www.infopathdev.com:443/forums/thread/57486.aspx</link><pubDate>Fri, 30 Jul 2010 15:46:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57486</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57486.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=57486</wfw:commentRss><description>&lt;p&gt;Where is the value coming from?&amp;nbsp; Is it manually entered by a user?&amp;nbsp; Copied from somewhere?&amp;nbsp; You should most likely be able to set up a rule with a set of conditions to overwrite the field&amp;#39;s own value or (probably better) set an other field&amp;#39;s value with the number of KiB, MiB, GiB, TiB, etc.&lt;/p&gt;</description></item><item><title>Converting bytes to kB, MB, etc.</title><link>https://www.infopathdev.com:443/forums/thread/57476.aspx</link><pubDate>Fri, 30 Jul 2010 12:17:22 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57476</guid><dc:creator>Michael089</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57476.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=57476</wfw:commentRss><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;ve a form with a field which shows the size of a file in bytes. This is a regular textbox with an integer value. Unfortunately, this can be quite confusing when file are large. Therefore I want to display (!) the corresponding kB, MB, GB value for the file in this textbox instead of the byte value, if the file is larger than 1024, (1024*1024), etc. bytes! If possible, I&amp;#39;d like to do this in the same textbox - if not an expression box would be ok as well! I&amp;#39;ve no idea how to do this - I tried it with conditional formatting, but I did not come to a good solution.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Anyone any ideas? Thanks, &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Michael &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>