Create a Task to Open an Add Data Form
You can create a task to open an Add Data Form with the SDK or use Shell Design. For more information about Data Form Specs, see Data Form Specs. For more information about Shell Design, see Data Forms and Shell Design.
SDK Task Spec
From Visual Studio with the Blackbaud Infinity SDK installed and a catalog project open...
-
From Solution Explorer, right-click the project and select Add > New Item. The Add New Item screen appears.
-
Select Blackbaud AppFx Catalog > Task Spec.
-
Enter a name such as Example.Task.xml.
-
Click Add. The spec appears in the XML Editor.
-
From the application, navigate to Administration > Application > Shell Design.
-
From the Functional Areas tab, expand the row for the functional area to which to add the task.
-
Click View XML.
-
Copy the GUID value of the ID attribute for the FunctionalAreaSpec element.
-
Return to the Task Spec.
-
Paste the GUID value as the value for the FunctionalAreaID attribute for the TaskSpec element.
-
Change the description.
-
Enter an integer value for Sequence. You can see the sequence numbers for existing tasks on the functional area from the Tasks tab on the Shell Design page.
-
Find an ImageKey or remove the ImageKey element.
-
Replace the stubbed-out inner content of the TaskSpec element with:
<ShowAddDataForm DataFormID="" xmlns="bb_appfx_commontypes" />
-
Return to the application.
-
From Administration > Features, click Data form search. The Loaded Data Form Instance Search screen appears.
-
Search for and select the Add Data Form to open with the task. The feature metadata page for the Add Data Form appears.
-
Copy the System record ID value from the summary section of the page.
-
Return to the Task Spec.
-
Paste the GUID value as the value for the DataFormID attribute for the ShowAddDataForm element.
-
Save the spec.
-
Build the catalog assembly and deploy it. If this is a new task, load the catalog item.
Shell Design
-
From Administration > Application > Shell Design.
-
Under Appearance, enter a name and description.
-
Select the functional area to which to add the task.
-
From ActionType, select ShowAddDataForm.
-
Under Data form, from DataForm, search for and select the data form instance.
-
Click Save. The task is added to the functional area.