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 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:
SMP101CustomerOtherOperation *other = [[SMP101CustomerOtherOperation alloc] init];
other.P1 = @"somevalue";
other.P2 = 2;
other.P3 = [NSDate date];
[other save];
- Call the MBO instance's submitPending method and synchronize with the generated database:
[other submitPending];
[SMP101SMP101DB synchronize];