Configuring additional features and settings for Operations
Using transactions in sequence
Use transactions in sequence when one API transaction must first retrieve a value that another transaction needs as input. The transactions must be in the same data service. Use the transaction name and field ID to reference the output from the earlier transaction in the input value of the later transaction, for example, {SearchCOHead.ORNO}.
Sequenced transactions are useful when the component should display or process data that cannot be retrieved in a single API call. For example, one transaction can retrieve an order number, and the next transaction can use that order number to retrieve additional order details.
Using Exclude transaction data from output
Use the Exclude transaction data from output option when a transaction is needed only as an intermediate step in a sequence and does not contribute fields or rows to the component output. This option is especially useful in data grids, where intermediate transactions can otherwise create empty or confusing rows.
For example, a first transaction can retrieve a header value that is needed by a second transaction that lists lines. If only the line data should be displayed in the data grid, exclude the header transaction from the output while still using its values as input to the line transaction.
- Open the data service configuration.
- Edit the transaction used only as an intermediate step.
- On the Properties tab, select the Exclude transaction data from output check box.
- Click on the transaction and the data service.
- Open the component configuration and add output fields only from the transaction to display.
- Click on the component and the application.
Renaming conflicting output IDs
If a data service contains multiple transactions, more than one transaction can return fields with the same ID. When fields have the same ID, the component might not use the correct field. Rename one or more output IDs so that each field that the component must display or use has a unique ID.
Use unique output IDs when two transactions return the same field, such as registration date, status, or description, but the values come from different contexts and the component must access both values.
Specifying File on output fields
Some field IDs exist in several M3 tables and might have different value maps or meanings depending on the table. Use the File column in the data service output to specify which table to use to interpret the field value.
Specifying the File value is useful for fields such as status (STAT). The same field ID might exist in several tables but represent different statuses. Without a value in the File column, the component might display incorrect lookup values or descriptions.
- Open the data service configuration
- Edit the relevant transaction.
- Navigate to the Output tab.
- Find the output field that needs table-specific interpretation.
- Specify the table name in the File column, for example,
OCUSMAfor customer-related values. - Click on the transaction, data service, and application.
- Verify the field in the component, especially if it uses lookup or value map display.
Using multiselect configuration
Multiselect configuration lets a data service transaction run for several selected rows in a data grid. Use multiselect configuration when the same action should be applied to multiple records, such as updating selected order lines or running a transaction for several selected items.
The data grid must allow multiple row selection, and the data service transaction must be configured to use the selected rows as repeated input.
- Open the data service configuration
- On the Rows tab, enable Multiple row selection.
- Add a toolbar button that users select to run the action.
- Create or open the data service that contains the transaction to run for the selected rows.
- On the transaction Properties tab, open Multiselect configuration and select the relevant data grid as the component.
- Configure the transaction input to retrieve values from the selected rows or from a dialog, as needed.
- Connect the data service to an operation in the data grid.
- Add an interaction so that selecting the toolbar button runs the operation.
- Click on the data service, component, and application.
Using Exclude fields with empty values
Use Exclude fields with empty values when empty fields should not be sent to the API transaction. This is important for transactions where empty values are interpreted as actual input and can overwrite, clear, or otherwise affect existing data.
The setting is available for Add and Update transactions. When enabled, empty fields are excluded from the payload sent by the transaction.
- Open the data service configuration.
- Edit the relevant transaction.
- On the Input tab, locate Exclude fields with empty values which is displayed below the data grid.
- Select the check box to prevent empty fields from being sent to the API.
- Click on the transaction, data service, and application.
- Test the transaction with both populated and empty fields to confirm that only the intended values are sent.
Keeping or clearing fields when changing data service
When you change the data service for an operation and the component already has configured fields or columns, a dialog is displayed so you can choose whether to keep the existing field setup, clear the field setup, or cancel the change.
Keeping fields is useful when the new data service is similar to the old data service and you want to preserve field layout, formatting, and related configuration instead of adding those settings again manually. When you keep fields, the system automatically connects matching field names in the new data service.
Effects of keeping or clearing fields on related configuration
- Conditional styling: If you keep fields, conditional styling remains valid for fields that exist in the new data service and have the same name. The system marks fields that are not in the new data service as invalid. You can update those fields to use a new field or remove them.
- Group headers and separators: When you choose Keep fields, the system keeps group headers and separators in Form components. When you choose Clear fields, the system removes them.
- Variables and local variables: Variables that reference a component field, including local variables in link configuration, remain valid if the field exists in the new data service.
- Filter, Select, and Search: Filter, Select, and Search configurations remain valid if the referenced field exists in the new data service and the new data service uses the same transaction type as the previous one, for example List to another List or Search to another Search. Switching between different types, such as List to Search, is not supported. The system clears the fields, and you must add them again.