<div dir="ltr"><div>Hi @alan,<br><br>OK - can one of the vtiger devs please talk about the "uimeta" API?<br><br></div>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.<br><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><b><span style="font-family:verdana,sans-serif"><span style="color:rgb(153,153,153)"><span style="background-color:rgb(255,255,255)">regards,</span></span><br>Satish.Dvnk</span></b><br></div></div></div>
<br><div class="gmail_quote">On Fri, Jan 20, 2017 at 9:50 PM, Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">OK - can one of the vtiger devs please talk about the "uimeta" API?<br>
<br>
My colleague found the list of Picklist options hidden in a Javascript var. I can read the field info by running, for example:<br>
<br>
> uimeta.field.get('lsdwnld_rate<wbr>');<br>
<br>
What else can I do with this?<br>
Can I "set" it?<br>
Can I tell it to update/re-render?<br>
Does it apply to all fields? (It seems to)...<br>
<br>
TIA<br>
<br>
Al<div><div class="h5"><br>
<br>
On 20/01/17 10:09, Alan Lord wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm wanting to modify the options (remove some) available in a Picklist<br>
using Ajax when in Detail View. (I haven't looked at this in Edit View<br>
yet).<br>
<br>
Something is a bit odd...<br>
<br>
After the first page load, but before you click the pencil icon to edit<br>
the Picklist, none of the option values for the picklist seem to exist<br>
in the DOM.<br>
<br>
If I click on the pencil, then close the edit by clicking on the "X",<br>
the values are now in the DOM.<br>
<br>
Questions:<br>
<br>
How can I update the values of a picklist before any user activity using<br>
Ajax? e.g., Is there an event I can listen for which is populating the<br>
DOM when I click on the pencil edit button?<br>
<br>
Is this data reloaded every time that pencil is clicked or can I just<br>
update the picklist once per page load?<br>
<br>
Al<br>
<br>
______________________________<wbr>_________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
<br>
</blockquote>
<br>
<br></div></div>
______________________________<wbr>_________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>