Expand my Community achievements bar.

SOLVED

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

Avatar

Level 8

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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.

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

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.