[Vtigercrm-developers] API to get the UIType 4 field name of a module?
Alan Lord
alanslists at gmail.com
Wed Mar 3 16:36:42 GMT 2021
There is no way to determine this information using vtws_describe either...
For example if I describe the Quotes module, all I know about the
quote_no field is this:
> vtws_describe for Quotes
> Array
> (
> [label] => Quotes
> [name] => Quotes
> [createable] => 1
> [updateable] => 1
> [deleteable] => 1
> [retrieveable] => 1
> [fields] => Array
> (
> [0] => Array
> (
> [name] => quote_no
> [label] => Quote No.
> [mandatory] =>
> [type] => Array
> (
> [name] => string
> )
>
> [isunique] =>
> [nullable] => 1
> [editable] =>
> [default] =>
> )
>
> [1] => Array
> (
> [name] => subject
On 03/03/2021 15:49, Alan Lord wrote:
> Does anyone know if there's an API anywhere to check if a particular
> module has a UIType 4 field and what it is called so I can get the
> record number (the vtiger_modentity_num generated stuff) of a particular
> record?
>
> I couldn't see anything in the Vtiger_Record_Model and in the
> Vtiger_Module_Model I could only find the method
> hasSequenceNumberField() but this just tells me true or false; not what
> the fieldname is...
>
> I can always write my own but wanted to check if such a thing existed
> first.
>
More information about the vtigercrm-developers
mailing list