Book a Demo

Author Topic: Force refresh of Profile Tagged Values  (Read 4590 times)

Hans Olthof

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Force refresh of Profile Tagged Values
« on: May 25, 2010, 12:14:07 pm »
Hi,
I have successfully created and deployed a Profile.
The problem I have struck is that if I make a change to a Tagged Value and re-deploy the profile, the changes to Tagged Values are not applied to existing elements. New Elements are fine.

How do I force a refresh of a profile's stereotype on existing elements?

I believe I saw a post to use Repository.CustomCommand("Repository", "SynchProfile", "Profile=MyProfile;Stereotype=MyStereotype;"), which I recall as addressing this problem, but I can no longer find it in the forums.
I cannot find any documentation on the Repository.CustomCommand method.


regards,
Hans

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Force refresh of Profile Tagged Values
« Reply #1 on: May 25, 2010, 12:28:46 pm »
Hi Hans,

You did a search (for CustomCommand) and the post you want isn't on the list?

There appear to be about a dozen postings soe of which seem directly relevant - but you would be better placed to say yes or no...

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Hans Olthof

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Force refresh of Profile Tagged Values
« Reply #2 on: May 25, 2010, 12:42:20 pm »
Hi Paolo,
Thanks for the quick response.
I've tried all sorts of search terms, and keep coming up blank.
I may appear a bit of a noob here, but there *is* only one search field isn't there (top right  "search the forum" with the magnifying glass)  :P

Can you post a link or two? Or the search terms you used?

regards,
hans

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Force refresh of Profile Tagged Values
« Reply #3 on: May 25, 2010, 01:00:13 pm »
Quote
I may appear a bit of a noob here, but there *is* only one search field isn't there (top right  "search the forum" with the magnifying glass)  :P
There is a row of buttons to the left of that field - the third button says "Search". Use that one (I believe the quick search that you tried uses a default time period that doesn't go far enough back in time to find what you were looking for)

The CustomCommand() call will help you if you're writing an add-in or script. If you don't want to do that, just find the stereotype in either the Toolbox or Resources window, right-click and select the Synchronize command.
« Last Edit: May 25, 2010, 01:00:54 pm by KP »
The Sparx Team
[email protected]

Hans Olthof

  • EA User
  • **
  • Posts: 24
  • Karma: +0/-0
    • View Profile
Re: Force refresh of Profile Tagged Values
« Reply #4 on: May 26, 2010, 12:48:51 pm »
Thanks for the responses KP, Paulo!