[Vtigercrm-developers] Q. on vt7 Detail/Summary view picklists

Satish Dvnk satish.dvnk at vtiger.com
Mon Jan 30 06:52:37 GMT 2017


Hi @alan,

OK - can one of the vtiger devs please talk about the "uimeta" API?

uimeta is nothing but metadata of a field. This will be initialized once in
a page(URL). You can check with Vtiger/ModuleHeader.tpl. According to
convenience can add some more apis in uimeta.



*regards,Satish.Dvnk*

On Fri, Jan 20, 2017 at 9:50 PM, Alan Lord <alanslists at gmail.com> wrote:

> OK - can one of the vtiger devs please talk about the "uimeta" API?
>
> My colleague found the list of Picklist options hidden in a Javascript
> var. I can read the field info by running, for example:
>
> > uimeta.field.get('lsdwnld_rate');
>
> What else can I do with this?
> Can I "set" it?
> Can I tell it to update/re-render?
> Does it apply to all fields? (It seems to)...
>
> TIA
>
> Al
>
>
> On 20/01/17 10:09, Alan Lord wrote:
>
>> I'm wanting to modify the options (remove some) available in a Picklist
>> using Ajax when in Detail View. (I haven't looked at this in Edit View
>> yet).
>>
>> Something is a bit odd...
>>
>> After the first page load, but before you click the pencil icon to edit
>> the Picklist, none of the option values for the picklist seem to exist
>> in the DOM.
>>
>> If I click on the pencil, then close the edit by clicking on the "X",
>> the values are now in the DOM.
>>
>> Questions:
>>
>> How can I update the values of a picklist before any user activity using
>> Ajax? e.g., Is there an event I can listen for which is populating the
>> DOM when I click on the pencil edit button?
>>
>> Is this data reloaded every time that pencil is clicked or can I just
>> update the picklist once per page load?
>>
>> Al
>>
>> _______________________________________________
>> http://www.vtiger.com/
>>
>>
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20170130/33f73062/attachment.html>


More information about the vtigercrm-developers mailing list