Hi,
I have a picklist not accepting a list of string items. The script can be saved fine but at the time of execution it generates an error. To, me nothing seems wrong with the logic here. The list is generated in another application from a database of categories filtered by another field. There seems to be an issue with this way of generating the list because if the list is generated manually with random items like "a", "b", everything works fine. I appreciate your support.
here the code:
Tecnicas_Lista = ventas1.Segmentos.Solicita_Tecnicas(input.Segmento);
Tecnica:ui.add(Tecnicas_Lista); //this creates an error when executed but not when saving the script
and here the function that generates the list in a diferent application (ventas1):
list Segmentos.Solicita_Tecnicas(string Segmento)
{
Tecnicas_List = {(Tecnicas[Segmento = input.Segmento].Nombre).getall()}; //this does not work
//Tecnicas_List = {"a", "b", "c"}; //this works
return Tecnicas_List;
}
---
After trying to find the issue I think it has to do with the type of list. The picklist asks for a strig list, the list passed from one application to another is only a list. I tried to see if it was possible to convert a list to a stringlist or to return a string list value instead of a list value but could not find the answer to this..