The next example using transacted variable parts will be illustrated with editable container parts. We will build a view that shows the list of all departments in a Container Details part in which the values can be edited directly in the container cells. We will show the departments that can be modified in the top-level transaction, we will have a non-editable container that shows the shared transaction.
The next step is to ensure that the transacted variabe will surface the collection of TstDepartment objects in the context of the shared transaction. By default, this will occur because if a transacted variable is not given an explicit transaction it will always use the shared transaction. However, we can also explicitly specify this by adding the shared transaction part and connecting its self attribute to the transaction attribute of the transacted variable containing the department home collection.
The next step is to add another Container Details part that will allow the departments to be listed.
Recall that department is the OID or key attribute for the department class and that key atttibutes cannot be modified.