/** * Get original column names for a given stage (uses private API). * * 2018-04-12 Piotr Szrajber <piotr.szrajber@hexagongeospatial.com> */consthasColumnNames=(stageId)=>newPromise((resolve,reject)=>{stageId=stageId||"zbyszek";// default stage's idmainContext.businessIntelligence.configReader.loadConfigurations().then((configs)=>{constconfig=configs.find(x=>x.stageModel.id===stageId);if(!config)reject();else{constcolumnNames=config.tableMetadata.attributes.map((attribute)=>attribute.name);resolve(columnNames);}}).catch(reject);});hasColumnNames(/*your stage id*/).then(console.log);
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.