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%3EBuscar%20%2F%20reemplazar%20el%20nombre%20del%20gr%C3%A1fico%20dentro%20de%20la%20ventana%20Informe%20%2F%20Salida%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-64881%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECreo%20que%20ser%C3%ADa%20%C3%BAtil%20tener%20una%20funci%C3%B3n%20Buscar%20%2F%20Reemplazar%20para%20operar%20en%20los%20nombres%20de%20los%20gr%C3%A1ficos%20de%20la%20ventana%20de%20salida.%3C%2FP%3E%0A%3CP%3EPor%20ejemplo%3A%3C%2FP%3E%0A%3CP%3EChart%20Name%20%3D%20%22Cuadro%20de%20variabilidad%20para%20%3CNOMBRE%20de%3D%22%22%20columna%3D%22%22%3E%22%3C%2FNOMBRE%3E%3C%2FP%3E%0A%3CP%3EBuscar%3A%20%22Gr%C3%A1fico%20de%20variabilidad%20para%22%20y%20reemplazar%20con%20%22%22%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENos%20evitar%C3%ADa%20tener%20que%20escribir%20gr%C3%A1ficos%20de%20variabilidad.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESalud%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%3EInterfaz%20de%20usuario%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%3A%20Buscar%20%2F%20Reemplazar%20el%20nombre%20del%20gr%C3%A1fico%20en%20la%20ventana%20Informe%20%2F%20Salida%20-%20El%20estado%20cambi%C3%B3%20a%3A%20Rechazado%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-249620%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EEsto%20ser%C3%ADa%20muy%20dif%C3%ADcil%20para%20nosotros%20hacerlo%20de%20manera%20general.%20Realmente%20solo%20pudimos%20apoyar%20la%20b%C3%BAsqueda%20y%20reemplazo%20de%20encabezados%20de%20cuadro%20de%20esquema.%20Como%20tal%2C%20la%20funci%C3%B3n%20que%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F7677%22%20target%3D%22_blank%22%3E%20%40DaveB%20%3C%2FA%3E%20proporcionado%20anteriormente%20es%20equivalente%20a%20lo%20que%20podr%C3%ADamos%20proporcionar.%20Probablemente%20sea%20mejor%20tomar%20esa%20funci%C3%B3n%20y%20usarla%20en%20un%20complemento%20que%20proporcione%20una%20interfaz%20de%20usuario%20simple.%20Quiz%C3%A1s%20otro%20miembro%20de%20la%20comunidad%20lo%20haga%20y%20lo%20publique%20en%20el%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2FFile-Exchange%2Fct-p%2FFileExchange%22%20target%3D%22_self%22%3E%20Intercambio%20de%20archivos%20%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%3A%20Buscar%20%2F%20Reemplazar%20el%20nombre%20del%20gr%C3%A1fico%20en%20la%20ventana%20Informe%20%2F%20Salida%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-247023%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Esi%20desea%20que%20una%20funci%C3%B3n%20de%20prop%C3%B3sito%20general%20reemplace%20el%20texto%20en%20los%20t%C3%ADtulos%20de%20esquema%2C%20puede%20hacer%20algo%20como%20esto%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.