Hello ZC team;
I have this situation, in Application B I have a form with fields like: Name, Contract Number, Customer, Rate,etc.
On Application A I have a form with lookup field Name, Contract Number, Customer, and other fields like Price,etc.
I need that when I select the field "Customer" in App A a function is called in order to fill Price field from
the valued stored in App B (in fact rate field). Both fields are currency type (Price & Rate).
The link in both applications is the Customer which is defined as dropdown field present in both forms.
To do that I have the following Function defined in App B:
list precio.getprecio(string contrato)
{
if (count(Orden_de_Trabajo[Nro_Contrato == input.contrato]) > 0)
{
list = (Orden_de_Trabajo[(Nro_Contrato == input.contrato && Status_del_Contrato == "Vigente")].Precio_CLM).getall();
return list;
}
else
{
}
return list;
}
Then on Application A on the user input of Customer I put this:
list = gestion_comercial_clm_group.precio.getprecio(input.Nro_de_Contrato);
Rate:ui.add(list);
Problem is that Rate field is not populate,it remain in Blank.
I think that is because my function has a wrong definition for currency type, can someone help me on that?.
Thanks.