cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
%3CLINGO-SUB%20id%3D%22lingo-sub-64881%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EDiagrammnamen%20im%20Berichts-%2FAusgabefenster%20suchen%2Fersetzen%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-64881%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIch%20denke%2C%20es%20w%C3%A4re%20n%C3%BCtzlich%2C%20eine%20Funktion%20zum%20Suchen%2FErsetzen%20zu%20haben%2C%20um%20mit%20Diagrammnamen%20von%20Ausgabefenstern%20zu%20arbeiten.%3C%2FP%3E%0A%3CP%3EZum%20Beispiel%3A%3C%2FP%3E%0A%3CP%3EDiagrammname%20%3D%20%22Variabilit%C3%A4tsdiagramm%20f%C3%BCr%20%3CSPALTENNAME%3E%22%3C%2FSPALTENNAME%3E%3C%2FP%3E%0A%3CP%3ESuchen%3A%20%E2%80%9EVariabilit%C3%A4tsdiagramm%20f%C3%BCr%E2%80%9C%20%26amp%3B%20Ersetzen%20durch%20%E2%80%9E%E2%80%9C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EEs%20w%C3%BCrde%20uns%20ersparen%2C%20Variabilit%C3%A4tsdiagramme%20zu%20schreiben.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EProst%2C%3C%2FP%3E%0A%3CP%3EGareth%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-64881%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EBenutzeroberfl%C3%A4che%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-249620%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Suchen%2FErsetzen%20des%20Diagrammnamens%20im%20Berichts-%2FAusgabefenster%20-%20Status%20ge%C3%A4ndert%20in%3A%20Abgelehnt%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-249620%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EDas%20w%C3%BCrde%20uns%20pauschal%20sehr%20schwer%20fallen.%20Wir%20konnten%20das%20Finden%20und%20Ersetzen%20von%20%C3%9Cberschriften%20in%20Gliederungsboxen%20wirklich%20nur%20unterst%C3%BCtzen.%20Als%20solches%20funktioniert%20die%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F7677%22%20target%3D%22_blank%22%3E%20%40DaveB%3C%2FA%3E%20oben%20bereitgestellte%20entspricht%20dem%2C%20was%20wir%20bereitstellen%20k%C3%B6nnten.%20Es%20ist%20wahrscheinlich%20am%20besten%2C%20diese%20Funktion%20in%20einem%20Add-In%20zu%20verwenden%2C%20das%20eine%20einfache%20Benutzeroberfl%C3%A4che%20bietet.%20Vielleicht%20macht%20das%20ein%20anderes%20Community-Mitglied%20und%20postet%20es%20im%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FFile-Exchange%2Fct-p%2FFileExchange%22%20target%3D%22_self%22%3E%20Dateiaustausch%3C%2FA%3E%20.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-247023%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EBetreff%3A%20Suchen%2FErsetzen%20des%20Diagrammnamens%20im%20Berichts-%2FAusgabefenster%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-247023%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EWenn%20Sie%20m%C3%B6chten%2C%20dass%20eine%20allgemeine%20Funktion%20den%20Text%20in%20Gliederungstiteln%20ersetzt%2C%20k%C3%B6nnen%20Sie%20so%20etwas%20tun%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Ereplace%20outline%20text%20%3D%20Function(%20%7Bold%2C%20new%7D%2C%0A%20match%20%3D%20Eval(%20Eval%20Expr(%20Current%20Report()%20%26lt%3B%26lt%3B%20xpath(%20Expr(%20Expr(%20%22%2F%2FOutlineBox%5Bcontains(text()%2C'%22%20)%20%7C%7C%20old%20%7C%7C%20Expr(%20%22')%5D%22%20)%20)%20)%20)%20)%3B%0A%20For(%20c%20%3D%201%2C%20c%20%26lt%3B%3D%20N%20Items(%20match%20)%2C%20c%2B%2B%2C%0A%20%20new%20title%20%3D%20Substitute(%20(match%5Bc%5D%20%26lt%3B%26lt%3B%20get%20title)%2C%20old%2C%20new%20)%3B%0A%20%20match%5Bc%5D%20%26lt%3B%26lt%3B%20set%20title(%20new%20title%20)%3B%0A%20)%3B%0A)%3B%0A%0Areplace%20outline%20text(%20%22Variability%20Chart%20for%22%2C%20%22%22%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
0 Kudos

Find/Replace Chart Name within Report/Output Window

I think it would be useful to have a Find/Replace function to operate on output window chart names.

For example:

Chart Name = "Variability Chart for <Column Name>"

Find: "Variability Chart for" & Replace with ""

 

It would save us from having to script variability charts.

 

Cheers,

Gareth

2 Comments
DaveB
Staff

if you want a general purpose function to replace the text in outline titles, you could do something like this

 

replace outline text = Function( {old, new},
	match = Eval( Eval Expr( Current Report() << xpath( Expr( Expr( "//OutlineBox[contains(text(),'" ) || old || Expr( "')]" ) ) ) ) );
	For( c = 1, c <= N Items( match ), c++,
		new title = Substitute( (match[c] << get title), old, new );
		match[c] << set title( new title );
	);
);

replace outline text( "Variability Chart for", "" );
Jeff_Perkinson
Community Manager
Status changed to: Not Planned For Now

This would be very difficult for us to do in a general way. We really could only support finding and replacing in outline box headings. As such, the function that @DaveB provided above is equivalent to what we could provide. It's probably best to take that function and use it in an add-in that would provide a simple user interface. Perhaps another community member will do that and post it to the File Exchange.