Views APIs – SAP Business One Web Client Extensibility
2023-12-7 07:46:25 Author: blogs.sap.com(查看原文) 阅读量:5 收藏

When creating your own extension, you may sometimes need to redirect to a specific View in the SAP Business One Web Client. For this purpose, you will need to utilize the Views APIs.
This feature has been available since version 10.0 FP 2105.

The Views APIs can be used to generate URLs for the following views:

  • List view and detailed view for an object.
  • Analytics views.

The image below shows a Fiori app that redirects back to a specific Business Partner and a specific Item.

Fiori%20App

Fiori App

Views APIs for List View and Detailed view

In order to access a specific View in the Web Client, such as a specific Sales Order view, you will need to provide the information listed below:

  • The type of the object : System Object or User Defined Object.
  • The Business Object name (e.g. Orders).
  • Business Object value : this can be obtained by using the Service layer .

Demo%20App

Demo App

You can review the sample code and the demo application here :Sample Code

Views APIs for Analytics views

In order to access a specific Analytics View in the Web Client, you will need to provide the information listed below:

  • Analytics Type can be either ‘Dashboard’ or ‘ChartContainer.
  • Variant GUID – the Analytics group that contains the View.
  • Analytic View code.

Demo%20App

Demo App

You can review the sample code and the demo application here :Sample Code

Future planning

Support for Views APIs began with version 10.0 FP 2105 , and Analytics views APIs with version 10.0 FP 2208. In each version, we continue to support more Business Objects(BOs), so you can track the new features in our Help Portal

Additionally, we provide an introduction video :

I hope you found this blog informative as an introductory guide to Views APIs.I am keen to learn about your experiences and insights from utilizing this API. Your feedback is highly valued, kindly share your thoughts in the comments section below.


文章来源: https://blogs.sap.com/2023/12/06/views-apis-sap-business-one-web-client-extensibility/
如有侵权请联系:admin#unsafe.sh