public void Update(AspNetCore.ReportingServices.ReportRendering.Action newAction) { this.m_renderAction = newAction; this.m_label = null; this.m_bookmark = null; this.m_hyperlink = null; }
public ReportUrl(ICatalogItemContext itemContext, string initialUrl, bool checkProtocol, NameValueCollection unparsedParameters) { ICatalogItemContext catalogItemContext = default(ICatalogItemContext); this.m_pathUri = new Uri(ReportUrl.BuildPathUri(itemContext, checkProtocol, initialUrl, unparsedParameters, out catalogItemContext)); if (this.m_pathUri != (Uri)null && string.CompareOrdinal(this.m_pathUri.Scheme, "mailto") == 0) { string absoluteUri = this.m_pathUri.AbsoluteUri; } }
public static ReportUrl BuildHyperlinkUrl(RenderingContext renderingContext, ObjectType objectType, string objectName, string propertyName, ICatalogItemContext itemContext, string initialUrl) { ReportUrl result = null; if (initialUrl == null) { return(null); } bool flag = false; try { string text = initialUrl; bool flag2 = default(bool); bool flag3 = itemContext.IsReportServerPathOrUrl(text, false, out flag2); NameValueCollection unparsedParameters = null; if (flag3 && flag2) { itemContext.PathManager.ExtractFromUrl(text, out text, out unparsedParameters); if (text == null || text.Length == 0) { flag = true; text = null; result = null; } } if (text != null) { result = new ReportUrl(itemContext, text, false, unparsedParameters); } } catch (ItemNotFoundException) { flag = true; } catch (RenderingObjectModelException) { flag = true; } catch (RSException) { throw; } catch (Exception) { flag = true; } if (flag) { renderingContext.OdpContext.ErrorContext.Register(ProcessingErrorCode.rsInvalidURLProtocol, Severity.Warning, objectType, objectName, propertyName, initialUrl.MarkAsPrivate()); } return(result); }
public static string BuildDrillthroughUrl(ICatalogItemContext currentCatalogItemContext, string initialUrl, NameValueCollection parameters) { ICatalogItemContext catalogItemContext = default(ICatalogItemContext); string text = ReportUrl.BuildPathUri(currentCatalogItemContext, true, initialUrl, parameters, out catalogItemContext); if (text != null && catalogItemContext != null) { CatalogItemUrlBuilder catalogItemUrlBuilder = new CatalogItemUrlBuilder(catalogItemContext, catalogItemContext.RSRequestParameters); catalogItemUrlBuilder.AppendReportParameters(parameters); Uri uri = new Uri(catalogItemUrlBuilder.ToString()); return(uri.AbsoluteUri); } return(null); }
void IActionInstance.SetHyperlinkText(string hyperlinkText) { this.m_hyperlinkText = hyperlinkText; if (this.m_hyperlinkText != null) { ActionInfo owner = this.m_actionDef.Owner; this.m_hyperlink = ReportUrl.BuildHyperlinkUrl(owner.RenderingContext, owner.ObjectType, owner.ObjectName, "Hyperlink", owner.RenderingContext.OdpContext.ReportContext, this.m_hyperlinkText); if (this.m_hyperlink == null) { this.m_hyperlinkText = null; } } else { this.m_hyperlink = null; } }
public static string BuildPathUri(ICatalogItemContext currentICatalogItemContext, string initialUrl, NameValueCollection unparsedParameters) { ICatalogItemContext catalogItemContext = default(ICatalogItemContext); return(ReportUrl.BuildPathUri(currentICatalogItemContext, true, initialUrl, unparsedParameters, out catalogItemContext)); }
public ReportUrl(ICatalogItemContext itemContext, string initialUrl) { this.m_pathUri = new Uri(ReportUrl.BuildPathUri(itemContext, initialUrl, null)); }
protected override void ResetInstanceCache() { this.m_label = null; this.m_bookmark = null; this.m_hyperlink = null; }