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":

Replace-Ribbon.png

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

Replace-Dialog.png

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:

Replace-Dialog-With-Errors.png

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

Replace-Dialog-With-RegEx.png

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.


  

RSS
combit Development BlogRSS
What’s this blog for?
A place to share updates about the ongoing development of our products. General musings on the software industry included.
Archive
January 2021 (1)
December 2020 (2)
November 2020 (1)
October 2020 (2)
September 2020 (1)
August 2020 (2)
July 2020 (1)
June 2020 (1)
May 2020 (2)
April 2020 (2)
March 2020 (2)
February 2020 (1)
January 2020 (1)
December 2019 (1)
November 2019 (2)
October 2019 (2)
September 2019 (2)
August 2019 (2)
July 2019 (2)
June 2019 (2)
May 2019 (1)
April 2019 (0)
April 2019 (1)
March 2019 (1)
February 2019 (1)
January 2019 (1)
December 2018 (1)
November 2018 (2)
October 2018 (4)
September 2018 (4)
August 2018 (2)
July 2018 (2)
June 2018 (2)
May 2018 (1)
April 2018 (1)
March 2018 (1)
February 2018 (2)
January 2018 (1)
December 2017 (1)
November 2017 (2)
October 2017 (3)
September 2017 (3)
August 2017 (2)
July 2017 (2)
June 2017 (1)
May 2017 (2)
April 2017 (1)
March 2017 (1)
February 2017 (1)
January 2017 (2)
December 2016 (1)
November 2016 (1)
October 2016 (4)
September 2016 (5)
August 2016 (2)
July 2016 (2)
June 2016 (3)
May 2016 (2)
April 2016 (3)
March 2016 (3)
February 2016 (1)
January 2016 (2)
December 2015 (2)
November 2015 (1)
October 2015 (4)
September 2015 (5)
August 2015 (2)
July 2015 (2)
June 2015 (2)
May 2015 (1)
April 2015 (2)
March 2015 (1)
February 2015 (1)
January 2015 (1)
December 2014 (2)
November 2014 (1)
October 2014 (1)
September 2014 (2)
August 2014 (1)
July 2014 (2)
June 2014 (1)
May 2014 (2)
April 2014 (1)
March 2014 (2)
+1 800 256 3608 (toll-free North America only)