cancel
Showing results for 
Search instead for 
Did you mean: 

hide address bar in pop up

Former Member
0 Kudos

hi all,

We have a requirement in which we had to make a field hyperlink, on click of which a new internet explorer window opens up which shows a document from local cache. this window is a full internet explorer window and contains the address bar too. we need to suppress the address bar. any pointers would be appreciated. IView settings cant be used as we did not create an iView for local document feature. It has been integrated in CRM service. PFB the code written for the same:

METHOD GET_P_DOCUMENT_NAME.
  DATA : wa_files  TYPE ZMCA_ROC_CACHE,
          lv_url    TYPE bapiuri-uri,
          lv_doc_id TYPE bdn_con-bds_docid,
          lr_view   TYPE REF TO ZL_ZMCAENHA_ZMCAROCCACHE_IMPL.

   CREATE OBJECT lr_view.

   CASE iv_property.
     WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
      rv_value = cl_bsp_dlc_view_descriptor=>field_type_link.

     WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
       READ TABLE lr_view->LT_ROC_CACHE INTO wa_files INDEX iv_index.

       rv_value = wa_files-DOC_URL.


   ENDCASE.

ENDMETHOD.


wa_files-DOC_URL contains the URL of the document to be opened.


Kindly help.


Regards,

Sanchit Gupta

Accepted Solutions (0)

Answers (1)

Answers (1)

deepika_chandrasekar
Active Contributor
0 Kudos

Hi,

You can upload your documnt in mime repository. in SE80 choose MIME Repository under path createyour folder and under that upload your document and give that path in the url and check.

METHOD GET_P_DOCUMENT_NAME.
  DATA : wa_files  TYPE ZMCA_ROC_CACHE,
          lv_url    TYPE bapiuri-uri,
          lv_doc_id TYPE bdn_con-bds_docid,
          lr_view   TYPE REF TO ZL_ZMCAENHA_ZMCAROCCACHE_IMPL.

   CREATE OBJECT lr_view.

   CASE iv_property.
     WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
      rv_value = cl_bsp_dlc_view_descriptor=>field_type_link.

     WHEN if_bsp_wd_model_setter_getter=>fp_onclick.

lv_url    = cl_crm_web_utility=>create_url( iv_path = '/sap/bc/bsp/foldernew/newpdf.pdf'

                                             iv_in_same_session = 'X'

                                             iv_no_cookie       = 'X' ). %>


       rv_value = lv_url.


   ENDCASE.

ENDMETHOD.

Regards,

Deepika.

Former Member
0 Kudos

hi Deepika,

we cant use MIME repository as the documents have to be uploaded in local cache due to business requirement. also, the documents are opening fine. everything is working perfectly. we just have to hide the address bar.

Regards,

Sanchit Gupta

navn_metts
Active Participant
0 Kudos

Hi,

I think its not possible to hide the address bar as you are opening it in a new window. Please go through this below link for more info.

http://stackoverflow.com/questions/16603308/hiding-address-bar-in-all-browsers

Br,

Navn