Is Rename of a Tag possible.

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
Brian
Posts: 13
Joined: Thu Oct 18, 2012 10:24 am

Is Rename of a Tag possible.

Post by Brian »

If I simply change a tag name in a project (compiled OK) as this example:

Current name:
R1_value123

To:
R2_value123

Then the next build fails.

Is this not possible??

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Is Rename of a Tag possible.

Post by mark.monroe »

The tag name is associated with an action, and when you rename a tag, the tags used in an action are not renamed. Which means they point to tags that do not exist.

That means you need to manually go through your actions and have them use the new tag name. You can do a search and replace in the Xaml section of the screens that use the tag you want to change. If you have many screens, or use the tag in components like the datalogger, then you can do the search and replace outside of iX Developer using Notepad++.

Just make sure your project is not opened in iX Developer when you do it. You need to be careful when you directly edit xml files outside of iX Developer because you can corrupt your project.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Brian
Posts: 13
Joined: Thu Oct 18, 2012 10:24 am

Re: Is Rename of a Tag possible.

Post by Brian »

Mark, I tried doing the XMAL thing. All the R1_ tags are present in the Tag List, as are all the R2_ tags.

Opened a simple screen, used search/replace. Finds all the locations.

But the compile fails.

Also, did this...

Open screen(s), changed actions from R1_ to R2_ tag for a PB.
Deleted the R1_ tag name

Compile fails... still looking for R1_ tag name.

Attached screen shot shows that there is no R1_ tag name used. But, the cross reference for the R1_ tag, after changing the button action, but prior to deleting the R1_ tag, showed that it was referencing the "changed" button(s).
Attachments
strange error message
strange error message
explain_this.jpg (181.92 KiB) Viewed 9934 times

Brian
Posts: 13
Joined: Thu Oct 18, 2012 10:24 am

Re: Is Rename of a Tag possible.

Post by Brian »

ok.. I rectified this error message

Deleted and rebuilt the PB

And, for some reason, the R2_Alarm screen had a "blank" action associated with it. Never had one originally but it was there.

I have a suspicion that renaming screens arbitrarily adds actions.

After making a lot of screen name changes...
I have had weird screen changes that were fixed by making a new screen, copying all the objects to it, deleting the old screen and then renaming it.

Still have a big issue with not being able to edit a tag name and have the system take care of making all changes to its use. After all, does not everything "start" with the tag name??

mark.monroe
Posts: 824
Joined: Tue Mar 13, 2012 9:53 am

Re: Is Rename of a Tag possible.

Post by mark.monroe »

The name is the only thing that is used to associate tags and actions. They are not linked in any other way. When you renamed the tag in Xaml, iX Developer must've not pick it up as a change. You can try Rebuilding, not building, your project. You also may need to click back to the Screen view and off the Xaml view to get iX Developer to refresh the references.

Unfortunately there is no global search and replace, it would be nice to have.
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer

Brian
Posts: 13
Joined: Thu Oct 18, 2012 10:24 am

Re: Is Rename of a Tag possible.

Post by Brian »

The ONLY method that I can use to change tag names is to edit objects on the screen 1 by 1. Slow and stupid way to do things.

I opened a screen.
Used XMAL to replace all R1 tags with R2 tags.
Tags on screen did change.
However, the cross reference for the R1 tag still shows it being used on the screen.
If the R1 tag is deleted, then the build fails because this cross reference is still "hanging around" somewhere???

And, why not a complete cross reference list, or at least a dynamic one? I must select each tag and then the cross ref tab and then go to the next tag and re-select cross ref.

SUBJECT CLOSED

Post Reply