Esempio n. 1
0
        public async Task GetObjectWithSpecialUrlChars()
        {
            using (ComosWeb cw = GetComosWeb(true))
            {
                var layer = await cw.GetWorkingLayerByUrl("db1/projects/U:2:A3BQHFA8AR:/wl/U:42:A3WXEAM61M:/details");

                var o = await cw.GetObjectBySystemFullName(layer, "A10|A10|=RO.SEC#7|Sec#7|A20");

                Assert.IsTrue(o != null);
                var value = await cw.Logout();
            }
        }
Esempio n. 2
0
        public async Task GetObjectBySystemFullName()
        {
            using (ComosWeb cw = GetComosWeb(true))
            {
                var layer = await cw.GetWorkingLayerByUrl("db1/projects/U:2:A3BQHFA8AR:/wl/U:42:A3WXEAM61M:/details");

                var query = await cw.GetObjectBySystemFullName(layer, "@Q|@M|QTours2");

                Console.WriteLine(string.Format("Query = {0}", query.Name));
                var value = await cw.Logout();
            }
        }
Esempio n. 3
0
        //[Ignore]
        public async Task GetObjectSpecifications()
        {
            using (ComosWeb cw = GetComosWeb(true))
            {
                var layer = await cw.GetWorkingLayerByUrl("db1/projects/U:2:A3BQHFA8AR:/wl/U:42:A3WXEAM61M:/details");

                var o = await cw.GetObjectBySystemFullName(layer, "A10|A90|A30|A30| » 6/8/2017 09:08:35");

                var specs = await cw.GetObjectSpecification(layer, "1033", o.UID);

                foreach (var spec in specs)
                {
                    var html = await cw.GetObjectSpecificationAsHtml(layer, "1033", o.UID, spec.Name);

                    System.IO.File.WriteAllText("attributes." + spec.Description + ".txt", html);
                }

                var value = await cw.Logout();
            }
        }