Number appended to name of widget

Support

Support
A public community space for Developers, IT Professionals, Architects, and System Administrators to engage and help each other, share knowledge and best practices, find product documentation and Q&A, and discuss technology oriented topics.

Number appended to name of widget

This question is answered

This is a simple question, but what causes the title of a widget to be appended with a number in parenthesis when it is saved? For example, "My Widget" becomes "My Widget (1)" when saved.

Verified Answer
  • A work around would be to remove the "(2)" and search for the resource "Calendar_UserNavigation_Name" in the xml and change the resource name. Then import the widget. This should prevent the widget from being renamed.

All Replies
  • Do you mean when you download a copy of the widget? If so you probably already have a copy downloaded and it's doing that to not overwrite.

  • I see the suffix appear when I save customizations to the widget. The widget is part of a third-party plugin, but I'm curious what causes the suffix to begin with so I can work around or fix the problem in the short-term while I'm customizing the widget.

  • Hi Robert,

    This usually happens when you import a widget and select "Import as New (renamed)" instead of "Merge".

  • Incidentally, the widget in question is using a resource for the widget title. If I export the customized widget I see this in the XML:

    <scriptedContentFragment name="${resource:Calendar_UserNavigation_Name} (2)" .... />

  • A work around would be to remove the "(2)" and search for the resource "Calendar_UserNavigation_Name" in the xml and change the resource name. Then import the widget. This should prevent the widget from being renamed.

  • I'll give that a try. Do widget resource names need to be unique to the widget? I thought having unique widget GUIDs would have scoped the resources appropriately.

  • You are correct, this may be a bug. If you remove the "(2)" and rename the resource, from "Calendar_UserNavigation_Name" to "Calendar_UserNavigation_Widget_Name" and leave the value. Once saved, this will effectively allow you to get ride of the suffix.

    What version of Evolution are you using?

  • Removing the "(2)" and renaming the resource did resolve the problem. Thanks for the help! I'm preparing an upgrade to 7.6.4.35143.