Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3257

unable to pass parameter value from ui to get entity set???

$
0
0

hi

we are try to send parameter value from ui to get entity set.

 

but unable to get value in get entity set.

 

odata model

 

1.png

method COUNTSET_GET_ENTITYSET.

 

   DATA : ls_entityset TYPE ZCL_ZCOUNT_MPC=>TS_COUNT.

 

 

   DATA: lt_users TYPE TABLE OF zfiori_test,

         wa_users TYPE  zfiori_test,

         lo_message_container  TYPE REF TO            /iwbep/if_message_container,

          lt_filters            TYPE                   /iwbep/t_mgw_select_option,

          ls_filter             TYPE                   /iwbep/s_mgw_select_option,

          ls_so                 TYPE                   /iwbep/s_cod_select_option,

          lt_product_id         TYPE TABLE OF          BAPI_EPM_PRODUCT_ID_RANGE,

          ls_product_id         TYPE                   BAPI_EPM_PRODUCT_ID_RANGE.

 

   DATA: l1(10) TYPE c.

 

   DATA:     lt_keys       TYPE /iwbep/t_mgw_tech_pairs,

             ls_key        TYPE /iwbep/s_mgw_tech_pair,

             lV_date       TYPE dats.

 

   DATA :   lt_key_tab TYPE TABLE OF /IWBEP/S_MGW_NAME_VALUE_PAIR,

            ls_key_tab TYPE /IWBEP/S_MGW_NAME_VALUE_PAIR.

 

   lt_filters = io_tech_request_context->get_filter( )->get_filter_select_options( ).

   READ TABLE lt_filters WITH TABLE KEY property = 'ITEMRECORDS' INTO ls_filter.

 

   LOOP AT ls_filter-select_options INTO ls_so.

     MOVE-CORRESPONDING ls_so TO ls_product_id.

     INSERT ls_product_id INTO TABLE lt_product_id.

   ENDLOOP.


------------------------------------------------------------------------------------------------


ui5 code


var oConfig = {

                                                metadataUrlParams: {},

                                                json: true,

                                                // loadMetadataAsync : true,

                                                defaultBindingMode: "TwoWay",

                                                defaultCountMode: "Inline",

                                                useBatch: true

                                };

                                var passingUrl = "/CountSet?$filter=Itemrecords eq ('20150730')";

                                var oModel = new sap.ui.model.odata.v2.ODataModel(sServiceUrl, oConfig);

                              oModel.read(passingUrl);

                                this.setModel(oModel);

                                debugger;

-------------------------------------------------------------------------------------------------

 

and if try to gw_client its working with same url

 

but unable to pass valur from ui5 to get entity set

 




Viewing all articles
Browse latest Browse all 3257

Trending Articles