The first function I'll add is the execute Action() function.Remember that since is a loosely typed language, I can add any method to any object, and as long as that method exists at runtime, it can be called by code that depends on a method with that name.can enhance UIModel-based data forms and other features. Create a Namespace Next you need to ensure the namespace where you'll create your custom action object exists.Java Script Starters Guide explains how encapsulation, polymorphism, and inheritance, the three tenets of object-oriented programming, are accomplished in referenced by the Food Bank Package Spec (Food Bank. This loads the prerequisite, tables, data forms, data lists, pages, etc. This example also assumes you used the Add Food Bank task to add a few food bank records into the The custom action can pivot to either the Food Bank page (shown here) or the Constituent page On the other hand, if we select "East Cooper Fire Department," which is not a food bank, the custom action directs us to the familiar file (in my case, I named the file "Choose Correct Food Bank Constituent Page Action.js" and placed it in the htmlforms\custom\blackbaud.customfx.foodbank folder within in my UI model project), you are ready to code. Because you add your object to an already-global object (namely the BBUI object), it is very important that you choose a unique name. UIModel project, your action's namespace would be "BBUI.customactions.foodbank." Note that namespace components after the "BBUI" component should be all lower-case, not camel-case or proper-case.Use it at: Data Packagist is a web app that allows you to create and edit Data Packages via a simple and intuitive web form.Let's add the execute Action function using the prototype property of our object.
For more information, see Inheritance in the Java Script Starters Guide.
Add the execute Action Property to the Prototype Now that I created my constructor, I'm ready to add properties to its prototype.