private void PrepareSynchronizationPath(PXTreeSyncEventArgs e, SiteMapProvider prov) { List <string> path = new List <string>(); System.Text.StringBuilder result = new System.Text.StringBuilder(); SiteMapNode node = prov.FindSiteMapNodeFromKey(e.SyncNodeKey); while (node != null && node.ParentNode != prov.RootNode) { path.Add(node.Key); node = node.ParentNode; } for (int i = path.Count - 1; i >= 0; i--) { result.Append(path[i]); result.Append('|'); } if (result.Length != 0) { result = result.Remove(result.Length - 1, 1); } e.NodePath = result.ToString(); }
void wikiTree_Synchronize(object sender, PXTreeSyncEventArgs e) { this.PrepareSynchronizationPath(e, PX.Data.PXSiteMap.WikiProvider); }
void tree_Synchronize(object sender, PXTreeSyncEventArgs e) { this.PrepareSynchronizationPath(e, System.Web.SiteMap.Provider); }
private void PrepareSynchronizationPath(PXTreeSyncEventArgs e, SiteMapProvider prov) { List<string> path = new List<string>(); System.Text.StringBuilder result = new System.Text.StringBuilder(); SiteMapNode node = prov.FindSiteMapNodeFromKey(e.SyncNodeKey); while (node != null && node.ParentNode != prov.RootNode) { path.Add(node.Key); node = node.ParentNode; } for (int i = path.Count - 1; i >= 0; i--) { result.Append(path[i]); result.Append('|'); } if (result.Length != 0) result = result.Remove(result.Length - 1, 1); e.NodePath = result.ToString(); }
void wikiTree_Synchronize(object sender, PXTreeSyncEventArgs e) { this.PrepareSynchronizationPath(e, PX.Data.PXSiteMap.WikiProvider); }
void tree_Synchronize(object sender, PXTreeSyncEventArgs e) { this.PrepareSynchronizationPath(e, System.Web.SiteMap.Provider); }