35
1 Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting Restricting Data Module 4

Mod 4_restricting_data[1]

Embed Size (px)

DESCRIPTION

Business objects Restricting Data

Citation preview

Page 1: Mod  4_restricting_data[1]

1Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting

Restricting Data

Module 4

Page 2: Mod  4_restricting_data[1]

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

Page 3: Mod  4_restricting_data[1]

3Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting

Understanding Conditions (cont)

A Condition has 3 elements:

• Object• Operator• Operand

Page 4: Mod  4_restricting_data[1]

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

Page 5: Mod  4_restricting_data[1]

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

Page 6: Mod  4_restricting_data[1]

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.

Page 7: Mod  4_restricting_data[1]

7Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting

Applying Single-Value Conditions (cont.)

Equal to

Page 8: Mod  4_restricting_data[1]

8Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting

Applying Single-Value Conditions (cont.)

Page 9: Mod  4_restricting_data[1]

9Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting

Applying Single-Value Conditions (cont.)

Page 10: Mod  4_restricting_data[1]

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.

Page 11: Mod  4_restricting_data[1]

11Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting

Applying Multi-Value Conditions (cont.)

In ListShow list of values

Page 12: Mod  4_restricting_data[1]

12Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting

Applying Multi-Value Conditions (cont.)

Page 13: Mod  4_restricting_data[1]

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.

Page 14: Mod  4_restricting_data[1]

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.

Page 15: Mod  4_restricting_data[1]

15Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting

Applying Prompted Conditions (cont)

Page 16: Mod  4_restricting_data[1]

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.

Page 17: Mod  4_restricting_data[1]

17Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting

Using Condition Objects

Draw a box with the mouse.

Page 18: Mod  4_restricting_data[1]

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)

Page 19: Mod  4_restricting_data[1]

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

Page 20: Mod  4_restricting_data[1]

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

Page 21: Mod  4_restricting_data[1]

21Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting

Relational operators are primarily used with numeric data and often with dates.

Page 22: Mod  4_restricting_data[1]

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.

Page 23: Mod  4_restricting_data[1]

23Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting

Using Relational Operators (cont)

Page 24: Mod  4_restricting_data[1]

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.

Page 25: Mod  4_restricting_data[1]

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

Page 26: Mod  4_restricting_data[1]

26Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting

Logical Operators (cont)

Page 27: Mod  4_restricting_data[1]

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)

Page 28: Mod  4_restricting_data[1]

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)

Page 29: Mod  4_restricting_data[1]

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)

Page 30: Mod  4_restricting_data[1]

30Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting

Logical Operators (cont)

Page 31: Mod  4_restricting_data[1]

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.

Page 32: Mod  4_restricting_data[1]

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 . . .

Page 33: Mod  4_restricting_data[1]

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

Page 34: Mod  4_restricting_data[1]

34Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting

Using Condition Objects (cont)

Page 35: Mod  4_restricting_data[1]

35Modified, with permission, from Business Objects SA copyrighted materials - Introduction to Reporting

EXERCISE TIME