<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://communities.bentley.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Example Default Values</title><link>https://communities.bentley.com/products/geotechnical1/w/openground-wiki/53837/example-default-values</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Example Default Values</title><link>https://communities.bentley.com/products/geotechnical1/w/openground-wiki/53837/example-default-values</link><pubDate>Mon, 22 Mar 2021 14:47:45 GMT</pubDate><guid isPermaLink="false">6dad98f5-dbc9-4c4d-a9ba-e9da8dc6aa8e:d53fdfc9-e4ff-492e-a663-88a85378efe5</guid><dc:creator>Stephen Evason</dc:creator><comments>https://communities.bentley.com/products/geotechnical1/w/openground-wiki/53837/example-default-values#comments</comments><description>Current Revision posted to OpenGround Wiki by Stephen Evason on 3/22/2021 2:47:45 PM&lt;br /&gt;
&lt;p&gt;The list below shows some of the capabilities of the expressions for default values to Headers in OpenGround Cloud Data Collector&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;table style="width:100%;"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Expression&lt;/td&gt;
&lt;td&gt;Explaination&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&amp;#39;B&amp;#39;&lt;/td&gt;
&lt;td&gt;Set the default value to B &amp;ndash; works well for pick list items.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Today()&lt;/td&gt;
&lt;td&gt;Today&amp;rsquo;s Date with time set to midnight for a date time field&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Now()&lt;/td&gt;
&lt;td&gt;Today&amp;rsquo;s Date and Time.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Count()+1&lt;/td&gt;
&lt;td&gt;Number of records so far for this parent + 1.&amp;nbsp; Useful for sample reference numbers etc&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;min(&amp;#39;DepthTop&amp;#39;)&lt;/td&gt;
&lt;td&gt;Minimum value of previous records for this parent.&amp;nbsp; Header name is case sensitive and must be enclosed in single quotes.&amp;nbsp; Records are ordered by the Header by default.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;max(&amp;#39;DepthBase&amp;#39;)&lt;/td&gt;
&lt;td&gt;Maximum value of previous records for this parent.&amp;nbsp; Header name is case sensitive and must be enclosed in single quotes.&amp;nbsp; Records are ordered by the Header by default.&amp;nbsp; Works well to set the top of a layer equal to the base of the last layer.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;previous(&amp;#39;DepthBase&amp;#39;)&lt;/td&gt;
&lt;td&gt;The previous value used for this when the records are ordered by depth fields.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;[LocationDetails.DateStart]&lt;/td&gt;
&lt;td&gt;Inserts a value from the parent record as the default.&amp;nbsp; The Start Date will be the default value in this example.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;previous(&amp;#39;DepthBase&amp;#39;, &amp;#39;DepthTop&amp;#39;)&lt;/td&gt;
&lt;td&gt;The previous value used for this when the records are ordered by DepthTop.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>