<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/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>how to use java methods in appian</title><link>https://community.appian.com/discussions/f/user-interface/25837/how-to-use-java-methods-in-appian</link><description>I have to display the disk space used by the documents in an application in interface. 
 I found this java method public java.lang.Long getMegaBytesUsed() in docs.appian.com 
 Can anyone tell me how to use this java method in Appian to get disk space</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: how to use java methods in appian</title><link>https://community.appian.com/thread/101049?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2022 05:16:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:337d6011-a17b-407e-86fe-83ec830087f8</guid><dc:creator>p2005</dc:creator><description>&lt;p&gt;Thank you Stefan.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll try to use this approach&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use java methods in appian</title><link>https://community.appian.com/thread/100993?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2022 13:01:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:46e01514-4255-4e65-bb4f-7e80b3e5fadc</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Why is that necessary?&lt;/p&gt;
&lt;p&gt;You have options here. First, just iterate on all the document and sum it up.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;sum(
  a!foreach(
    items: folder(&amp;lt;YOUR_FOLDER&amp;gt;, &amp;quot;documentChildren&amp;quot;),
    expression: document(fv!item, &amp;quot;size&amp;quot;)
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Or, store some meta data to the database and do that aggregation over there.&lt;/p&gt;
&lt;p&gt;But even more important, check out the excellent documentation&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/22.3/Appian_Functions.html"&gt;https://docs.appian.com/suite/help/22.3/Appian_Functions.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/22.3/Expressions.html"&gt;https://docs.appian.com/suite/help/22.3/Expressions.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/22.3/SAIL_Recipes.html"&gt;docs.appian.com/.../SAIL_Recipes.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use java methods in appian</title><link>https://community.appian.com/thread/100991?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2022 12:28:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8905ce3c-1f1a-4ad7-a536-42d6535bdc0b</guid><dc:creator>p2005</dc:creator><description>&lt;p&gt;As part of the application I&amp;#39;m working on, I want to display the how much disk space is used by all the documents present in the KC of the application.&lt;/p&gt;
&lt;p&gt;If it is one application I can use&amp;nbsp;&lt;span&gt;call document(&amp;lt;YOUR_DOCUMENT&amp;gt;, &amp;quot;size&amp;quot;).&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to use java methods in appian</title><link>https://community.appian.com/thread/100990?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2022 12:25:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8484e883-6aaf-4301-9fce-15ca7029c3b1</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;You cannot use any Java in normal Appian. You can write plugins in Java.&lt;/p&gt;
&lt;p&gt;Why do you need Java to display the size of a document? Just call document(&amp;lt;YOUR_DOCUMENT&amp;gt;, &amp;quot;size&amp;quot;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>