Symptom
- When the target application is opened via a hyperlink from another report, clicking the Submit button shows errors.
- Error message: Script execution failed for event 'Button_Submit.onClick'
- The same application works as expected when opened directly from the tenant (filters, buttons, and interactivity function normally).
Environment
- Product: SAP Analytics Cloud
- Unified Story Scripting related Issues
Reproducing the Issue
- Open the parent story/report in the tenant.
- Use the hyperlink to navigate to the target application (Ask-type report).
- Confirm any prompt if shown.
- Provide filter values.
- Click the Submit button.
- Observe the script execution errors.
Cause
Configuration: the hyperlink opens the target application in a viewer mode that does not fully support the application’s scripting, resulting in onClick script errors when using the Submit button.
Resolution
- Adjust the hyperlink or URL used to open the target application to force Full Viewer mode.
- Append the URL parameter force=app to the target application URL:
If the URL has no query parameters, append ?force=app.
If the URL already has query parameters, append &force=app.
Save the change and retest by opening the target application via the hyperlink and clicking Submit.
As an immediate workaround:
open the application directly from the tenant (without using the hyperlink), which also avoids the error.
See Also
Keywords
script execution failed, onClick, submit button, Button_Submit_Years, Button_Submit_Yrs_Mnths_Qtrs, hyperlink, open story link, viewer mode, full viewer, lite viewer, optimized story, force=app, scripting error, application designer, SAC , KBA , LOD-ANA-UNS-SCR , Unified Story Scripting related Issues , Problem
SAP Knowledge Base Article - Public