<div dir="ltr">Uma I answered via GitLab,<div><br></div><div>I also have a question that maybe someone else can answer. What is the difference between uitypes 5, 6, and 23?</div><div><br></div><div><span style="color:rgb(51,51,51);font-family:Menlo,"Liberation Mono",Consolas,"DejaVu Sans Mono","Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:13px;white-space:pre-wrap;background-color:rgb(234,255,234)">const UITYPE_DATE = 5;</span><br></div><div><span style="color:rgb(51,51,51);font-family:Menlo,"Liberation Mono",Consolas,"DejaVu Sans Mono","Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:13px;white-space:pre-wrap;background-color:rgb(234,255,234)">const UITYPE_ACTIVITY_DATE_START = 6;</span><span style="color:rgb(51,51,51);font-family:Menlo,"Liberation Mono",Consolas,"DejaVu Sans Mono","Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:13px;white-space:pre-wrap;background-color:rgb(234,255,234)"><br></span></div><div><span style="color:rgb(51,51,51);font-family:Menlo,"Liberation Mono",Consolas,"DejaVu Sans Mono","Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:13px;white-space:pre-wrap;background-color:rgb(255,250,241)">const UITYPE_DATE_2 = 23;</span><br></div><div><span style="color:rgb(51,51,51);font-family:Menlo,"Liberation Mono",Consolas,"DejaVu Sans Mono","Ubuntu Mono","Courier New","andale mono","lucida console",monospace;font-size:13px;white-space:pre-wrap;background-color:rgb(255,250,241)"><br></span></div><div>As you can see I couldn't come up with a good name for uitype 23.<font color="#333333" face="Menlo, Liberation Mono, Consolas, DejaVu Sans Mono, Ubuntu Mono, Courier New, andale mono, lucida console, monospace"><span style="white-space:pre-wrap;background-color:rgb(255,250,241)"><br></span></font></div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 3, 2020 at 8:49 AM Uma S <<a href="mailto:uma.s@vtiger.com">uma.s@vtiger.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Ruben,<div><br></div><div>This looks good to me, Having descriptive constants for uitypes and display types.</div><div><br></div><div>Whereas I am thinking about extensibility and cleanup of dependencies, i.e., Files using these constants like CRMEntity.php. </div><div><br></div><div>Do you have any plans for this?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Dec 3, 2020 at 1:43 PM Martin Allen <<a href="mailto:martin.allen@clystnet.com" target="_blank">martin.allen@clystnet.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Yes, this is the old UI Type documentation - <a href="https://wiki.vtiger.com/index.php/UI_Types" target="_blank">https://wiki.vtiger.com/index.php/UI_Types</a></div><div class="gmail_default" style="font-family:verdana,sans-serif">As you'll see its very different compared to your list!!</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Like the idea of putting brief description as a comment in your list</div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><p style="font-size:12.8px;color:rgb(80,0,80)"><span style="color:navy;font-family:Verdana,sans-serif;font-size:10pt">Martin Allen</span></p><p style="font-size:12.8px;color:rgb(80,0,80)"><b style="font-size:12.8px"><span lang="EN-US" style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(51,51,153)">01392 248692 - Main Office<br>01392 690659 - Direct Line</span></b><br></p><p style="font-size:12.8px;color:rgb(80,0,80)"><b><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(51,51,153)"><img width="288" height="65" alt="signature2"></span></b><span style="color:rgb(31,73,125)"></span></p><p style="font-size:12.8px;color:rgb(80,0,80)"><span lang="EN-US" style="font-size:10pt;font-family:Verdana,sans-serif;color:navy">Have you visited our website recently? <a href="http://www.clystnet.com/" style="color:rgb(17,85,204)" target="_blank">https://www.clystnet.com</a></span><span style="color:rgb(31,73,125)"></span></p><p style="font-size:12.8px;color:rgb(80,0,80)"><span lang="EN-US" style="font-size:10pt;font-family:Verdana,sans-serif;color:navy"><br></span><span lang="EN-US" style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(153,153,153)">The information in this email is confidential If you are not the intended recipient, you must not read or use that information. This email and any attachments are believed to be virus free however no responsibility is accepted by Clystnet for any loss or damage arising in any way from receipt or use thereof. Clystnet Ltd (company reg number 7164503) is based at Silverdown Park, Fair Oak Close, Clyst Honiton, EX5 2UX</span></p></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 2 Dec 2020 at 17:28, Rubén A. Estrada Orozco <<a href="mailto:rulotec1@gmail.com" target="_blank">rulotec1@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Martin, I think I did cover them all. I actually did something very similar to the query suggested by Alan. I ran:<div><br><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>SELECT DISTINCT(uitype), fieldname, fieldlabel, tablename FROM vtiger_field ORDER BY uitype;</div></blockquote><div><div><br></div><div>With that query you see all fields that use a specific uitype side by side.</div><div><br></div><div>I suspect that many of the uitypes were created because of a lack of awareness of already existing uitypes that could be used. I also suspect that uitype 255 was probably created by someone thinking the uitype was the length of the field.</div><div><br></div><div>I'm not sure about the idea of creating documentation for uitypes. The problem with that is that the code and the documentation quickly start to diverge and then the only thing you can trust is the code itself. I prefer creating expressive code that doesn't need documentation. Maybe we could add more comments to each constant. If I recall correctly there used to be a uitypes list somewhere (the old wiki maybe?).  </div><div><br></div><div><br clear="all"><div><div dir="ltr"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Dec 2, 2020 at 2:37 AM Martin Allen <<a href="mailto:martin.allen@clystnet.com" target="_blank">martin.allen@clystnet.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Are all of those covered in your commit Ruben?</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Would be good if the vTiger developer documentation was updated to include this full list and give an example of each field type and/or a description of what's different about each one - i'm particularly intrigued by :</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div>const UITYPE_POTENTIAL_REFERENCE = 76;<br>const UITYPE_QUOTES_REFERENCE = 78;<br>const UITYPE_SALESORDER_REFERENCE = 80;<br>const UITYPE_VENDOR_REFERENCE = 81;<div><br></div><div><div class="gmail_default" style="font-family:verdana,sans-serif">Why do these modules have their own reference field UI types??</div><br><div class="gmail_default" style="font-family:verdana,sans-serif"><table style="border-collapse:collapse;border-spacing:0px;background-color:transparent;width:1601px;font-family:Menlo,"Liberation Mono",Consolas,"DejaVu Sans Mono","Ubuntu Mono","Courier New","andale mono","lucida console",monospace;border:none;margin:0px;padding:0px;color:rgb(51,51,51);font-size:13px"><tbody style="box-sizing:border-box"></tbody></table></div><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><p style="font-size:12.8px;color:rgb(80,0,80)"><span style="color:navy;font-family:Verdana,sans-serif;font-size:10pt">Martin Allen</span></p><p style="font-size:12.8px;color:rgb(80,0,80)"><b style="font-size:12.8px"><span lang="EN-US" style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(51,51,153)">01392 248692 - Main Office<br>01392 690659 - Direct Line</span></b><br></p><p style="font-size:12.8px;color:rgb(80,0,80)"><b><span style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(51,51,153)"><img width="288" height="65" alt="signature2"></span></b><span style="color:rgb(31,73,125)"></span></p><p style="font-size:12.8px;color:rgb(80,0,80)"><span lang="EN-US" style="font-size:10pt;font-family:Verdana,sans-serif;color:navy">Have you visited our website recently? <a href="http://www.clystnet.com/" style="color:rgb(17,85,204)" target="_blank">https://www.clystnet.com</a></span><span style="color:rgb(31,73,125)"></span></p><p style="font-size:12.8px;color:rgb(80,0,80)"><span lang="EN-US" style="font-size:10pt;font-family:Verdana,sans-serif;color:navy"><br></span><span lang="EN-US" style="font-size:10pt;font-family:Verdana,sans-serif;color:rgb(153,153,153)">The information in this email is confidential If you are not the intended recipient, you must not read or use that information. This email and any attachments are believed to be virus free however no responsibility is accepted by Clystnet for any loss or damage arising in any way from receipt or use thereof. Clystnet Ltd (company reg number 7164503) is based at Silverdown Park, Fair Oak Close, Clyst Honiton, EX5 2UX</span></p></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 2 Dec 2020 at 07:55, Alan Lord <<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 02/12/2020 00:50, Rubén A. Estrada Orozco wrote:<br>
> Thanks Martin!<br>
> <br>
> It turns out there are a lot more uitype codes than I imagined. Many of <br>
> them seem to be redundant: <br>
> <a href="https://code.vtiger.com/ruben.estrada/vtigercrm/commit/a8fd66c525a59a174dc275985ce73e6c71793ab2" rel="noreferrer" target="_blank">https://code.vtiger.com/ruben.estrada/vtigercrm/commit/a8fd66c525a59a174dc275985ce73e6c71793ab2</a><br>
> <br>
<br>
<br>
If you run "SELECT DISTINCT(utype) FROM `vtiger_field`;" you get:<br>
<br>
1<br>
2<br>
3<br>
4<br>
5<br>
6<br>
7<br>
8<br>
9<br>
10<br>
11<br>
12<br>
13<br>
15<br>
16<br>
17<br>
19<br>
20<br>
21<br>
22<br>
23<br>
24<br>
25<br>
26<br>
27<br>
28<br>
30<br>
31<br>
32<br>
51<br>
52<br>
53<br>
55<br>
56<br>
57<br>
58<br>
59<br>
61<br>
63<br>
66<br>
69<br>
70<br>
71<br>
72<br>
73<br>
75<br>
76<br>
77<br>
78<br>
80<br>
81<br>
83<br>
98<br>
99<br>
101<br>
104<br>
105<br>
106<br>
115<br>
116<br>
117<br>
156<br>
255<br>
357<br>
<br>
Al<br>
<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>