on 07-28-2015 8:55 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.