Show Field But Do Not Allow Editinghttp://forums.asp.net/t/1375123.aspx/1?Show+Field+But+Do+Not+Allow+EditingTue, 04 Jun 2013 01:01:44 -040013751232887971http://forums.asp.net/p/1375123/2887971.aspx/1?Show+Field+But+Do+Not+Allow+EditingShow Field But Do Not Allow Editing <p>Is it possible to make a field &quot;un-editable&quot; without having to hide it using Dynamic Data?&nbsp; I would like a field to be displayed to the user, but I don't want them to be able to edit it.&nbsp; Is there something I can do in the Custom&nbsp; Edit.aspx or Partial Class for that table?</p> <p>Thanks for any advice.</p> 2009-01-23T18:50:06-05:002888006http://forums.asp.net/p/1375123/2888006.aspx/1?Re+Show+Field+But+Do+Not+Allow+EditingRe: Show Field But Do Not Allow Editing Linq to SQL hides PK, but you can display them with&nbsp;&nbsp;<font size="1">[</font><font color="#2b91af" size="1"><font color="#2b91af" size="1">ScaffoldColumn</font></font><font size="1">(</font><font color="#0000ff" size="1"><font color="#0000ff" size="1">true</font></font><font size="1">)]</font><font size="1"> <p></font>If you annotate the entity partial class to display the PK and edit an entity, the PK is displayed read-only.&nbsp; That looks like the behavior you want. I'll find out how Dynamic Data knows to make the PK R/O.</p> <p>One approach would be to copy DynamicData\FieldTemplates\Text.ascx to TextRO_Edit, then annotate you partial class with a UIHInt to use TextRO. On edit, you wouldn't get the edit text box, but the literal.</p> <p>Stephen also has a tutorial on this. See read only fields <a class="" title="2519496134943230030" name="2519496134943230030"> </a><a href="http://csharpbits.notaclue.net/2008/05/dynamicdata-generate-columnsrows-using.html"><font color="#5403fa">DynamicData - Generate Columns/Rows (using IAutoFieldGenerator) - Part 5</font></a>&nbsp;listing 5 show a DynamicReadOnlyFiled.</p> 2009-01-23T19:12:23-05:002888103http://forums.asp.net/p/1375123/2888103.aspx/1?Re+Show+Field+But+Do+Not+Allow+EditingRe: Show Field But Do Not Allow Editing <p>See this post here&nbsp;<a href="http://forums.asp.net/t/1367541.aspx">noteditable attribute?</a>&nbsp;and my answer there I'm going to blog that answer soon [:D]</p> <p>oo! here it is now <a name="1498010850596349197"></a><a href="http://csharpbits.notaclue.net/2009/01/making-field-read-only-via.html">Making a Field Read-Only via the ReadOnlyAttribute Dynamic Data</a>&nbsp;I said I blog it soon [:D]</p> 2009-01-23T20:16:21-05:002888108http://forums.asp.net/p/1375123/2888108.aspx/1?Re+Show+Field+But+Do+Not+Allow+EditingRe: Show Field But Do Not Allow Editing <p>You can easily mark a field as non-editable (aka readonly) by using a readonly attribute on it (i.e. <font size="2">[</font><font color="#2b91af" size="2">ReadOnly</font><font size="2">(</font><font color="#0000ff" size="2">true</font><font size="2">)])</font></p> <p><font size="2">David</p> </font> 2009-01-23T20:17:36-05:002888121http://forums.asp.net/p/1375123/2888121.aspx/1?Re+Show+Field+But+Do+Not+Allow+EditingRe: Show Field But Do Not Allow Editing <p>I think your idea on creating a TextRO_Edit user control would do the trick.&nbsp; The field I want displayed -&nbsp;but not editable is not a primary key, it is just a regular field the user would like to see.&nbsp; They just don't want it to be edited.</p> <p>Would you happen to know how to set the UIInt to use this TextRo user control in the partial class?&nbsp; I am using Dynamic Data Entity Framework with Visual Basic.&nbsp; My partial class for this table is shown below.&nbsp; Branch is the field I want to have displayed, but not editable. Thanks.</p> <p>&nbsp;</p> <font color="#0000ff" size="2"><font color="#0000ff" size="2"> <p>Imports</font></font><font size="2"> Microsoft.VisualBasic</p> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2"> <p>Imports</font></font><font size="2"> System.Web.DynamicData</p> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2"> <p>Imports</font></font><font size="2"> System.ComponentModel.DataAnnotations</p> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Namespace</font></font><font size="2"> TeamCapitalAssetsModel</font><font size="2"> <p>&lt;MetadataType(</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">GetType</font></font><font size="2">(CapitalAssetsMetaData))&gt; _</p> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Partial</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Public</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Class</font></font><font size="2"> CapitalAssets</font><font size="2"> <p></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">End</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Class</p> </font></font><font size="2"></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Public</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Class</font></font><font size="2"> CapitalAssetsMetaData</font><font size="2"> &lt;ScaffoldColumn(</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">False</font></font><font size="2">)&gt; _</font><font size="2"> <p></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Public</font></font><font size="2"> CapitalAssetID </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">As</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Object</p> </font></font><font size="2"></font><font size="2">&lt;ScaffoldColumn(</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">False</font></font><font size="2">)&gt; _</font><font size="2"> </font><font size="2"> <p></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Public</font></font><font size="2"> ManageEquipmentDescription </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">As</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Object</font></font></p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2"></font></font>&nbsp;</p> <p><font color="#0000ff">Public</font><font size="2"> Branch </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">As</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Object</font></font>&nbsp;</p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2">&nbsp;</p> </font></font><font size="2"></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">End</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Class</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2"> <p>End</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Namespace</p> </font></font> 2009-01-23T20:24:16-05:002888145http://forums.asp.net/p/1375123/2888145.aspx/1?Re+Show+Field+But+Do+Not+Allow+EditingRe: Show Field But Do Not Allow Editing <p>&nbsp;</p> <p>I just tested this with NW and it works fine.</p> <ol> <li>Copy Text.asc to Text_RO.asc </li><li>Annotate your partial class entity with UIHint.</li></ol> <p>Here is the C# version&nbsp; (VB to follow)</p> <pre class="prettyprint">[MetadataType(typeof(ProductMD))] public partial class Product { public class ProductMD { [ScaffoldColumn(false)] public object QuantityPerUnit { get; set; } // [ReadOnly(true)] [UIHint(&quot;Text_RO&quot;)] public object ProductName { get; set; } } }</pre>&nbsp; 2009-01-23T20:39:55-05:002888163http://forums.asp.net/p/1375123/2888163.aspx/1?Re+Show+Field+But+Do+Not+Allow+EditingRe: Show Field But Do Not Allow Editing <p>Here is the VB annotations. Tested and it works.&nbsp; Note: We will probably support the ReadOnly attribute in the next version. It's not currently supported.</p> <pre class="prettyprint">Imports System Imports System.Collections.Generic Imports System.Linq Imports System.Web Imports System.Web.DynamicData Imports System.ComponentModel.DataAnnotations Imports System.ComponentModel Imports System.Text.RegularExpressions &lt;MetadataType(GetType(ProductMD))&gt; _ Partial Public Class Product End Class Public Class ProductMD Private _QuantityPerUnit As Object &lt;ScaffoldColumn(False)&gt; _ Public Property QuantityPerUnit() As Object Get Return _QuantityPerUnit End Get Set(ByVal value As Object) _QuantityPerUnit = value End Set End Property Private _ProductName As Object ' [ReadOnly(true)] &lt;UIHint(&quot;Text_RO&quot;)&gt; _ Public Property ProductName() As Object Get Return _ProductName End Get Set(ByVal value As Object) _ProductName = value End Set End Property End Class</pre>&nbsp; 2009-01-23T20:54:36-05:002888187http://forums.asp.net/p/1375123/2888187.aspx/1?Re+Show+Field+But+Do+Not+Allow+EditingRe: Show Field But Do Not Allow Editing <p>I just tried the read-only suggestion and it does not work.&nbsp;&nbsp; I am trying the method above now and will post my results shortly.&nbsp; Thank you.</p> <font color="#0000ff" size="2"><font color="#0000ff" size="2"> <p>Imports</font></font><font size="2"> Microsoft.VisualBasic</p> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2"> <p>Imports</font></font><font size="2"> System.Web.DynamicData</p> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2"> <p>Imports</font></font><font size="2"> System.ComponentModel.DataAnnotations</p> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2"> <p>Imports</font></font><font size="2"> System.ComponentModel</p> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Namespace</font></font><font size="2"> TestModel</font><font size="2"> <p>&lt;MetadataType(</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">GetType</font></font><font size="2">(ManagePermissionMetaData))&gt; _</p> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Partial</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Public</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Class</font></font><font size="2"> ManagePermission</font><font size="2"> <p></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">End</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Class</p> </font></font><font size="2"></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Public</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Class</font></font><font size="2"> ManagePermissionMetaData</font><font size="2"> <p>&lt;ScaffoldColumn(</font><font color="#0000ff" size="2"><font color="#0000ff" size="2">False</font></font><font size="2">)&gt; _</p> <p></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Public</font></font><font size="2"> PermissionID </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">As</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Object</p> </font></font><font size="2"><strong>&lt;[ReadOnly](</strong></font><font color="#0000ff" size="2"><font color="#0000ff" size="2"><strong>True</strong></font></font><font size="2"><strong>)&gt; _</strong></font><font size="2"> <p></font><strong><font color="#0000ff" size="2"><font color="#0000ff" size="2">Public</font></font><font size="2"> Branch </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">As</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Object</p> </font></font></strong><font size="2"></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">End</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Class</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2"> <p>End</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">Namespace</p> </font></font> 2009-01-23T21:07:24-05:002888198http://forums.asp.net/p/1375123/2888198.aspx/1?Re+Show+Field+But+Do+Not+Allow+EditingRe: Show Field But Do Not Allow Editing <p>I am still allowed to update the data for this field.&nbsp; I am using Dynamic Data Entity Framework,, is that why it may not work?</p> 2009-01-23T21:15:10-05:002888209http://forums.asp.net/p/1375123/2888209.aspx/1?Re+Show+Field+But+Do+Not+Allow+EditingRe: Show Field But Do Not Allow Editing <p>I just tested with EF and it works fine. You are probably missing the namespace so you have a naked partial class. That's why I added the reality check - </p> <p>&nbsp;<pre class="prettyprint">&lt;ScaffoldColumn(False)&gt;_ Public Property QuantityPerUnit() As Object Get Return _QuantityPerUnit End Get Set(ByVal value As Object) _QuantityPerUnit = value End Set End Property</pre>&nbsp; </p> <p>if you see the QuantityPerUnit column, your partial class is naked and not working.</p> <p>&gt;&gt;I just tried the read-only suggestion and it does not work.&nbsp;</p> <p>Correct, that will be a new feature. It's not working right now.</p> 2009-01-23T21:30:06-05:002892887http://forums.asp.net/p/1375123/2892887.aspx/1?Re+Show+Field+But+Do+Not+Allow+EditingRe: Show Field But Do Not Allow Editing <p>Ricka6,</p> <p>I think I&nbsp;figured out my problem.&nbsp; When I originally created the Text_RO.ascx user control, I only created &quot;half&quot;.&nbsp; I needed to create both the text_RO.ascx AND Text_RO_Edit.ascx.&nbsp; I then had to make the Text_RO_Edit.ascx a literal just like the Text_RO.ascx.&nbsp; The two user controls work together it appears.</p> <p>Is this a correct assumption?</p> <p>Hopefully you will&nbsp;see this post and be able&nbsp;to confirm this question for me and then mark this post as resolved?&nbsp; This was from last Friday.</p> <p>&nbsp;Thanks for help.</p> 2009-01-26T18:28:47-05:002892919http://forums.asp.net/p/1375123/2892919.aspx/1?Re+Show+Field+But+Do+Not+Allow+EditingRe: Show Field But Do Not Allow Editing <p>Yes, that's why I originally suggested <strong><em>One approach would be to copy DynamicData\FieldTemplates\Text.ascx to TextRO_Edit</em></strong></p> <p>As when you copy the control, the code behind file is automatically copied too. </p> 2009-01-26T18:44:42-05:002892965http://forums.asp.net/p/1375123/2892965.aspx/1?Re+Show+Field+But+Do+Not+Allow+EditingRe: Show Field But Do Not Allow Editing <p>Yes, it was the fact that I did not include _edit.</p> <p>Thanks again for your help.</p> 2009-01-26T19:11:54-05:003620712http://forums.asp.net/p/1375123/3620712.aspx/1?Re+Show+Field+But+Do+Not+Allow+EditingRe: Show Field But Do Not Allow Editing <p></p> <blockquote><span class="icon-blockquote"></span> <h4>defyant_2004</h4> <p></p> <p>I just tried the read-only suggestion and it does not work.&nbsp;&nbsp; I am trying the method above now and will post my results shortly.&nbsp; Thank you.</p> <p><font size="2" color="#0000ff"><font size="2" color="#0000ff"></font></font></p> <p><font size="2" color="#0000ff"><font size="2" color="#0000ff">Imports</font></font><font size="2"> Microsoft.VisualBasic</font></p> <p><font size="2"></font><font size="2" color="#0000ff"><font size="2" color="#0000ff"></font></font></p> <p><font size="2" color="#0000ff"><font size="2" color="#0000ff">Imports</font></font><font size="2"> System.Web.DynamicData</font></p> <p><font size="2"></font><font size="2" color="#0000ff"><font size="2" color="#0000ff"></font></font></p> <p><font size="2" color="#0000ff"><font size="2" color="#0000ff">Imports</font></font><font size="2"> System.ComponentModel.DataAnnotations</font></p> <p><font size="2"></font><font size="2" color="#0000ff"><font size="2" color="#0000ff"></font></font></p> <p><font size="2" color="#0000ff"><font size="2" color="#0000ff">Imports</font></font><font size="2"> System.ComponentModel</font></p> <p><font size="2"></font><font size="2" color="#0000ff"><font size="2" color="#0000ff">Namespace</font></font><font size="2"> TestModel</font><font size="2"> </font></p> <p><font size="2">&lt;MetadataType(</font><font size="2" color="#0000ff"><font size="2" color="#0000ff">GetType</font></font><font size="2">(ManagePermissionMetaData))&gt; _</font></p> <p><font size="2"></font><font size="2" color="#0000ff"><font size="2" color="#0000ff">Partial</font></font><font size="2"> </font><font size="2" color="#0000ff"><font size="2" color="#0000ff">Public</font></font><font size="2"> </font><font size="2" color="#0000ff"><font size="2" color="#0000ff">Class</font></font><font size="2"> ManagePermission</font><font size="2"> </font></p> <p><font size="2"></font><font size="2" color="#0000ff"><font size="2" color="#0000ff">End</font></font><font size="2"> </font><font size="2" color="#0000ff"><font size="2" color="#0000ff">Class</font></font></p> <p><font size="2" color="#0000ff"><font size="2" color="#0000ff"></font></font><font size="2"></font><font size="2" color="#0000ff"><font size="2" color="#0000ff">Public</font></font><font size="2"> </font><font size="2" color="#0000ff"><font size="2" color="#0000ff">Class</font></font><font size="2"> ManagePermissionMetaData</font><font size="2"> </font></p> <p><font size="2">&lt;ScaffoldColumn(</font><font size="2" color="#0000ff"><font size="2" color="#0000ff">False</font></font><font size="2">)&gt; _</font></p> <p><font size="2"></font><font size="2" color="#0000ff"><font size="2" color="#0000ff">Public</font></font><font size="2"> PermissionID </font><font size="2" color="#0000ff"><font size="2" color="#0000ff">As</font></font><font size="2"> </font><font size="2" color="#0000ff"><font size="2" color="#0000ff">Object</font></font></p> <p><font size="2" color="#0000ff"><font size="2" color="#0000ff"></font></font><font size="2"><b>&lt;[ReadOnly](</b></font><font size="2" color="#0000ff"><font size="2" color="#0000ff"><b>True</b></font></font><font size="2"><b>)&gt; _</b></font><font size="2"> </font></p> <p><font size="2"></font><b><font size="2" color="#0000ff"><font size="2" color="#0000ff">Public</font></font><font size="2"> Branch </font><font size="2" color="#0000ff"><font size="2" color="#0000ff">As</font></font><font size="2"> </font><font size="2" color="#0000ff"><font size="2" color="#0000ff">Object</font></font></b></p> <p><b><font size="2" color="#0000ff"><font size="2" color="#0000ff"></font></font></b><font size="2"></font><font size="2" color="#0000ff"><font size="2" color="#0000ff">End</font></font><font size="2"> </font><font size="2" color="#0000ff"><font size="2" color="#0000ff">Class</font></font><font size="2" color="#0000ff"><font size="2" color="#0000ff"> </font></font></p> <p><font size="2" color="#0000ff"><font size="2" color="#0000ff">End</font></font><font size="2"> </font><font size="2" color="#0000ff"><font size="2" color="#0000ff">Namespace</font></font></p> <p><font size="2" color="#0000ff"><font size="2" color="#0000ff"></font></font></p> </blockquote> <p></p> <p>Hi defyant_2004, I tried the ReadOnly attribute and it works perfect. I think you should place the ReadOnly attribute on top of the property in the auto generated data class, not in your own custom class. This is the easiest way to get things done, but the only downside is we are modifying the auto gen class...<br> </p> 2010-01-15T23:59:40-05:003620826http://forums.asp.net/p/1375123/3620826.aspx/1?Re+Show+Field+But+Do+Not+Allow+EditingRe: Show Field But Do Not Allow Editing <p>Sorry too quickly to jump to conclusion. Actually the ReadOnly atttribute doesn't seem to work correctly, at least I can't get it to work correctly. It does shows the column with just text string and without textbox in edit and insert, but if you try to hit update it won't work, I guess when user hit the update link it tries to write to the ReadOnly field as well, despite user never change the value for that field (Because it's ReadOnly!). It still doen't work even after comment out the setter for that field in the auto gen class. </p> <p><br> </p> <p>Does anyone know how to get this to work? I am using 3.5 SP1, Linq to SQL<br> </p> <p><br> </p> 2010-01-16T02:27:20-05:003621129http://forums.asp.net/p/1375123/3621129.aspx/1?Re+Show+Field+But+Do+Not+Allow+EditingRe: Show Field But Do Not Allow Editing <p>Hi Zhili, have a look at these articles here&nbsp;:&nbsp;<a href="http://csharpbits.notaclue.net/2009/01/making-field-read-only-via.html">Making a Field Read-Only via the ReadOnlyAttribute Dynamic Data</a>&nbsp;and&nbsp;<a href="http://csharpbits.notaclue.net/2009/01/making-individual-tables-read-only.html">Making Individual Tables Read Only Dynamic Data</a></p> 2010-01-16T08:45:33-05:005413208http://forums.asp.net/p/1375123/5413208.aspx/1?Re+Show+Field+But+Do+Not+Allow+EditingRe: Show Field But Do Not Allow Editing <p>I know this is an old post but just want to update it with another solution in case it helps others.&nbsp;&nbsp;&nbsp;&nbsp;In place of&nbsp;the&nbsp; [<span face="Consolas" size="2" color="#2b91af" style="color:#2b91af; font-family:Consolas; font-size:small"><span face="Consolas" size="2" color="#2b91af" style="color:#2b91af; font-family:Consolas; font-size:small"><span face="Consolas" size="2" color="#2b91af" style="color:#2b91af; font-family:Consolas; font-size:small">ReadOnly</span></span></span><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"><span face="Consolas" size="2" style="font-family:Consolas; font-size:small">(</span></span><span face="Consolas" size="2" color="#0000ff" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" size="2" color="#0000ff" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" size="2" color="#0000ff" style="color:#0000ff; font-family:Consolas; font-size:small">true</span></span></span><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"><span face="Consolas" size="2" style="font-family:Consolas; font-size:small">)] attribute, you can use the [<span face="Consolas" size="2" color="#2b91af" style="color:#2b91af; font-family:Consolas; font-size:small"><span face="Consolas" size="2" color="#2b91af" style="color:#2b91af; font-family:Consolas; font-size:small"><span face="Consolas" size="2" color="#2b91af" style="color:#2b91af; font-family:Consolas; font-size:small">Editable</span></span></span><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"><span face="Consolas" size="2" style="font-family:Consolas; font-size:small">(</span></span><span face="Consolas" size="2" color="#0000ff" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" size="2" color="#0000ff" style="color:#0000ff; font-family:Consolas; font-size:small"><span face="Consolas" size="2" color="#0000ff" style="color:#0000ff; font-family:Consolas; font-size:small">false</span></span></span><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"><span face="Consolas" size="2" style="font-family:Consolas; font-size:small">)] attribute on the field you want to display but not allow edits on.&nbsp;&nbsp;&nbsp;If you annotate an Entity Reference (i.e. foreign key relationship) with the <span face="Consolas" size="2" color="#2b91af" style="color:#2b91af; font-family:Consolas; font-size:small"> <span face="Consolas" size="2" color="#2b91af" style="color:#2b91af; font-family:Consolas; font-size:small"><span face="Consolas" size="2" color="#2b91af" style="color:#2b91af; font-family:Consolas; font-size:small">ReadOnly </span></span></span>or <span face="Consolas" size="2" color="#2b91af" style="color:#2b91af; font-family:Consolas; font-size:small"> <span face="Consolas" size="2" color="#2b91af" style="color:#2b91af; font-family:Consolas; font-size:small"><span face="Consolas" size="2" color="#2b91af" style="color:#2b91af; font-family:Consolas; font-size:small">Editable</span></span></span><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"><span face="Consolas" size="2" style="font-family:Consolas; font-size:small"></span></span> attribute, the editable dropdown list on the Edit page gets replaced with a&nbsp;hyperlink.</span></span></span></span></p> 2013-06-04T01:01:44-04:00