cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Choose Language Hide Translation Bar
View Original Published Thread

Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?

Neo
Neo
Level VI

I use the following to display "my text" at the top of my charts.

Dispatch( {}, "graph title", TextEditBox, {Set Text( "my text" )} )

However, I would like to have the item(s) selected in the local data filter to be displayed in the graph title as I select them (perhaps multiple sections as comma delimited?).

How to achieve this in JSL?

When it's too good to be true, it's neither
21 REPLIES 21
hcarr01
Level VI

Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?

Ok thank you it works correctly, but if ever how can we put just the first name last name that it finds in the database?

In your example this would display only the first name “KATIE”

This post originally written in French and has been translated for your convenience. When you reply, it will also be translated back to French .

hcarr01
Level VI

Re: Is it possible to dynamically update "graph title" based item selection in local data filter (including multiple selections)?

like this it works correctly:


changeTitle = Function( {this},
	Eval( Parse( "theRows = dt << get rows where" || Substr( ldf << get where clause(), 13 ) ) );
	If( Length( theRows ) > 0,
		theRow = theRows[1];
		ldfText = :remarques[theRow],
		ldfText = "All Names"
	);
	(Report( gb ) << XPath( "//TextEditBox" ))[1] << Set Text( ldfText );
);

This post originally written in French and has been translated for your convenience. When you reply, it will also be translated back to French .