Use operations other than create, update, or delete.
In this example, a customized operator is used to perform a sum
operation.
- Suppose you have an MBO named MyMBO that has an operator that generates a customized sum. Begin by creating an object instance and assigning values to its attributes, specifying the "Add" operation:
MyMBOAddOperation op = new MyMBOAddOperation(); //MBOName + OperationName + "Operation"
op.Operand1 = 12;
op.Operand2 = 23;
op.Operator = "Add";
op.Save();
- Call the MBO instance's SubmitPending method and synchronize with the generated database:
op.SubmitPending();
SUP101DB.Synchronize();