Name clash with script object "util". How we can resolve?

Avatar

Avatar

tarekahf

Avatar

tarekahf

tarekahf

05-09-2017

In one of the forms, I wanted to use "util.scand()" function, however, I noticed that there is already script object name "util", which is effectively hiding the built-in script "util". The exiting "util" script (embedded) has been used extensively and very risky to rename it now.

How I can resolve this naming conflict with minimum risk?

Tarek

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

radzmar

MVP

Total Posts

2.6K

Likes

385

Correct Answer

485

Avatar

radzmar

MVP

Total Posts

2.6K

Likes

385

Correct Answer

485
radzmar
MVP

06-09-2017

In the XML Source view press [Ctrl]+[H] and replace „util.“ (with a trailing dot) with „utils.“ (or another name).

This will replace all references to the current script object „util“ in the entire template.

Then rename the script object too and you should a habe a template where no object or reference is named „util“ anymore.

Answers (0)