Ejemplo n.º 1
0
        public void SaveMeasure(string AppId, string title, string description, List <string> tags, string definition)
        {
            var appIdentifier = location.AppWithIdOrDefault(AppId);

            var measure = new NxLibraryMeasureDef()
            {
                Def = definition, Label = title
            };

            var properties = new Qlik.Sense.Client.MeasureProperties()
            {
                Title       = title,
                Description = description,
                Tags        = tags,
                Info        = new NxInfo()
                {
                    Type = "GenericMeasure"
                },
                Measure = measure
            };

            using (IApp app = location.App(appIdentifier))
            {
                app.CreateMeasure(null, properties);
            }
        }