News combit Dev Blog

Easily Replacing Texts and Identifiers in the Designer

Posted: Tuesday, September 18, 2018 | 2 comment(s)
Continuing our quest for an improvement of the Designer's refactoring features, it's obvious that finding text alone is only halfway to quickly and easily refactoring your projects to accomodate them to changed field names, table names or other identifier changes. So we decided to take this project one step further and offer a powerful replace feature in LL24.

Using the example from the previous blog post, we wanted to change the name of a user variable from "@Sum1" to "@ItemSum". The new Find feature showed three occurences of this sum variable in the project. Now, instead of hitting Ctrl+F (or choosing "Find" from the ribbon) you can also hit Ctrl+H or "Replace":


This takes you to the all new replace dialog, an easy to navigate UI that is your single place for all refactorings:


Note the handy syntax preview that shows what will become of your formulas if you hit "Replace". Of course, if you know what you're doing you can always hit "Replace All". However it's well worth to check at least the first match to catch typos like "ItmSum" for the replacement in this sample:


And of course, the Replace dialog comes with all the glory of Regex enabled Search and Replacements. So if you really want to get fancy you can do something like


which takes all field names starting with "Item" and replaces them with fixed strings containing the former field name. This is quite useful to quickly print something without having the actual data at hand. Our support staff will love this (Lächeln).

Author: Jochen Bartlau
Head of Development List & Label

Jochen Bartlau leads the development at combit as Managing Director. He's a Microsoft .NET enthusiast driving innovation & agile project management. The mobile devices geek who used to be a physicist in his first life loves to spend his spare time with his family.


+1 800 256 3608 (toll-free North America only)