Add to picklist dynamically in a subform

Add to picklist dynamically in a subform

I have a form with a subform
The subform has a dropdown field wich is dinamically populated accordingly to a value inputed at a form field
I have this code triggered on add row event:

ListProd  =  F_Produtos  [Fabrica_Produtos = input.Fabrica_Encomenda];
row.Produto_ItEncomenda:ui.add(ListProd.ID.getall());


It works great when i add a row, but if i want to update a row, the script obviously won't run and the picklist shows all the values, not only the ones needed.
I guess an "on focus" event would work, but there is no such thing at deluge...

Any ideas?
    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方