含 URL

ABAP RESTful 应用程序编程模型 › 开发 › 开发 UI 特定 › 定义元数据驱动的 UI 的 CDS 注释 › 元数据驱动 UI 的更多选项 › 导航 › 含 URL

获取有关如何提供从 SAP Fiori UI 到外部网站的导航的信息,例如 。

例如,此类型导航类型包含对导航到特定网站的 URL 的引用。

可以使用以下 dataField 类型显示外部网站的链接:

  • #WITH_URL

    示例

    在以下示例中,CompanyName 显示为引用 CDS 元素 WebsiteUrl 的链接。

    示例代码

    ...
    define view ZExample_SalesOrder as select from sepm_cds_sales_order as so
    {
      key so.sales_order_id as SalesOrder,
      ...
    
      @UI.lineItem: [ {
        position: 20,
        type: #WITH_URL,
        url: 'WebsiteUrl'	-- Reference to element
      } ]
      so.customer.company_name as CompanyName,
    
      so.customer.web_address as WebsiteUrl,
      ...
    }