addConfigurationField

Example
              getRequiredConfigurationFields: function (context) {
    //Connection details
    context.output.addConfigurationField({type:"TEXT", label:"URL", required:true, dataName:"url"});
    context.output.addConfigurationField({type:"TEXT", label:"User name", dataName:"username"});
    context.output.addConfigurationField({type:"PASSWORD", label:"Password", dataName:"password"});
    context.output.addConfigurationField({type:"TEXT", label:"Host Key", dataName:"hostKey"});
    context.output.addConfigurationField({type:"TEXT", label:"Host Key Type", dataName:"hostKeyType"});
    context.output.addConfigurationField({type:"TEXT", label:"Port", dataName:"port"});
 
    //File download details
    context.output.addConfigurationField({type:"TEXT", label:"Download Filename", dataName:"filename"});
    context.output.addConfigurationField({type:"TEXT", label:"Download Directory", dataName:"directory"});
    context.output.addConfigurationField({type:"TEXT", label:"Download Timeout", dataName:"timeout"});
    context.output.addConfigurationField({type:"TEXT", label:"Bank statement format", dataName:"format"});
}, 

        

This example mirrors all of the connection details provided by the 'N/sftp' module.

Related Topics

RequiredConfigurationFieldsOutput
RequiredConfigurationFieldsContainer

General Notices