HELP in access Data From another Application

HELP in access Data From another Application

Hello there,

I need Help in order to retrieve data from one ZC App to another ZC App.

Application A has a form called orden, here we track all the contracts belong to a Consultant, so for example I have 
the following fields:

Name (Import file) from other form
Contract Number (Single field)
.....other fields...

In this application one record is created every time the consultant has a new contract.

Application B

This application have the mission to store each payment for that consultant, so something which I need is to pool the
contract number field from Application A.

Fields in Application B

Name (Import File) from other fomr (same import for App. A).
Contract Number (Import Field : Display type =tDropdown); here I want to fetch all the records from Application A and insert them into this Dropdown.

I was reading all the information about Functions and I have defined a Function in App A as follows:


string contratos.listacontra(string nombre)
{
if((count(Orden_de_Trabajo[Nombre_y_Apellido == input.nombre])  >  0))
{
    col = Orden_de_Trabajo[Nombre_y_Apellido == input.nombre];
    return col.Nro_Contrato;
}
else
{
    return "";
}
}

I was readying that I will need to put code on the user action of  the Dropdwon field on App. B in order to pull the data, unfortunatelly I was not able to do that and I Stuck with this, so if somebody can help with it and show me how to code that action will be very appreciated because I can put the forms on same application wich will be more easy to fixed.

Thanks Zoho Community.