cancel
Showing results for 
Search instead for 
Did you mean: 

Bookmark sharing and "Force Prompts on Startup" option

PH
Participant
0 Kudos

Hi all,

I notice a strange behaviour in my application running with DS 1.3 SP 01; working with Chrome Version 36 and launching the app from the BI Launchpad on BO server:

The application has the option "Force Prompts on Startup" set to TRUE.

When I share a saved bookmark, then a popup opens with the URL and the hyperlink "Open Link". So far, so good... Once I click on the link "Open Link" a new Chrome tab is openend and the application is loaded in the correct navigation state and with the correct variable values - but without showing the initial prompts screen!

If I then do any interaction, e. g. clicking a button, the initial prompts screen is showing up and the variables are filled with the (correct) values from the saved bookmark !? Well, I could confirm that prompts screen with "OK" and then it disappears and the script action from the button is executed correctly.

But... I would assume, that either:

a) the prompts screen is shown directly after opening the link (like it is the case if you perform the "Load Bookmark" operation)

OR

b) not shown at all

Do you notice a similar behaviour in your application or can you explain, why this happens?

Regards,

Philipp

Accepted Solutions (1)

Accepted Solutions (1)

Karol-K
Advisor
Advisor
0 Kudos

Hello,

can you please attach your application?

The behavior should not be as you describe. I think you have some onStartup() or onBackground() scripts which are influencing the behavior.

Regards, Karol

PH
Participant
0 Kudos

Hello Karol,

I have attached the application.

The code in the onBackgroundProcessing() is fully commented... so there should be no influence.

Here is the code from teh onStartup():

// Set info fields
TEXT_INFO_USER.setText("Current user: " + DS_1.getInfo().user);
TEXT_INFO_APP.setText("Application Name: " + APPLICATION.getInfo().name);
TEXT_INFO_LASTUPDATE.setText("Last Data Update: " + DS_1.getInfo().lastDataUpdate);


// Set filter text in heading
var lv_stelle = DS_1.getVariableValueText("C_WWSTE_HMMM001");

// Set info field under heading
TEXT_FILTER_VAL.setText("Stelle: " + lv_stelle);

// Set initial time selection
DS_1.setFilter("00O2TN1GBHBG4IDYWLIHV31R0",["00O2TN1GBHBG4IDYWLIHV3EE4","00O2TN1GBHBG4IDYWLIHV3R18","00O2TN1GBHBG4IDYWLIHV3XCS"]);

// Configure initial drill state according to variable assignments

// Rules (X = filled; dash(-) = not filled):
//    Stelle / Team / VM Innendienst / VM Außendienst ----> Drilldown
// 1  X        -      -                -     Stelle, Team
// 2  X        X      -                -     Stelle, Team, VM Ind., Vertriebsrolle (Std)
// 3  X        -      X                -     Team, VM Ind., Vertriebsrolle (Std), Kunden
// 4  X        X      X                -     Team, VM Ind., Vertriebsrolle (Std), Kunden (covered by previous rule)
// 5  X        -      -                X     Team, VM Auß., Kunden
// 6  X        X      -                X     Team, VM Auß., Kunden (covered by previous rule)
// 7  Other assignments --> ELSE       Stelle, Team

var lv_team = DS_1.getVariableValueExt("C_KNRVB1_C_WWVER1_CMMO001");
var lv_vmi = DS_1.getVariableValueExt("C_KNRVB1_C_VMIND_CMMO001");
var lv_vma = DS_1.getVariableValueExt("C_KNRVB1_C_WWVRT_CMMO001");


// Rule 1
if (lv_stelle != "" && lv_team == "" && lv_vmi == "" && lv_vma == "") {
// Do nothing, as "Stelle" and "Team" is in the original drilldown
}
// Rule 2
if (lv_stelle != "" && lv_team != "" && lv_vmi == "" && lv_vma == "") {
DS_1.moveDimensionToRows("C_KNRVB1__C_WWVER1");
DS_1.moveDimensionToRows("C_KNRVB1__C_VMIND");
DS_1.moveDimensionToRows("C_KNRVB1__C_SALROL");
}
// Rule 3, 4
if ( (lv_stelle != "" && lv_team == "" && lv_vmi != "" && lv_vma == "") ||
  (lv_stelle != "" && lv_team != "" && lv_vmi != "" && lv_vma == "")) {
DS_1.removeDimension("C_WWSTE");
DS_1.moveDimensionToRows("C_KNRVB1__C_WWVER1");
DS_1.moveDimensionToRows("C_KNRVB1__C_VMIND");
DS_1.moveDimensionToRows("C_KNRVB1__C_SALROL");
DS_1.moveDimensionToRows("C_KNRVB1__C_KUNNR");
}
// Rule 5, 6
if ( (lv_stelle != "" && lv_team == "" && lv_vmi == "" && lv_vma != "") ||
  (lv_stelle != "" && lv_team != "" && lv_vmi == "" && lv_vma != "")) {
DS_1.removeDimension("C_WWSTE");
DS_1.moveDimensionToRows("C_KNRVB1__C_WWVER1");
DS_1.moveDimensionToRows("C_KNRVB1__C_WWVRT");
DS_1.moveDimensionToRows("C_KNRVB1__C_KUNNR");
}
// Rule 7 --> Do nothing, as "Stelle" and "Team" is in the original drilldown

// Update filter information with hidden button coding
BUT_HIDE_FILTERTEXT.onClick();

Karol-K
Advisor
Advisor
0 Kudos

I will try to reproduce internally. `

what happens when you remove completelly the "onStartup()" script? still the same issue?

PH
Participant
0 Kudos

Hello,

I found the solution:

The problem was with a commented coding in the onVariableInitialization() !

It seems, that once you have any lines of code (no matter if commented or not) in the onVariableInitialization(), the described problem occurs.

Now, after I have fully deleted the onVariableInitialization(), the prompt screen is shown directly after opening the bookmark link (as I would have expected because of the "Force Prompt on Startup" setting set to TRUE).

Regards,

Philipp

Karol-K
Advisor
Advisor
0 Kudos

Hello Philipp,

this can be correct. The event onVariableInitialization() was introduced for use cases where the customers wanted to avoid the variable prompt. The idea was to provide an event which can overcome showing of the variable prompt (eg you can fill in some mandatory variabes there).

this means, technically of course there is an internal check which is asking for existence of the script on this event (and this is checking only for existence, but not if there is a real script inside - so comments are already confirming "existence"). if the script does exist, there is a bit different workflow - which can cause not displaing of variable prompt wven selected mandatory.

shortly, both - the event and the settion is contradictive. you should use only one of them.

Regards, Karol

Answers (0)