on 10-10-2008 11:02 AM
Hi,
In ICWC we have a table view, one of the column in this table is field type link, which when clicked opens a pdf file.
Can anybody give some hints on how this works, how this PDF gets opened.
Component -- IUICOVBC , View -- BiCons,
Context Node -- BILLCONS, Attribute -- OPBEL
Regards,
chandan
Hi Harish,
I have checked in that method, it just constructs a url, but i couldn't find anything more than that in that method, could you please give some more details on where exactly is this new page for pdf created or opened
Regards,
chandan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhinav,
nice to see you in SDN....for displaying the PDF in ICWC through link or button..then follow the below process..
1) create a smart form ..then create a zclass and a method in it write the code to call smart from ..and convert the samrt from to te pdf format using the Fm(Don't rememer that).
2) Then call event on click of button or link in ICWC and then use class CL_CRM_PDF_PRINT=>GET_URL method to get URL in that event method.
3) Then pass that URL to call_pop_up method..as below..
Note: add the component GSURLPOPUP in the component usage..
DATA: lv_title TYPE string,
ls_params TYPE crmt_gsurlpopup_params,
lr_cn TYPE REF TO cl_bsp_wd_context_node,
lr_popup TYPE REF TO if_bsp_wd_popup,
lr_obj TYPE REF TO if_bol_bo_property_access.
CHECK iv_url IS NOT INITIAL.
lv_title = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT_GEN/PRINT_PREVIEW_POPUP_TITLE' )."#EC NOTEXT
lr_popup = me->comp_controller->window_manager->create_popup( iv_interface_view_name = 'GSURLPOPUP/MainWindow'
iv_usage_name = 'CUGSURLPopup'
iv_title = lv_title ).
lr_cn = lr_popup->get_context_node( 'PARAMS' ). "#EC NOTEXT
lr_obj = lr_cn->collection_wrapper->get_current( ).
ls_params-url = iv_url.
ls_params-height = '700'. "#EC NOTEXT
lr_obj->set_properties( ls_params ).
lr_popup->set_display_mode( if_bsp_wd_popup=>c_display_mode_plain ).
lr_popup->set_window_width( 700 ).
lr_popup->set_window_height( 700 ).
lr_popup->open( ).
Thanks
Snehasish
Hello Chandan,
Just check out the handler method for this field attribute and you will come to know how or from where the pdf file is opened. Find out in the GET_P_OPBEL method the event handler invoked at the clik. In this handler method find out the source and the process by which the pdf file is called.
Let me know if you need further details.Reward if found useful.
Regards,
Harish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
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.