I am trying to add some Products to a picklist dynamically. I have a form where there is a lookup field called product1. By default it gets all the products from a separate form. I then have another form called "Setup_Delivery_Locations" where I have another lookup field back to the same products list. I want the products list to be filtered by the "
Setup_Delivery_Locations". So here is the code that I have:
- VShiptoProducts = Setup_Delivery_Locations [Delivery_Locations == input.Delivery_Locations];
- alert(VShiptoProducts.Products); //to view which products come up.
- clear Product1;
- Product1:ui.add(VShiptoProducts.Products.getall());
Yet now I am getting an error. The script saves fine, but I get the following error.