Ridiculous Lay-abouts
Redacted because I'm old and no longer relevant, not due to copyright - which honestly probably lapsed in 1968
var queryService = new BLACKBAUD.api.QueryService();
var designationQueryId = "5b2b7fc4-c932-4a7b-ae8e-fdb4a83de363";
queryService.getResults(BBI.Defaults.designationQueryId, function (data) {
var fields = data.Fields; // Column headers
var rows = data.Rows; // Designation values
var fieldArray = []; // New array to store key value pairs for Field Data
// Loop through headers to create key value index
$.each(fields, function (key, value) {
fieldArray[value.Name] = key;
});
$.each(rows, function () {
var values = this.Values;
var designationID = values[fieldArray['System record ID']];
var designationName = values[fieldArray['Public name']];
$('#designationAreaDropdown').append('<option value="' + designationID + '">'
+ designationName + '</option>');
});
});
BLACKBAUD.api.customPartEditor.onSave
Triggered when user hits the save button.
BLACKBAUD.api.customPartEditor.settings
The bridge between edit and display.
Saves your "settings".
Returns your "settings".
And much the same concept as a .NET part, but it's all JavaScript...
and HTML...
and CSS...
https://bbis5740pswebdev1.blackbaudhosting.com/cms/contentpartadmineditor/id/10004?cid=10004&bm=1167851440
It's not actually funny but the people who just downloaded the slide deck don't need to know.
https://bbis5740pswebdev1.blackbaudhosting.com/