This chapter provides an overview of datasets and discusses how to:
Define dataset rules.
Define dataset roles.
Define mobile data distribution.
Datasets enable role-based filtering and distribution of data. You can limit the range and quantity of data displayed for a user by associating dataset rules with a user's dataset roles. The result of dataset rules is a set of data appropriate to the user’s dataset roles.
You can also limit the range and quantity of data passed to a mobile device by defining data distribution rules based on datasets. Data distribution rules define the selection of data downloaded to a mobile device. The dataset may differ depending on the mobile device.
Note. If you are using PeopleCode to control data distribution, consider using datasets instead.
This section provides an overview of dataset rules and discusses how to create dataset rules.
Dataset rules define datasets for use in conjunction with each dataset role’s security rules. Defining dataset rules creates Structured Query Language (SQL) statements that select the dataset displayed for each rule.
To use dataset rules and roles:
Define dataset rules, which are based on a synchronized record.
You define a dataset rule to return a subset of rows from the selected synchronized record based on the dataset role to which you will link the rule.
These dataset rules are based on views that can join to any record in your PeopleSoft system.
For each rule condition, the user specifies a field that comes from the search record name defined in the dataset rule. When the specified field has neither a prompt or translate table edit, the following system variables, which are delivered as system data to all applications, can be used to filter the condition:
%Blank
%Date
%EmployeeID
%PersonID
%Time
%UserID
Assign the dataset rules to dataset roles according to role security and data requirements.
Each dataset role can have multiple dataset rules. You can use existing dataset roles, or create new dataset roles by selecting from existing PeopleTools security-based user roles.
See Enterprise PeopleTools 8.46 PeopleBook: Security Administration, “Setting Up Roles”
Ensure that the original user roles on which dataset roles were based are associated with appropriate user IDs.
Each user ID can have multiple user roles.
See Enterprise PeopleTools 8.46 PeopleBook: Security Administration, “Administering User Profiles,” Setting Roles
Page Name |
Object Name |
Navigation |
Usage |
Dataset Rules |
EOEC_DATASET |
Enterprise Components, Component Configurations, Datasets, Dataset Rules |
Define the rules that make up a dataset. |
Access the Dataset Rules page.
The number of rule conditions in a dataset rule is limited only by your performance requirements. You can set a series of rule conditions that can navigate through as many records as necessary.
Dataset Rules
Search Record Name |
Select the name of the search record for this rule. You can create a view specifically for use in the rule. |
Status |
Select Active or Inactive. |
Rule Conditions
…(( and ))… |
If the AND or OR field is left blank, specify the nesting level for this condition. Be sure to match opening and closing parentheses. |
Field Name |
Select the field name on which this rule operates. |
Operator |
Specify the operation with which to compare the specified field value. Select from standard conditional operators. |
Field Value |
Specify the value of the specified field against which to compare. |
AND or OR |
For second and subsequent rule conditions, specify AND or OR, or leave blank if the rule statements are nested. |
Test SQL |
Click to test the validity of the rule conditions. The result is returned below the button. |
Show SQL |
Click to view the SQL statement generated by the rule. |
Set up user roles by associating dataset rules with user roles.
Page Name |
Object Name |
Navigation |
Usage |
Dataset Roles |
EOEC_MP_ROLE |
Enterprise Components, Component Configurations, Datasets, Dataset Roles |
Define dataset roles that associate existing PeopleTools user roles with dataset rules. |
Access the Dataset Roles page.
Select an existing dataset role for editing, or create a new dataset role by selecting from existing PeopleTools security-based user roles.
See Enterprise PeopleTools 8.46 PeopleBook: Security Administration, “Setting Up Roles”
Dataset Name |
Select the dataset with which the component rule is associated. |
Rule |
Select the component rule. |
Laptop and PDA |
Select to display the resulting data on a laptop computer or PDA. Note. If neither Laptop nor PDA is selected, no data from this rule is displayed. |
Use datasets to define the data distributed to mobile devices running PeopleTools Mobile Agent. This section provides an overview of mobile data distribution and discusses how to:
Define mobile data distribution rules.
Use mobile user rules.
Mobile devices can have limited processing power, storage capacity, and display space. You can limit the range and quantity of data passed to the mobile device by associating dataset rules with synchronizable component interfaces. Mobile data distribution rules define the selection of data from network servers for download to a mobile device. The result of data distribution rules is a set of data appropriate to the user’s roles. The set of data may differ depending on the mobile device.
Data distribution for mobile applications implements security and filters the data downloaded to the mobile device. You define data distribution for mobile devices based on datasets by selecting dataset rules assigned to the mobile device user’s dataset roles.
Implementing Mobile Data Distribution
To filter data defined by dataset rules to mobile devices, developers must include the function DistributeDataByRules() in the synchronizable component interface's OnSelect PeopleCode method.
For example:
Declare Function DistributeDataByRules PeopleCode FUNCLIB_ECMOBIL.EOEC_ONSELECT FieldFormula; DistributeDataByRules();
See Also
Enterprise PeopleTools 8.46 PeopleBook: PeopleSoft Mobile Agent
Enterprise PeopleTools 8.46 PeopleBook: PeopleCode Language Reference
Page Name |
Object Name |
Navigation |
Usage |
Mobile Data Distribution |
EOEC_MP_RULE |
Enterprise Components, Component Configurations, Mobile, Mobile Data Distribution |
Define data distribution rules for mobile devices based on datasets. |
Mobile User Rules |
EOEC_MP_USRRULE |
Enterprise Components, Component Configurations, Mobile, Mobile User Rules |
Preview the effect of mobile data distribution. |
Access the Mobile Data Distribution page.
Note. Component interfaces selected for mobile data distribution must be synchronizable; only synchronizable component interfaces are available from the prompt.
Laptop Limit |
Select the limiting factor for data instances to be downloaded to a laptop computer during synchronization. Select from: All Data: Select to download all data matching the rule’s conditions. Limit By Count: Select to download only data matching the rule’s conditions up to the specified count. The count is based on the number of rows returned. Referenced data is also included. Referenced Data Only: Select to download only data only if it is referenced by another component. You would be more likely to select this option for setup data than for transaction data. For example, if you have 50,000 products, but the leads you download are related to only 2,000 of the products, select Referenced Data Only so that you only download the 2,000 products, instead of the entire set. If Reference Data Only is selected for products, downloads do not include products unless other objects such as leads and opportunities that reference products are downloaded. |
PDA Limit |
Select the limiting factor for data instances to be downloaded to a PDA during synchronization. Select from: All Data: All data matching the rule’s conditions is downloaded. Limit By Count: Only data matching the rule’s conditions up to the specified count is downloaded. Referenced data is also included. Referenced Data Only: Only data referenced by the component interface is downloaded. |
Laptop Count and PDA Count |
If you select Limit By Count in the Laptop Limit field or the PDA Limit field, specify the maximum number of data instances to be downloaded. |
Dataset Name |
Select the dataset to apply to this mobile data distribution rule. |
Dataset Details |
Click to access the Dataset Rules page, where you can view and modify the selected dataset definition. |
The Dataset Rules grid lists rules for the specified dataset.
Access the Mobile User Rules page.
A mobile user can specify whether a selected data distribution rule returns data to a selected mobile device. The user must be signed in with a user ID, not as an administrator, to define mobile user rules.
Show Rule Count |
Click to view the number of results the mobile data distribution rule returns. |
Show Laptop Count and Show PDA Count |
Click to view the number of results the mobile data distribution rule returns to a laptop computer or PDA based on any limits set for the mobile device on the Mobile Data Distribution page. |
Laptop and PDA |
Select to display the results of this mobile data distribution rule on a laptop computer or on a PDA, or both. Note. If neither Laptop nor PDA is selected, no data from this mobile data distribution rule is displayed. |
Preview Laptop Results and Preview PDA Results |
Click to preview the data that will be downloaded to a laptop or PDA as a result of this mobile data distribution rule and any limits set for the mobile device on the Mobile Data Distribution page. |