getSourceTypes ();
The getSourceTypes method returns array of data source types available for visualizers.
The method returns an array that may contain the following values:
Value | Brief description |
"Excel" | *.XLS files can be used as a data source. |
"ExcelEx" | *.XLSX files can be used as a data source. |
"Access" | *.MDB files can be used as a data source. |
"Xml" | *.XML files can be used as a data source. |
"Text" | *.TXT files can be used as a data source. |
"Mb" | Repository objects can be used as a data source. |
The following code is executed in the browser console on the page of Foresight. Analytics Platform standard web application with open express report, workbook or dashboard.
//Get web application settings conf = PP.Ui.getConfig(); //Set only repository object as a possible data source conf.setSourceTypes(["Mb"]); //Output a message with a list of possible data sources alert("Available data sources: " + conf.getSourceTypes());
After executing the example only a repository object can be added as a data source for the open report. The following message appears in the screen: Available data sources: Mb.
See also: