Community articleCreating the Extension class
Added by IBM contributorIBM on July 26, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

When the Forms System is initialized, the API checks for existing extensions and calls the initialization method (extensionInit) for each extension. Your first step in creating a function call is to create an Extension class that generates a new FunctionCall object. Follow the procedure to create the Extension class called FCIExtension:
  1. Create a new Java source file called
  2. Define the Java package. For example:
  3.    com.yourcompany.samples;

  4. Import the following files and any other required files to any Java files that call FCI methods. These lines must be placed before any class or interface definitions:
  5.    import com.PureEdge.ifx.IFX;
       import com.PureEdge.ifx.ExtensionImplBase;
       import com.PureEdge.ifx.Extension;
       import com.PureEdge.xfdl.FunctionCall;
       import com.PureEdge.xfdl.FunctionCallManager;
       import com.PureEdge.xfdl.FormNodeP;
       import com.PureEdge.IFSUserDataHolder;
       import com.PureEdge.error.UWIException;

Note: If you are using methods from the Form Library, you must import the necessary packages. For more information, refer to Setting Up Your Application.