SAP Knowledge Base Article - Public

2671326 - Preview Button is not Working in HTML5 of a Custom Screen

Symptom

You are trying to click on Preview button which you have configured for a custom form in a custom screen created via SDK.

Environment

SAP Cloud Application Studio

SAP Business ByDesign

SAP Hybris Cloud for Customer

Reproducing the Issue

  1. Navigate to the custom work center created.
  2. Open a record.
  3. Click on the Preview button in the Thing Inspector screen.
  4. Form is not appeared.

Cause

This issues occurs in HTML5 and RUI, if you check in Silverlight the preview will be working.

This case occurs if the Lazy Load property is set as true in the TI screen.

Resolution

You need to set the Lazy Load property to false to get the Preview button work. You can follow the below mentioned steps:

  1. Login to SDK and open the respective solution.
  2. Navigate and open the TI.uicomponent where you have configured the Preview button.
  3. Go to Controller tab.
  4. Expand Model Dialogs and double click on the Preview button you have configured for the Preview.
  5. Go to Properties tab.
  6. Under Behavior section you can see the property Lazy Load which is set as true.
  7. Change it to False.
  8. Save and Activate.

Keywords

Preview not Working Preview button in HTML5 Preview in Custom Screen SDK, PDI, UI Designer , KBA , preview but not working in custom screen , custom form not working , AP-RC-BDS-OM , ByDesign Studio Output Management(Forms) , Problem

Product

SAP Business ByDesign all versions ; SAP Cloud for Customer 1302 ; SAP Cloud for Customer 1305 ; SAP Cloud for Customer 1308 ; SAP Cloud for Customer 1311 ; SAP Cloud for Customer 1402 ; SAP Cloud for Customer 1405 ; SAP Cloud for Customer 1408 ; SAP Cloud for Customer 1411 ; SAP Cloud for Customer 1502 ; SAP Cloud for Customer 1505 ; SAP Cloud for Customer 1508 ; SAP Cloud for Customer 1511 ; SAP Cloud for Customer 1602 ; SAP Cloud for Customer 1802 ; SAP Cloud for Customer 1805 ; SAP Cloud for Customer 1808 ; SAP Cloud for Customer 1811 ; SAP Cloud for Sales 3.0 ; SAP HYBRIS C4C ADDINS 1705 ; SAP Hybris Cloud for Customer 1605 ; SAP Hybris Cloud for Customer 1608 ; SAP Hybris Cloud for Customer 1611 ; SAP Hybris Cloud for Customer 1702 ; SAP Hybris Cloud for Customer 1708 ; SAP Hybris Cloud for Customer 1711 ; SAP Sales OnDemand 1.0 ; SAP Sales OnDemand 2.0 ; SAP Sales OnDemand 4.0