cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Variable inheritance issue between classic and optimized stories when opening via links, hyperlinks

DavidMS
Newcomer
0 Likes
276

Problem Description
In the source story, there is a KPI table with links to other stories.
The behavior when opening these links differs depending on:

The type of target story (classic vs optimized)
Whether the link opens in the same tab or a new tab
The target story configuration (saved or server values)

 

1. Classic Story

When opening the link, the selected variables (Mes/Año and Programa) are correctly inherited in the target story.
The variable prompt appears pre-filled with values from the source story.

2. Optimized Story

If the target story is configured to use server-defined values, it does not inherit the current variables.
If configured to use current variable selections, it works correctly.
Even when adding parameters in the URL (vXXPar, vXXVal or fXXModel, fXXDim, fXXVal), the variable prompt remains empty.

3. Opening Method

Script onClick with NavigationUtils.openStory:
Same tab: sometimes variables are inherited
New tab: variable prompt is empty.
Hyperlink in table or widget:
Same tab: similar behavior to script.
New tab: variable prompt is empty, values not inherited.

Accepted Solutions (0)

Answers (1)

Answers (1)

lena_qi
Product and Topic Expert
Product and Topic Expert
0 Likes

Dear DavidMS,

Hope you are well. Thank you for your message.

To address this scenario effectively, it is recommended reviewing the following points to ensure a resolution:

1. For the variable settings, please kindly first refer to help document "Save Story Without Mandatory Variables". This option "Clear Variables and Use Server-Defined Values" means that any variable value we set in story level would be cleared and variable values set at backend would be respected. Therefore, if it is desired to pass the variable value from the source story to the target story, we need to select the variable setting as "Save Current Variable Selections" in the target story. Otherwise, the variable values defined in the backend would be executed.

2. If this hyperlink is defined with External URL or defined via script and this variable parameter is defined in this URL, please kindly first refer to the information in help document Variable Parameters | SAP Help Portal. Please kindly check whether the format of this URL has followed the instruction in this help document. After defining this URL, please kindly also try accessing it in browser directly and check whether it can work as expected. 

3. As for the behavior difference when accessing this story in the current tab or new tab, it is deserved to check if this difference is due to the story Full Viewer Mode and story Lite Viewer mode. When accessing the target story in the current browser tab, the story full viewer mode would be enabled by default. When accessing the story in the new browser tab, if there is no unsupported features detected, the story lite viewer mode would be enabled automatically. Therefore, it is worth checking if the story URL API behavior may have some difference in these two story view modes. For more information related to the Lite Viewer Mode, please refer to help document Lite Viewer Usage Restrictions | SAP Help Portal.

Thank you for your time.

Best wishes,

Lena