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%3ERechercher%2FRemplacer%20le%20nom%20du%20graphique%20dans%20la%20fen%C3%AAtre%20Rapport%2FSortie%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-64881%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EJe%20pense%20qu'il%20serait%20utile%20d'avoir%20une%20fonction%20Rechercher%2FRemplacer%20pour%20op%C3%A9rer%20sur%20les%20noms%20de%20graphique%20de%20la%20fen%C3%AAtre%20de%20sortie.%3C%2FP%3E%0A%3CP%3EPar%20exemple%3A%3C%2FP%3E%0A%3CP%3ENom%20du%20graphique%20%3D%20%22Graphique%20de%20variabilit%C3%A9%20pour%20%3CNOM%20de%3D%22%22%20la%3D%22%22%20colonne%3D%22%22%3E%22%3C%2FNOM%3E%3C%2FP%3E%0A%3CP%3ERechercher%20%3A%20%22Tableau%20de%20variabilit%C3%A9%20pour%22%20et%20remplacer%20par%20%22%22%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECela%20nous%20%C3%A9viterait%20d'avoir%20%C3%A0%20r%C3%A9diger%20des%20graphiques%20de%20variabilit%C3%A9.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%C3%80%20votre%20sant%C3%A9%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%3EInterface%20utilisateur%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%3ERe%26nbsp%3B%3A%26nbsp%3BRechercher%2FRemplacer%20le%20nom%20du%20graphique%20dans%20la%20fen%C3%AAtre%20Rapport%2FSortie%20-%20Statut%20chang%C3%A9%20en%26nbsp%3B%3A%26nbsp%3BRefus%C3%A9%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-249620%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECe%20serait%20tr%C3%A8s%20difficile%20pour%20nous%20de%20le%20faire%20d'une%20mani%C3%A8re%20g%C3%A9n%C3%A9rale.%20Nous%20ne%20pouvions%20vraiment%20que%20soutenir%20la%20recherche%20et%20le%20remplacement%20dans%20les%20en-t%C3%AAtes%20de%20bo%C3%AEte%20de%20contour.%20Ainsi%2C%20la%20fonction%20qui%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%20fourni%20ci-dessus%20est%20%C3%A9quivalent%20%C3%A0%20ce%20que%20nous%20pourrions%20fournir.%20Il%20est%20probablement%20pr%C3%A9f%C3%A9rable%20de%20prendre%20cette%20fonction%20et%20de%20l'utiliser%20dans%20un%20compl%C3%A9ment%20qui%20fournirait%20une%20interface%20utilisateur%20simple.%20Peut-%C3%AAtre%20qu'un%20autre%20membre%20de%20la%20communaut%C3%A9%20le%20fera%20et%20l'affichera%20sur%20le%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FFile-Exchange%2Fct-p%2FFileExchange%22%20target%3D%22_self%22%3E%20%C3%89change%20de%20fichiers%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%3ERe%26nbsp%3B%3A%20Rechercher%2FRemplacer%20le%20nom%20du%20graphique%20dans%20la%20fen%C3%AAtre%20Rapport%2FSortie%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-247023%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Esi%20vous%20voulez%20qu'une%20fonction%20%C3%A0%20usage%20g%C3%A9n%C3%A9ral%20remplace%20le%20texte%20dans%20les%20titres%20de%20plan%2C%20vous%20pouvez%20faire%20quelque%20chose%20comme%20%C3%A7a%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.