I'm trying to refresh a query using the push / command buttom functionality in BEx 7.0 / BI7, however, it won't work properly. The query is refreshing, but it seems to ignore the paramaters I'm passing it to select a specific dataset. Does anyone have any idea what would cause that? Or does anyone have a lead to specific instructions on how to use this functionality? The ones I have found are either not comprehensive enough or do not address the specfic task of refreshng a query with dynamic variables/paramaters like I'm trying to do.
Here's what I've done:
- From the "BEx Design Toolbox", I inserted a "Button" in cell A1 of my worksheet. From there it inesrted a button on my worksheet and switched BEx to design mode.
- I clicked on the design button to launch the Wizard.
- From the "Select Command Type" section, I selected the "Workbook-Specific Command" radio button and clicked the "Next->" button.
- From the "Workbook-Specific Command" section, I selected "Process Variables" radio button and clicked the "Finish" button. (I did not select the "Display Personalized Variables" checkbox). From there it took me to the "Properties of Button" screen.
- I left the standard values for the properties "Name of Buttion", "Range", and "Button Text" alone.
- I changed the "Command Range" field to $C$1:$E$4. This is where I'm placing my parameters I want the query to process when the query refreshes.
- The "Static Paramaters" include:
- CMD | 1 | SHOW_VARIABLE_SCREEN
- I changed the "Static Paramaters" to the following instead:
- DATA_PROVIDER | 1 | MY_DP_1
- CMD | 1 | PROCESS_VARIABLES
- SUBCMD | 1 | VAR_SUBMIT
- I clicked the "OK" button to close the properties screen.
- In range $C$1:$E$4, I entered teh following "Dynamic Paramaters" to the following (note the apostrophe I added in the 3rd column - I done this both with and without the apostrophe):
- VAR_NAME_1 | 1 | 'MYFIELD1NAME
- VAR_VALUE_EXT_1 | 1 | 'MYFIELD1VALUE
- VAR_NAME_2 | 1 | 'MYFIELD2NAME
- VAR_VALUE_EXT_2 | 1 | 'MYFIELD2VALUE
- I switched back to analysis mode from design mode and ran the query.
After that I would have expected it to refresh the query using the paramaters I provided in cells $C$1:$E$4, howerver, it doesn't. It refreshs the query fine (I can see the refresh time to verify), but it does not use the paramaters I've provided.
What am I doing wrong?