Quantcast
Channel: SCN : Popular Discussions - Floorplan Manager for Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 1726

Link to URL in FPM FORM UIBB does not work

$
0
0

Hello,

I have tried to display URL on FPM FORM uibb but I could not get it to work and just to let you know, I tried to follow the SCN thread http://scn.sap.com/thread/3163322.

 

I have implemented the method IF_FPM_GUIBB_FORM~GET_DEFINITION of my custom feeder class Z**** as follows.

 

Types: BEGIN OF ty_link,

              zurl          TYPE string,

              Zabs_url   TYPE string,

            END OF ty_link .

 

 

Method IF_FPM_GUIBB_FORM~GET_DEFINITION.

 

DATAls_field           TYPE fpmgb_s_formfield_descr,

           l_component    TYPE abap_compdescr.

 

   eo_field_catalog ?= cl_abap_tabledescr=>describe_by_name( 'TY_LINK' ).

 

   LOOP AT eo_field_catalog->components INTO l_component.

     CLEAR: ls_field.

     CASE l_component-name.

       WHEN 'ZURL'.

         CLEAR: ls_field.

         ls_field-name                        = l_component-name.

         ls_field-label_text                  = 'Click Link'.

         ls_field-default_display_type  = 'LU'.

         ls_field-link_ref                     = 'ZABS_URL'.

         APPEND ls_field TO et_field_description.

     ENDCASE.

   ENDLOOP.

Endmethod.

 

Then I implemented method IF_FPM_GUIBB_FORM~GET_DATA to get populate the URL reference field ZABS_URL.

 

Method IF_FPM_GUIBB_FORM~GET_DATA.

data: ls_field_usage like line of ct_field_usage.

 

   field-symbols: <fs_data> type ty_link.

 

   assign cs_data to <fs_data>.

   <fs_data>-zabs_url  = 'https://www.google.com/'.

   ev_data_changed    = 'X'.

 

Endmethod.

 

Here's what I see as output (link is not clickable):

 

not_clickable.jpg


Viewing all articles
Browse latest Browse all 1726

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>