[Vtigercrm-developers] API to get the UIType 4 field name of a module?

Rubén A. Estrada Orozco rulotec1 at gmail.com
Wed Mar 3 16:56:13 GMT 2021


If I recall correctly, there might be a function called something like
"getMeta" that you can call on the ModuleModel (or another model).
Check the code that is used to duplicate inventory records. I think you can
find something similar there.

Again, my memory is pretty blurry on this, so I hope I'm not wrong.

Saludos

Rubén


On Wed, Mar 3, 2021 at 10:38 AM Alan Lord <alanslists at gmail.com> wrote:

> 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.
> >
>
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20210303/17ed932d/attachment.html>


More information about the vtigercrm-developers mailing list