Qlik’s new script editor can rename a table across sections; Replace All stops at the current section
Qlik Cloud gives analytics developers two commands that look similar but act on different things: a recognized script symbol or a matching string of text.
In Qlik Cloud, changing the name of a table in a load script is not the same job as replacing its name as text. The Dec. 1 load-script manual documents two different scopes: Rename Symbol renames a recognized construct across the script; Replace all in section replaces matching text only in the current section. The option to Search in all sections widens the search, not the scope of that bulk replacement command.
Follow references before renaming
Suppose a load script defines a table called OrdersStaging in one section and refers to it in another. If the goal is to rename the table rather than clean up a string, start with the symbol. Qlik’s next-gen editor guide documents Go to Definition, Go to References, and Peek for recognized script constructs. Use those to inspect what the editor recognizes, then put the cursor on the table name and choose Rename Symbol or press F2. Qlik uses renaming all instances of a table as its example in the refactoring documentation.
Use text search for a different question: where does the old spelling still appear? The load-script manual says searching all sections shows the number of matches beside each section label. Review those matches individually. A note that merely mentions the old name is not the same edit as a reference to the table. The documented scope of Rename Symbol is the script; don’t treat it as a promise to update downstream objects. As a rollout check, review the edits and validate a reload on a copy before carrying the change into production. This example illustrates the documented behavior; it is not a hands-on test.
The setting follows the editor user
The editor guide says the new experience is off by default. Turn it on from Next-gen editor → Enable new code editor experience. The setting applies for you across the Data load editor in all applications and the Editor in all scripts. If another author opens the same script and doesn’t see Rename Symbol, check their editor setting before assuming the script itself is different.
sources
comments · 0