If you have spent any time at all working in Bungee Connect, then it’s likely that you have seen that the Collection type is a fundamental tool for every project you work on. If you know how to use Collections effectively, your development skills in Bungee Connect go way up.
For that reason, the Education team at Bungee Labs has just wrapped up a first edition of sample code for all the functions found on the Collection runtime type. They are now available for you to import into your Bungee Connect workspace and check out.
To get at the sample code, log into Bungee Connect, and do the following steps:
- Switch to the Design tab (main IDE window, locate the Home tab, and then expand Open Example Code.
- Select Collection, and then click Create New to import the sample code into a new solution.
- Supply a solution name and DesignGroup, and click okay.
This opens a new solution in Builder, containing a TypeLib called Collection (along with a couple supporting projects). Now you can open the Function_Examples class and start simulating forms. (See the screenshot at right.)
Each form shows the use of one or more functions from the Collection type, each using the same code base, a collection field called people. Below, I have included a screenshot showing the Collection.findValue example. The buttons are configured to pass all parameters, so be sure to check out the Parameters property (Behavior tab) for each button to see what data is getting passed into and out of each function.
Be sure to also check out the documentation page for the Collection type, which explains each function, and many other aspects about collections. If you find this example code helpful to your learning, please drop a comment on this post so that we know to create more of this kind of stuff.
Director of Developer Programs