mickdelaney

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.


Re: Visual Studio Guidance Automation Toolkit updating receipe arguments in a "ForEach" action

Jose Escrich

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.






Re: Visual Studio Guidance Automation Toolkit updating receipe arguments in a "ForEach" action

mickdelaney

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.