How modify a TaggedValue??

How modify a TaggedValue??

Postby Guest » Thu Aug 25, 2005 9:34 am

Hello, I need to add and sometimes modify the TaggedValues of my generalizations.

The task of creation is ok. I used makeCommandSmCreateTaggedValue(...) to do that.

The problem is when I want to modify the value of the TaggedValue. I try "makeCommandSmSetTaggedValue" but doesnt works.

Anybody can tellme how modify the TaggedValue (in a very descriptive way).

Thanks.
Guest
 

Re: How modify a TaggedValue??

Postby beth » Mon Aug 29, 2005 10:32 am

Here's how Poseidon itself does it:

final Command commandClearValues = commandSmFactory.makeCommandSmClearTaggedValueDataValue(
taggedValueSmId);
final Command commandAssociate = commandSmFactory.makeCommandSmAssociateDataValueToTaggedValue(
taggedValueSmId, value);
final MacroCommand macroCommand = project.getDiCommandFactory().makeMacroCommand(
commandAssociate.getResourceId());
macroCommand.addCommand(commandClearValues);
macroCommand.addCommand(commandAssociate);
macroCommand.execute();
beth
Site Admin
 
Posts: 0
Joined: Tue Feb 20, 2007 3:39 pm


Return to Plug-Ins

Who is online

Users browsing this forum: No registered users and 3 guests

cron