Académique Documents
Professionnel Documents
Culture Documents
Agenda
Page 2
Prompt Macro
Prompt Macro
Syntax:
prompt ( prompt_name , datatype , defaultText , text , queryItem , trailing_text)
Only the prompt_name is required, all other parameters are optional.
Sample:
#prompt('StartingCountryCode', 'integer', '10')#
Page 3
Fact Table
Effective Date
Fact Table
?Join Date?
Effective Date
Entry Date
Entry Date
Order Date
Order Date
Page 4
When the user runs a report that includes the Time Dim and Fact table, they
are prompted to select a date type (to join on).
The lookup table and parameter map arent required, but they make the
technique more user friendly and foolproof.
Page 6
Lookup Table
The lookup table is used as the queryItem in the prompt macro. This
provides the end user with the choices to select from. Our table design has
three different columns for datatypes number, text and date to support
different possible prompt values.
Sample data from the report parameter table. When this table is modelled in
FM, a filter is added for the parm_type so only the relevant options are
returned to the user.
Page 7
Parameter Map
The parameter map takes the user selected value from the queryItem (key)
and converts it to the appropriate data item (value) that will be used in the
join.
Page 8
Optional
preceding text
The report allows the user to select Daily, MTD or YTD totals (for which there
are 3 different columns of data with similar names). The macro resolves the
user selection to the appropriate data item name. The prompt uses a Value
Prompt with Static Choices.
Preceding Text
Trailing Text
The report allows the user to select a Firm type (for which there are 3 types).
The macro resolves the user selection to the appropriate data item name in
the filter expression. The prompt uses a Value Prompt with Static Choices.
User Selects
Clearing Dealer
and 1234
Questions?
Joe Allyn
(303) 768-2670
jallyn@oppenheimerfunds.com