cancel
Showing results for 
Search instead for 
Did you mean: 

Lumira 2.1 Comments

hasba
Participant
0 Kudos

Hello Experts,

wondering if anyone has tested the comments sample application "Sample Application - usage of composite COMMENTS DIALOG" with a bex query as a datasource which is delivered with the "Feature sample" Document.

my problem when using the sample application with a Bex Query as a datasource the comments red angle in the crosstab cell are not showing, if i switch to a offline datasource the comment red angle is showing for the comments.

not sure if i'm doing something wrong, i didn't change anything in the sample application, i just added a datasource and mapped it to the crosstab.

my version is LD 2.1 SP1

can anybody confirm this?

thank you

Accepted Solutions (1)

Accepted Solutions (1)

michael_tocik5
Participant
0 Kudos

Hi

Try adding the following line to the script for context menu entry

selection = DS_1.getBackgroundFilters(selection);	<br>
var selection = CONTEXT_MENU.getSelection();
var selectionType = CONTEXT_MENU.getSelectionType();

//Line is added here
selection = DS_1.getBackgroundFilters(selection);	


APPLICATION.createInfoMessage("Selection: " + selectionType);


selection.forEach(function(element, key) {
  element.forEach(function(element_2, index) {
   APPLICATION.createInfoMessage(" " + element_2 );
  });
});


COMMENTS_DIALOG.openCommentsDialogForData(COMMENTS, selection, selectionType, DS_1);

Answers (1)

Answers (1)

hasba
Participant
0 Kudos

Thanks that was it!

i added an if Check of the selectiontype

if (selectionType == "DATA") 
{	//add in the background filters
	selection = DS_2.getBackgroundFilters(selection);	
}