public partial class WindowController1 : WindowController
{
public WindowController1()
{
InitializeComponent();
RegisterActions(components);
}
public override void UpdateModel(Dictionary dictionary)
{
base.UpdateModel(dictionary);
base.UpdateModel(dictionary);
DictionaryNode categoryNode = null;
DictionaryNode categoryNode1 = null;
DictionaryNode pageNode = null;
DictionaryNode pageGroupNode = null;
DictionaryNode itemNode = null;
categoryNode = dictionary.RootNode.FindChildNodeByPath(@"RibbonTemplates\Template[@ID='ApplicationWindowContext']\PageCategory[@ID='Default']") as DictionaryNode;
categoryNode1 =dictionary.RootNode.FindChildNodeByPath(@"RibbonTemplates\Template[@ID='ApplicationWindowContext']\PageCategory[@ID='Default']\Page[@ID='Default']") as DictionaryNode;
//-- Add a new Page to the Category
pageNode = categoryNode.AddChildNode("Page"); //!!!
pageNode.SetAttribute("ID", "MyPage");
pageNode.SetAttribute("Index", "0");
pageNode.SetAttribute("Caption", "My Page");
//-- Add a new Page Group to the newly created Page
pageGroupNode = categoryNode1.AddChildNode("PageGroup");
pageGroupNode.SetAttribute("ID", "Report");
pageGroupNode.SetAttribute("Index", "0");
pageGroupNode.SetAttribute("Caption", "Report");
itemNode = pageGroupNode.AddChildNode("Item");
itemNode.SetAttribute("ID", "BillByBillRep");
itemNode.SetAttribute("Index", "0");
itemNode.SetAttribute("ActionID", "BillByBillRep");
itemNode = pageGroupNode.AddChildNode("Item");
itemNode.SetAttribute("ID", "cstLedgerRep");
itemNode.SetAttribute("Index", "1");
itemNode.SetAttribute("ActionID", "cstLedgerRep");
XafTypesInfo.Instance.RefreshInfo(typeof(DictionaryNode));
}
}
Subscribe to:
Post Comments (Atom)
Mat Table Angular
Mat Table in Angular Mat table is used to display data . its a material designed styled data-table . For using Material Table MatTableMo...
-
CriteriaOperator criteria = new BinaryOperator("Age", 30, BinaryOperatorType.Greater); CriteriaOperator criteria = CriteriaOperato...
-
SortingCollection sc = new SortingCollection(); sc.Add (new SortProperty("field on which you want to sort",DevExpress.Xpo.DB.Sorti...
-
Minification and Uglyfication in Angular Deployement Minification : While building Angular Application white spaces , unused variable , u...
No comments:
Post a Comment