Hi, I’m new to Looker, and working on a connector to retrieve data from a remote site via REST requests. I’ve gone through the tutorial, and have it mostly working, but now I want to add a SELECT_SINGLE config parameter, and use that to choose what to send in the request. I’ve added the following code to getConfig():
config.newSelectSingle()
.setId('source')
.setName('Select Source')
.setHelpText('Choose the data source you want to use for this connector')
.addOption(config.newOptionBuilder().setLabel("FBOs").setValue("fbos"))
.addOption(config.newOptionBuilder().setLabel("Fleet").setValue("fleet"));
But I can’t figure out how to use the selected value of the “source” parameter in my code, can someone help me?
It also appears request.configParams is undefined in getSchema(), is that correct? Does that mean I cannot use the config parameters in getSchema?