cancel
Showing results for 
Search instead for 
Did you mean: 

Open a PDF file when clicked on a hyperlink

Former Member
0 Kudos

Hello,

I have created a table view and out of the 5 columns 1 column data is hyperlink which displays the pdf file path.

according to this link :

i tried the same code but it seems to be not working, no error nothing is displayed when clicked on the hyperlink.

for testing i have put the code as , even this does not work.

WHEN if_bsp_wd_model_setter_getter=>fp_onclick.

rv_value = 'http://www.google.com'.

Hope some one responds to my issue.

Thanks,

Jaya.

Accepted Solutions (1)

Accepted Solutions (1)

former_member192716
Contributor
0 Kudos

Hi Jaya,

This is how the code in get_p method should be,


METHOD get_p_test_id.

  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.
      rv_value = 'http://www.google.com'.
 ENDCASE.

ENDMETHOD. 

Regards,

Arun

Former Member
0 Kudos

Hi Arun,

Thanks a lot.

I was using this.

WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.

rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.

Now I changed to .... amd it is working.

WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.

rv_value = cl_bsp_dlc_view_descriptor=>field_type_link.

There is another issue that i am facing .... i am posting the same now. Please guide me for that also.

Thanks,

Jaya.

Answers (1)

Answers (1)

Former Member
0 Kudos

As i recall there is a "link" type in crm 7 and you can set it in the get_p of the attribute

and in there you can set the link address as well.

Have you tryed this?

Udi Dekel.

Former Member
0 Kudos

Hi,

No I did not find any 'link' type in get_p .

Can you please elaborate on this exactly where I have to change.

Thanks,

Jaya.