Created
July 11, 2017 18:48
-
-
Save EliJDonahue/eeaae36fa7f35d459509f0c02b22be70 to your computer and use it in GitHub Desktop.
Demonstrates a sub-optimal approach to combining multiple items.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Item configuration = inn.newItem("tmp"); | |
for (int i=0; i<10; i++) | |
{ | |
Item singleItemConfig = inn.newItem("CAD", "add"); | |
singleItemConfig.setProperty("item_number", "Test " + i); | |
configuration.appendItem(singleItemConfig); | |
} | |
configuration.removeItem(configuration.getItemByIndex(0)); | |
Item res = configuration.apply(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment