protected void ProcessReportChanged(ClientPipelineArgs args) { Assert.IsNotNull(Properties, "properties is null"); //string root="/"; string selected = RootItem.Paths.FullPath ; if (!args.IsPostBack) { //Sitecore.Shell.Framework.Dialogs.BrowseItem("Select Item", "where should I start looking for items?", "Database/32x32/view_h.png", "Select", root, selected); Util.ShowItemBrowser( "Select report", "which report should I use?", "Database/32x32/view_h.png", "Select", Properties.CONFIGNODE_ID, Properties.ReportItem == null ? Properties.CONFIGNODE_ID : new Sitecore.Data.ID(Properties.ReportItem.Id), "master"); args.WaitForPostBack(); } // the result of a dialog is handled because a post back has occurred else { string res = args.Result; Sitecore.Data.ID myID; if (Sitecore.Data.ID.TryParse(res, out myID)) { CorePoint.DomainObjects.SC.SCDirector director = new CorePoint.DomainObjects.SC.SCDirector("master", "en"); Properties.SetReportItem(new Guid(res)); ModifyIU(); } //else //{ // ResetIU(); //} } }
protected void ProcessReportChanged(ClientPipelineArgs args) { Assert.IsNotNull(Properties, "properties is null"); //string root="/"; string selected = RootItem.Paths.FullPath ; if (!args.IsPostBack) { //Sitecore.Shell.Framework.Dialogs.BrowseItem("Select Item", "where should I start looking for items?", "Database/32x32/view_h.png", "Select", root, selected); Util.ShowItemBrowser( "Select report", "which report should I use?", "Database/32x32/view_h.png", "Select", Properties.CONFIGNODE_ID, Properties.ReportItem == null ? Properties.CONFIGNODE_ID : new Sitecore.Data.ID(Properties.ReportItem.Id), "master"); args.WaitForPostBack(); } // the result of a dialog is handled because a post back has occurred else { string res = args.Result; Sitecore.Data.ID myID; if (Sitecore.Data.ID.TryParse(res, out myID)) { CorePoint.DomainObjects.SC.SCDirector director = new CorePoint.DomainObjects.SC.SCDirector("master", "en"); Properties.SetReportItem(new Guid(res)); ModifyIU(); } //else //{ // ResetIU(); //} } }