Creating and Using Macros Mod 11 Flashcards

1
Q

What macros useful for?

A

Useful when you frequently run searches or reports with similar search syntax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When is the time range selected when using a macro?

A

At search time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are Macros?

A

Macros can be a full search string or a portion of a search that can be reused in multiple places

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Macros allow you to define one or more arguments within the search segment and also:

A
  • pass parameter values to macro at execution time

- macro uses values to resolve search string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How would you create a basic Macro?

A
  • settings
  • advanced search
  • search macros
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

After opening search macros what do you need to do to finish?

A
  1. Click New Search Macro
  2. Select the destination app
  3. Enter a name
  4. Type the search string
  5. Save
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What should you do before saving your macro?

A

Test your searhc string before saving your macro. You can check the contents fo your macro with keyboard shortcuts (command-shift-E on Mac OS or control-shift-E on Linux or Windows) from the search bar in the search page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you use a basic Macro?

A
  • Type the macro name into the search bar
  • Surround the macro name with the backtick (or grave accent) character (macroname)
  • Pipe to more commands, or precede with search string
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What must you do when you add arguments to the macro?

A

Include the number of arguments in parentheses after the macro name
- montly_sale(3)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the format you must use in the search definition field of a macro?

A

$arg$ example:

  • currency=$currency$
  • symbol=$symbol$
  • rate=$rate$
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In the arguments field what should be entered?

A

The argument(s)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What should be provided at search time when using a macro?

A

Provide one or more variables of the macro at search time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the order that the arguments should be in?

A

Pass the arguments in the same order as you defined them

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Why should you not create macros with leading pipes?

A

Someone may put a pipe in front of the macro when using it in the actual search string

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Can you validate argument values in your macro?

A

Yes you can.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do you validate your argument values in your macro?

A
  • Validate Expression: you can enter an expression for each argument (the argument must be enclosed in dollar signs)
  • Validation Error Message: message that appears when you run the macro