If a repeating group implements both an import and an export repeating data view, you may need to allow the user to specify the activity to be performed on each occurrence of the group.
You can accomplish this by specifying a line item action using a work attribute set.
For example, consider a procedure step similar to List Customers that lets a user change or delete a customer's phone number. The following sample code lists the import and export views for this procedure step, named Maintain Customer Phone Numbers.
Data Views for Maintain Customer Phone Numbers
Procedure Step MAINTAIN_CUSTOMER_LIST
Import View
ViewSTARTING of entity CUSTOMER
Attributes:
NAME
Group ViewLISTED_FOR_INPUT
Cardinality Min: 0 Max: 100 Avg: 50
ViewINBOUND of work group DESIGNER_ADDED
Attributes:
ACTION_CODE
ViewINBOUND of entity CUSTOMER
Attributes:
NAME
PHONE_NUMBER
Export Views
Group ViewLISTED_FOR_INPUT
Cardinality Min: 0 Max: 100 Avg: 50
ViewOUTBOUND of work group DESIGNER_ADDED
Attributes:
NAME
PHONE_NUMBER
Note: The appearance of the work attribute Action Code in the repeating group view Listed. You can easily add logic in the Procedure Action Diagram to respond to the value of this work attribute.
The following sample code shows a screen that can be used to represent the data views from the sample code Data Views for Maintain Customer Phone Numbers.
Screen for Maintain Customer Phone Numbers
Customer Phone Number Maintenance Starting Customer Name ===> XXXXXXXXXXXXXXXXX Action Customer Name Phone Number X XXXXXXXXXXXXXXXXXXXXXXXXX (XXX) XXX-XXXX X XXXXXXXXXXXXXXXXXXXXXXXXX (XXX) XXX-XXXX X XXXXXXXXXXXXXXXXXXXXXXXXX (XXX) XXX-XXXX X XXXXXXXXXXXXXXXXXXXXXXXXX (XXX) XXX-XXXX X XXXXXXXXXXXXXXXXXXXXXXXXX (XXX) XXX-XXXX X XXXXXXXXXXXXXXXXXXXXXXXXX (XXX) XXX-XXXX X XXXXXXXXXXXXXXXXXXXXXXXXX (XXX) XXX-XXXX X XXXXXXXXXXXXXXXXXXXXXXXXX (XXX) XXX-XXXX
|
Copyright © 2013 CA.
All rights reserved.
|
|