Exemplo n.º 1
0
 // fixme: how to trigger this at startup?
 // how to have a two-way syncronized value? so that the datagrid reads this value instead of the opposite
 public void updateShowColumns(ShowColumns showColumns)
 {
     if (this.CDG_ParentSelector != null)
     {
         this.CDG_ParentSelector.updateShowColumns(showColumns);
     }
     else
     {
         var i = 9;
         // warn user?
     }
 }
Exemplo n.º 2
0
        private void LoadView(List list)
        {
            Context.Load(list.Fields);

            // Get required view by specifying view Title here
            var targetView = list.Views.GetByTitle(ViewTitle);

            Context.Load(targetView, x => x.ViewFields);
            Context.ExecuteQuery();

            // Get all columns need to show
            var fields = list.Fields.Where(x => ShowColumns.Contains(x.InternalName)).ToList();

            // Loop for each site column and add to view
            foreach (var item in fields)
            {
                targetView.ViewFields.Add(item.InternalName);
            }
            targetView.Update();
        }
Exemplo n.º 3
0
 public virtual void Visit(ShowColumns node)
 {
     VisitInternal(node.Table);
     VisitInternal(node.Where);
 }
Exemplo n.º 4
0
 public void Visit(ShowColumns node)
 {
     TableMetaRead(node.Table);
 }