You can execute queries datasource(and dataset) in the block of globalyour application, and these variables will be available for widespread use.
global {
datasource mydatasource <- "http://example.com/path/to/datasource";
args = {"myvar":"myvalue"};
results = datasource:mydatasource(args);
}
, , . , .