How do I auto-create a field on input/output tab?

I’m trying to get my custom adapter to automatically create a field on the input or output tab when the user creates a new instance of the configured operation. The source field is just a standard text box, NOT part of a field map. So, the field name is known at the time the operation is created and the user cannot change it. See ‘getRemoteFile()’ below.

I’ve tried various calls of:

d.setNamespace( java.lang.String name, java.lang.String namespaceName, java.lang.String dependencies );

But so far have been unable to find a variation that works. I know it will involve using the namespace “AdapterDescriptor.INPUT_FIELD_NAMES” but I need help with the syntax. Also, I need to take into consideration that the operation creation also needs to control the data type of the input field. Can anybody help me? Much thanks.

Tony.

/**

  • Gets the remote file name
  • @return destination file on remote server
    */
    public String getRemoteFile()
    {
    return “MyInputFieldName”;
    }

/**

  • Sets information about this operation
  • @param d the descriptor to populate with custom information
  • @exception AdapterException something went wrong
    */
    public void fillAdapterDescriptor( AdapterDescriptor d ) throws AdapterException
    {

// create the tab for data field, add it’s text box
d.createGroup( “Data”, new String { “remoteFile” } );
}