Forum Discussion
Richard__Harlan
Dec 01, 2011Historic F5 Account
Createing and modify data group
Running into something weird. In my iApp I am creating an empty data group then in a foreach loop I am modify the same group to add records to the list. What happens if the script tries to do the modi...
Brent_Blood_768
Dec 01, 2011Historic F5 Account
Hi Richard,
I don't see anything wrong with your approach in that you should be able to create a data group and subsequently modify it later in the same invocation of the script. I haven't tried to do what you're doing before, but if I have time I'll try it out tomorrow. If we can't come up with a solution to the problem, you will want to open a support case to pursue a possible bug.
However - the approach I'd rather see you take is to modify your script so that rather than creating the data group and then adding records to it one at a time, build up a list of records to add and build a big command to combine with the create call so that you do it all in one shot. This will be more efficient due to making one change rather than many small ones - and it'll avoid the situation since you won't be making calls to modify the data group that you just created.
Cheers,
-Brent
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects