﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Work with BO in ReadOnly Mode ?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Mon, 14 Sep 2026 21:02:51 GMT</lastBuildDate><ttl>20</ttl><item><title>Work with BO in ReadOnly Mode ?</title><link>http://forum.strataframe.net/FindPost22412.aspx</link><description>Hello&lt;br&gt;
&lt;br&gt;
I use some BO's only for displaying Data. These BO's are Bound to a DevExpress.Grid&lt;br&gt;
&lt;br&gt;
Grid is in readonly mode.&lt;br&gt;
&lt;br&gt;
When i navigate through the Grid and then Close form BO ask for save data.&lt;br&gt;
&lt;br&gt;
Is there as way to tell BO it should ignore all. i mean something like a READ_Only flag.&lt;br&gt;
&lt;br&gt;
thanks&lt;br&gt;
&lt;br&gt;
Rainer</description><pubDate>Wed, 18 Mar 2009 18:26:34 GMT</pubDate><dc:creator>Rainer Kempf, RK</dc:creator></item><item><title>RE: Work with BO in ReadOnly Mode ?</title><link>http://forum.strataframe.net/FindPost22446.aspx</link><description>One likely reason would be that the field will be filled by a trigger and never any other way.  You could also use this with a calculated field in SQL.&lt;br&gt;
&lt;br&gt;
The reason to use this instead of the Exclude properties would be to strongly enforce the readonly nature.  You don't have to remember to set the exclude properties, nobody can override those values, etc.</description><pubDate>Wed, 18 Mar 2009 18:26:34 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Work with BO in ReadOnly Mode ?</title><link>http://forum.strataframe.net/FindPost22445.aspx</link><description>So SF will exclude the field prop from the Update statement on a save ?  &lt;br&gt;
&lt;br&gt;
Anybody have a real-world example of why you would use that and is it effectively the same as adding the field to the ExcludefromUpdate collection in the BO?&lt;br&gt;
&lt;br&gt;</description><pubDate>Wed, 18 Mar 2009 16:53:58 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Work with BO in ReadOnly Mode ?</title><link>http://forum.strataframe.net/FindPost22444.aspx</link><description>I believe the BO mapper just serializes the field as a readonly property (no setter).  The field would be bindable, so you could bind it to a control in order to view the data, but if you attempted to set the value, you'd get an error.</description><pubDate>Wed, 18 Mar 2009 15:52:51 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Work with BO in ReadOnly Mode ?</title><link>http://forum.strataframe.net/FindPost22443.aspx</link><description>There is also an option in BO mapper to set a column 'read only' though I don't know its implications.  Anybody?&lt;br&gt;</description><pubDate>Wed, 18 Mar 2009 14:17:11 GMT</pubDate><dc:creator>Charles R Hankey</dc:creator></item><item><title>RE: Work with BO in ReadOnly Mode ?</title><link>http://forum.strataframe.net/FindPost22432.aspx</link><description>Hi Reiner, &lt;P&gt;Since you want to&amp;nbsp;treat the data in the BO as ReadOnly, I believe that setting the property "AutoShowSaveChangesMessage" will simply not show the save confirmation message, but internally it may be saving the data back, I am not sure this is what is happening, but if that is the case you may end up with unwanted saved data.&lt;/P&gt;&lt;P&gt;Check out the BO properties SetDirtyOnEdit and ManageUIReadOnlyState&amp;nbsp;and play with them, since I believe that setting these property to False may prevent the BO to become Dirty and will not trigger any saving.</description><pubDate>Wed, 18 Mar 2009 08:48:58 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: Work with BO in ReadOnly Mode ?</title><link>http://forum.strataframe.net/FindPost22414.aspx</link><description>Hi Phillip&lt;br&gt;
&lt;br&gt;
Works , Super&lt;br&gt;
&lt;br&gt;
Thank you&lt;br&gt;
&lt;br&gt;
Rainer</description><pubDate>Wed, 18 Mar 2009 04:22:21 GMT</pubDate><dc:creator>Rainer Kempf, RK</dc:creator></item><item><title>RE: Work with BO in ReadOnly Mode ?</title><link>http://forum.strataframe.net/FindPost22413.aspx</link><description>Hi Rainer,&lt;/P&gt;&lt;P&gt;try setting the "AutoShowSaveChangesMessage"-Property on the Form to false. &lt;/P&gt;&lt;P&gt;this should prevent it to show the save changes confirmation message.</description><pubDate>Wed, 18 Mar 2009 03:58:21 GMT</pubDate><dc:creator>Philipp Guntermann</dc:creator></item></channel></rss>