<div dir="ltr">This is a bit more complicated - as it needs to be handled with Webservices too.</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">--</div><div dir="ltr"><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><a href="http://www.facebook.com/vtiger" style="color:rgb(0,0,204)" target="_blank">FB</a> I </span><a href="http://twitter.com/vtigercrm" style="color:rgb(0,0,204)" target="_blank">Twit</a> I <a href="https://www.linkedin.com/company/1270573?trk=tyah" style="color:rgb(0,0,204)" target="_blank">LIn</a> I <a href="https://blogs.vtiger.com" style="color:rgb(0,0,204)" target="_blank">Blog</a> I <a href="https://www.vtiger.com/" style="color:rgb(0,0,204)" target="_blank">Website</a></div></div></div></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On Wed, Jan 21, 2015 at 6:38 PM, Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 21/01/15 12:59, Uma S wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Alan,<br>
<br>
As display-type of field is deciding whether the field is enabled for<br>
edit in detail-view. As we can't do any changes regarding display-type<br>
it's better we overwrite api's related to make field editable, in module<br>
specific field.php and return value according to dependent fields on<br>
related field-value.<br>
<br>
For specific module you need to overwrite field model file.<br>
</blockquote>
<br></span>
Thanks Uma, but, and here is the real question... Once a Field model is instantiated, how can I get access to the current record model to test if this field should be editable or not.<br>
<br>
As I have said the only way I have seen so far is to pass information through three classes<br>
<br>
 {Detail,Edit}RecordStructure.<u></u>php->Block.php->Field.php<br>
<br>
Is there a way I can "read" or access the current record model from the Field model directly?<br>
<br>
Thanks<br>
<br>
Alan<br>
<br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>