Find/Replace Chart Name within Report/Output WindowI 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 "
Find: "Variability Chart for" & Replace with ""
It would save us from having to script variability charts.
Cheers,
Gareth
User InterfaceRe: Find/Replace Chart Name within Report/Output Window - Status changed to: DeclinedThis 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.
Re: Find/Replace Chart Name within Report/Output Windowif 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", "" );