[Vtigercrm-developers] displaytype in fields
Alan Lord
alanslists at gmail.com
Thu Nov 12 08:01:31 GMT 2020
Just FYI - Presence meaning is as follows:
> with respect presence value, the valid values are 0,1 and 2 which are interpreted as always visible, hidden, and user controlled visible by default respectively.
I asked this mailing list back in 2010 ;-)
Al
On 12/11/2020 07:55, Martin Allen wrote:
> What we have managed to learn about the different display types (after
> looking at the limited documentation, and years of working on vTiger!)
> are that these are the different types:
>
> 1 - Displayed both in Detail view and Edit view
> 2 - Displayed only in the Detail view (Ex. Created time, Modified time)
> 3 - It is not displayed both in DetailView and EditView,but can be shown
> in ListView
> Example: Total, subtotal in Invoice Module. These Fields are not tied to
> any block.
> 4 - Added for handling passwords.
> 5 - used for Inventory/LineItem Fields (so they don't show as a normal
> field in a block)
> 6 - used for 'Starred' fields only (only show on List View and as
> separate button on Detail View)
>
> Defining these as constants with descriptive names would be AWESOME!!
> Same for ui_type,
> but also presence (which has 3x possible values) which we've worked out
> as below:
>
> 0 = displayed & cannot be hidden via CRM Settings
> 1 = hidden & can be displayed via CRM Settings
> 2 = displayed & can be hidden via CRM Settings
>
> What about event types too? (stops all this 'vtiger.entity.beforesave'
> nonsense, and by defining them IDE's can handle them better and indicate
> errors etc)
>
> Martin Allen
>
> *01392 248692 - Main Office
> 01392 690659 - Direct Line*
>
> *signature2*
>
> Have you visited our website recently? https://www.clystnet.com
> <http://www.clystnet.com/>
>
>
> 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
>
>
>
> On Thu, 12 Nov 2020 at 01:03, Rubén A. Estrada Orozco
> <rulotec1 at gmail.com <mailto:rulotec1 at gmail.com>> wrote:
>
> there are, as far as I can see, 6 displaytypes (1 - 6) for fields.
>
> What are they supposed to mean?
>
> If you look into Vtiger_Field_Model you'll see code like this:
>
> image.png
>
> Why don't we use constants to give them meaningful names?
>
> the same goes for uitypes.
>
> It's just frustrating.
>
> Saludos
>
> Rubén
> _______________________________________________
> http://www.vtiger.com/
>
>
> _______________________________________________
> http://www.vtiger.com/
>
More information about the vtigercrm-developers
mailing list