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 4 Next »

TODO

Breaking Changes

NavigationLinks in Version 10.24.0108.2-main

  • If aspect created via 'new NavigationLinkAspect(new ...Target)' , it can now be created using 'new AbsoluteNavigationLinkAspect, ClassNavigationLinkAspect, ObjectNavigationLinkAspect'.

Example

// Old
propertyLinkBuilder.Element.Aspects.Add(new NavigationLinkAspect(new AbsoluteNavigationLinkAspectTarget { URL = url }, openInTarget));

// New
propertyLinkBuilder.Element.Aspects.Add(new AbsoluteNavigationLinkAspect(openInTarget) { URL = url }
      .EvaluateMetaValuePropertiesInContext(propertyLinkBuilder.Element));
  • EvaluateMetaValuePropertiesInContext() is not needed when using the extension methods but is required when the expression parameters need to be evaluated in a MetaElement context. 

  • Rename PropertyLinkBuilderMethod.SetAbsoluteNavigationLinkExpression() => to SetAbsoluteNavigationLink() 

  • On XML layouts '...expression' fields on <Aspects> can be moved into primary field. 

Example XML

<!-- Old -->
<objectNavigationLinkAspect metaClassExpression="[expression]If(true, 'Office', 'Company')" primaryKeyExpression="[expression...."></objectNavigationLinkAspect>

<!-- New -->
<objectNavigationLinkAspect metaClass="[expression]If(true, 'Office', 'Company')" primaryKey="[expression...."></objectNavigationLinkAspect>

Sehen Sie auch die Entwickler-Dokumentation unter Builder APINavigationLink

  • No labels