updating receipe arguments in a "ForEach" action

hi,
i'm using the SFT ForEach functionality to loop as set of actions. The problem i have is that the actions all use a receipe argument "ClassName", what i want to do is update this argument value at the beginning of each loop. (Each loop is basically a new database table, and ClassName=TableName) .

When I've tried to do this in an action within the loop it tells me the Dictionary service is readonly?

anyone got any ideas?

regards.

[459 byte] By [mickdelaney] at [2008-1-7]
# 1

Hi Mick,

you have to specify in each action the following attributes:

ForEach, which have the IEnumerable instance.

CurrentInputName, which will have the current object in the iteration.

and the IterationGroup, in case that you want to group the iteration.

regarding your question, you should specify the CurrentInputName wich will have the name of the action input property where the value that will be set.

maybe you have to modify your IEnumerable argument to do that.

hth.

jose.

JoseEscrich at 2007-10-2 > top of Msdn Tech,Visual Studio,Visual Studio Guidance Automation Toolkit...
# 2

hi jose,

i've been using the ForEach's successfully with a group of actions each using the same ienumerable & currentinput name, what i wanted to do was have a group of actions in a foreach with the first action in the loop updating a bunch of receipe arguments that the rest of the actions then use. but i got the readonly issue when i tried to update the receipe arguments. i've since changed my design around so the actions dont have to update the receipe arguments, but it would have made for a simpler solution.

regards.

mickdelaney at 2007-10-2 > top of Msdn Tech,Visual Studio,Visual Studio Guidance Automation Toolkit...

Visual Studio

Site Classified