cancel
Showing results for 
Search instead for 
Did you mean: 

Pass parameters to WAD displayed in a BiApplicationFrame

Former Member
0 Kudos

Hi All,

I am working on Web Dynpro for ABAP. I am using a "BiApplicatioFrame" UI Element to display a WAD application in my view. By setting values to properties "server" and "Templateid", the WAD application is successfully getting displayed in the BiFrame.

However I also want to pass parameters to this WAD application. I tried following methods of interface IF_WD_BI_APPLFRAME_METHOD_HNDL.

SET_SELECTION_STATE

EXECUTE_COMMAND

I am able to pass the parameters using IFrame as it has a property "source" where you can pass the whole URL. "BiApplicatioFrame" does not provide any such thing.

Thanks in Advance

Kunal Patil

Accepted Solutions (0)

Answers (2)

Answers (2)

karel_cada
Explorer
0 Kudos

Hi, try this.

attribute

BIAPPFRIF_WD_BI_APPLFRAME_METHOD_HNDL

0P_BPART is variable of query

data: lr_bi_control type ref to cl_wd_biapplication_frame,

     lr_container  type ref to cl_wd_uielement_container.

if first_time = abap_true.

     lr_bi_control ?= view->get_element( 'BIAPPFR' ).

     wd_this->BIAPPFR ?= lr_bi_control->_method_handler.

endif.

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.


REFRESH lt_parameters.

add_parameter 'CMD' 'PROCESS_VARIABLES'.

add_parameter 'SUBCMD' 'VAR_SUBMIT'.

add_parameter 'VAR_NAME_1' '0P_BPART'. " Name of my select-option

add_parameter 'VAR_OPERATOR_1' 'EQ'.

add_parameter 'VAR_SIGN_1' 'I'.

add_parameter 'VAR_VALUE_LOW_EXT_1' '0000006009'. " Value for my select-option

* add_parameter 'VAR_OPERATOR_1' 'BT'.

*add_parameter 'VAR_VALUE_HIGH_EXT_1' '0000006010'. " Value for my select-option

*add_parameter 'VAR_NAME_2' '0P_BPART'. " Name of my select-option

*add_parameter 'VAR_OPERATOR_2' 'EQ'.

*add_parameter 'VAR_SIGN_2' 'I'.

*add_parameter 'VAR_VALUE_LOW_EXT_2' '0000006010'. " Value for my select-option

wd_this->BIAPPFR->execute_command( lt_parameters ).

Former Member
0 Kudos

You can pass parameters to the URL.

For that, go to the window default method. Add your parameters there (in the handledefault) method.

Then go to your Web Dynpro Application. Those parameters should now come in the F4 help for parameters.

You can now pass those parameters via your iframe.

Former Member
0 Kudos

Hi Shishir,

Thanks for a quick reply.

I don't want to pass parameters through iFrame. I am able to do so by adding parameter names and values to the WAD URL (Its a BI application URL created using Web Application Designer) and passing this URL to the iFrame using "source" property. This is working perfectly fine and the application is getting displayed in the iFrame.

What I want is "How to pass parameters through BiApplicationFrame". I guess there must some method through which we can do it at runtime.

Regards,

Kunal Patil