/**********************************************/ /**********************************************/ // Functions to get master info from Qlik Sense /**********************************************/ /**********************************************/ private void QSReadSheets() { // Read all the sheets in a list, to ease find the correct sheet when requested, as it is defined in the app Sheets.Clear(); foreach (Qlik.Sense.Client.ISheet AppSheet in Qlik.Sense.Client.AppExtensions.GetSheets(qsApp)) { QSSheet qss = new QSSheet(); qss.Id = AppSheet.Id; qss.Name = AppSheet.Properties.MetaDef.Title; var m = AppSheet.Properties.MetaDef; Sheets.Add(qss); } }
/**********************************************/ /**********************************************/ // Functions to get master info from Qlik Sense /**********************************************/ /**********************************************/ private void QSReadSheets() { // Read all the sheets in a list, to ease find the correct sheet when requested, as it is defined in the app Sheets.Clear(); foreach (Qlik.Sense.Client.ISheet AppSheet in Qlik.Sense.Client.AppExtensions.GetSheets(qsApp)) { QSSheet qss = new QSSheet(); qss.Id = AppSheet.Id; qss.Name = AppSheet.Properties.MetaDef.Title; var m = AppSheet.Properties.MetaDef; foreach (var child in AppSheet.Children.OfType <VisualizationBase>()) { var vis = new QSVisualization { SheetId = AppSheet.Id, Id = child.Id, Type = child.Info.Type, Title = child.Title, Name = (child.Meta == null) ? "" : child.Meta.Name }; qss.Visulizations.Add(vis); Visualizations.Add(vis); //Console.WriteLine("Type:{0} ID:{1}", child.Info.Type, child.Info.Id); } Sheets.Add(qss); } }