private void editor_FileUploaded(object sender, PXFileUploadEventArgs e) { WikiPage current = this.CurrentRec; if (current != null) { FileInfo file = e.UploadedFile; if (file != null) { UploadFileMaintenance uploadGraph = PXGraph.CreateInstance <UploadFileMaintenance>(); uploadGraph.AttachToPage((Guid)file.UID, (Guid)current.PageID); } } }
protected void editor_FileUploaded(object sender, PXFileUploadEventArgs e) { WikiPage current = (WikiPage)ds.DataGraph.Caches[typeof(WikiPage)].Current; if (current != null) { FileInfo file = e.UploadedFile; if (file != null && file.UID != null) { UploadFileMaintenance uploadGraph = PXGraph.CreateInstance <UploadFileMaintenance>(); uploadGraph.AttachToPage((Guid)file.UID, (Guid)current.PageID); } } }