Upload
william-miller
View
208
Download
0
Embed Size (px)
DESCRIPTION
Business objects Restricting Data
Citation preview
1Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Restricting Data
Module 4
2Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Understanding Conditions
You can restrict a query to return specific data for an object rather than all values
3Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Understanding Conditions (cont)
A Condition has 3 elements:
• Object• Operator• Operand
4Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Understanding Conditions (cont)
• Object: field or column of data
• Operator: specification of the
relationship between the object and
the operand
• Operand: object value to be searched for
5Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Types of Conditions BOA has 4 types of conditions:
–Single- and multi-value conditions
–Prompted conditions
–Multiple conditions
–Predefined conditions
6Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Applying Single-Value Conditions
With a single-value condition, you limit data returned from a single result object.
7Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Applying Single-Value Conditions (cont.)
Equal to
8Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Applying Single-Value Conditions (cont.)
9Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Applying Single-Value Conditions (cont.)
10Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Applying Multi-Value Conditions
When using several values the procedure is similar to single-value except you use a different operator.
11Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Applying Multi-Value Conditions (cont.)
In ListShow list of values
12Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Applying Multi-Value Conditions (cont.)
13Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Applying Prompted Conditions
With a Prompted query condition, BOA asks you to choose which data to retrieve before running the query.
14Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Type the command: or select from the Values “Joint Activities”
Applying Prompted Conditions (cont.)
OK
Joint Activities
Then press Enter or click outside this box.
Then press Enter or click OK.
Type: “Select Command” here.
15Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Applying Prompted Conditions (cont)
16Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
• You can keep track of the data you have retrieved by displaying or printing the contents of your prompt along with the report.
Applying Prompted Conditions (cont)
• This is especially useful in reports that have no column to display the contents of the prompt.
17Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Using Condition Objects
Draw a box with the mouse.
18Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Wildcards in Conditions
Use the following wildcards to search for partial values, a single character, or any number of characters:
_ = a single character
% = any number of characters (including none)
19Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Wildcards in Conditions
Type the pattern: M%Then press Enter or click outside the box. Run the query.
Matches Pattern
20Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Using Relational Operators in Conditions
• Relational operators determine the type of comparison to be made between two values in conditional expressions or between a value and a set of values.
• Relational operators are usually expressed as symbols. In BOA they are represented thus:
= Equal to <> Not equal to> Greater than >= Greater than or equal to
< Less than <= Less than or equal to
21Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Relational operators are primarily used with numeric data and often with dates.
22Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Type the number: 3000Then press Enter or click outside the box.
Using Relational Operators
Right-click and chooseDelete to remove theexisting condition.
23Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Using Relational Operators (cont)
24Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Logical Operators for Multiple Conditions
To apply more than one condition to focus on certain data, use the AND or OR operator. –AND means that both conditions
must be met.
–OR means that either one of the conditions must be met.
25Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Apply simple conditions to the Ccpo ID Description and Curr Pay Plan, by right-clicking on these objects.
Logical Operators (cont)
Run the query
26Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Logical Operators (cont)
27Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
• When specifying 3 or more conditions in a query, the structure of the logical operators assumes a processing priority.
• You must organize your conditions in the appropriate priority for the result you need.
Logical Operators (cont)
28Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
• Display a table showing the number of positions
in all the Commands in CPAC - Japan where there
are “Wage” employees, as well as the number of
positions and their commands, where there are
ANY Wage Grade Non-Supervisory employees.
• Tip: This requires you to use the OR operator.
Logical Operators (cont)
29Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Right click the “And” between the top two conditions andselect “Shift Right” to group those two conditions together.
Double-click the last “And” operator to change it to an “Or” operator. Run the query
Logical Operators (cont)
30Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Logical Operators (cont)
31Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Using Condition Objects
• Predefined conditions use condition objects.
• You can apply one or more predefined conditions when you build a query.
32Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Using Condition Objects (cont)
Create a table that will show Command descriptions and a count of positions that are filled for each command, using a predefined condition from the Civilian Position Class.
Try it . . .
33Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Using Condition Objects (cont)
Double-clickthe desiredpredefinedcondition toapply it to thequery.
Run the query
34Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
Using Condition Objects (cont)
35Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting
EXERCISE TIME