on 09-28-2009 12:29 PM
Hallo Expoerts,
I'm calling from WD in BIApplicationFrame a Web Template from BI. I would like to pass from WD the values for selection variables and avoid to show the selection screen of the web template. Is there any possibility to do it ?
Greetings
Wojciech
Dear all,
we are also facing the same challenge.
In general a query or a webtemplate can be called with URL parameters, like
&var_name_1=0CALMONTH&var_value_ext_1=03.2009
How is this possible inside a BI Application Frame?
The only alternative we found is to use the IFrame UI Element. But as the IFrame UI Element offers very bad session handling this is no longer in our considerations.
Can please anyone advice on this issue?
Many thanks,
Kind Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For us it looks like that the BI Application Frame does not offer this possibility.
But we are not completely sure.
The only alternative we found is to work with the UI Element LinkToURL and parse the variable values within the url.
But then the webtemplate opens up in an own browser window and is no longer integrated in an WD View.
General Prerequisite is that the webtemplate is set to supress variable screen.
We would like to have it integrated in the view, but do not know how to do it with the given UI Elements.......
I managed to pass the selection variables to the query through BIApplicationFrame. This is how I did it.
1) Added the BIApplicationFrame UI element to the View of the Webdynpro application and named it ZBIQUERY with the following properties relevant to my system.
- dataProviderStateName property is set to my query name which is 'ZPUR_M02_Q08'
- dataProviderStateType is set to 'Query'.
- server is set to 'housapdbw.noble.cc:8000'
- templateId is set to 'ZPUR_M02_W02'
- variableScreen is Unchecked.
2) Added two attributes to the view under the attributes tab. They are
M_APPL_FRAME RefTo CL_WD_BIAPPLICATION_FRAME
M_METHOD_HANDLER RefTo IF_WD_BI_APPLFRAME_METHOD_HNDL
3) Then add the following code in the method WDDOMODIFYVIEW.
data:
lt_parameters type if_wd_bi_applframe_method_hndl=>tt_name_value,
ls_parameters type if_wd_bi_applframe_method_hndl=>t_name_value.
define add_parameter.
clear ls_parameters.
ls_parameters-name = &1.
ls_parameters-value = &2.
append ls_parameters to lt_parameters.
end-of-definition.
if first_time = abap_true.
wd_this->m_appl_frame ?= view->get_element( 'ZBIQUERY' ).
wd_this->m_method_handler ?= wd_this->m_appl_frame->_method_handler.
endif.
Please note that the selection screen on my query has Select-options and its name is
XREF_NUM0001. I am passing a value of '11111' to it as shown below.
refresh lt_parameters.
add_parameter 'CMD' 'PROCESS_VARIABLES'. " This is for Execute button
add_parameter 'SUBCMD' 'VAR_SUBMIT'. " This one also for Execute Button
add_parameter 'VAR_NAME_1' 'XREF_NUM0001'. " Name of my select-option
add_parameter 'VAR_OPERATOR_1' 'EQ'.
add_parameter 'VAR_SIGN_1' 'I'.
add_parameter 'VAR_VALUE_LOW_EXT_1' '11111'. " Value for my select-option
wd_this->m_method_handler->execute_command( lt_parameters ).
endif.
The above code needs to be added before the view is called in th is method.
Hope this helps.
Krishna Muppavarapu
Edited by: Krishna Muppavarapu on Jan 5, 2010 4:34 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.