fetch record from another application

fetch record from another application

I would like to create a fetch records from another application. is it possible? Example:

Application 1
   Form1
     Field1
     Field2

Application 2
   Form10
     Field1
     Field2

In Application1, i write this function:











String getApprover(string Field1)

{

      if((count(Form1[Field1 == input.Field1])  >  0))

    {

          rec = Form1[Field1 == input.Field1];

        return rec.Field2;

     }

     else

      {

         return null;

      }

 

And in
Form10, field1 on User input
 

rec_approver = Common_Lists.getApprover(Field1);

input.Purchase_Approver=rec_approver;
 
here is the error: 
Error at line number : 1
Not able to find 'getApprover' function

 
 
Thank you in advance

regards
David