Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

  • AbsoluteNavigationLinkAspect

  • ClassNavigationLinkAspect

  • ObjectNavigationLinkAspect

  • MetaValue.String Properties

    • All properties with MetaValue.String can be passed as either a String or as an IMetaExpression.

  • EvaluateMetaValuePropertiesInContext(IMetaElement context)

    • Evaluates all MetaValue.String properties in the provided MetaElement context

    • PropertyLinkBuilder methods will automatically evaluate properties

  • SetAbsoluteNavigationLink()

  • SetClassNavigationLink()

  • SetObjectNavigationLink()

// String URL
row.Add.Link(metadata.Person.AbsoluteLink, "public")
  .SetAbsoluteNavigationLink("https://www.encodo.com");

// ExpressionText URL
row.Add.Link(metadata.Person.AbsoluteLink, "public")
  .SetAbsoluteNavigationLink("[expression]If(Name == 'test', 'https://www.test.com', 'https://www.encodo.com')");
// String
var aspect = new AbsoluteNavigationLinkAspect(){
  URL = https://www.encodo.com"
};

// Expression
var url = parser.CreateExpression("If(Name == 'test', 'https://www.test.com', 'https://www.encodo.com')");
var aspect = new AbsoluteNavigationLinkAspect(){
  URL = url
};

On XML layouts the same MetaValue.String properties can accept a String or ExpressionText

<absoluteNavigationLinkAspect target="https://www.encodo.com"></absoluteNavigationLinkAspect>

<absoluteNavigationLinkAspect target="[expression]If(Name == 'test', 'https://www.test.com', 'https://www.encodo.com')"></absoluteNavigationLinkAspect>

  • No labels