Ejemplo n.º 1
0
        public string PrepareVisualizationDirectLink(QSVisualization vis)
        {
            //single/?appid=62905416-3e48-4267-aafe-797014fe2675&obj=dcksUYY&opt=nointeraction
            string url = qsSingleServer + "/single/?app=" + qsSingleApp + "&obj=" + vis.Id + "&opt=nointeraction";

            return(url);
        }
Ejemplo n.º 2
0
        /**********************************************/
        /**********************************************/
        // 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);
            }
        }