cancel
Showing results for 
Search instead for 
Did you mean: 

Open another weblink from CRM UI

Subhankar
Active Contributor
0 Kudos

Hi Guys,

I am trying to open new webpage (like google.com etc) from CRM UI. Actually my requirement is to open in pdf image of an invoice from CRM.

When user click on the invoice it will bring the PDF image URL from ECM.

I tried the function module CALL_BROWSER. It is working from GUI but not from UI. 

Could you help me on this.

Thanks in advance.

Subhankar Garani

Accepted Solutions (1)

Accepted Solutions (1)

Caique
Employee
Employee
0 Kudos

Hi Subhankar Garani,

Hope you are doing great!

I didn't try this solution but I guess that it should works.

Create a variable called GV_URL as string in your _IMPL class.

Create a button.

In the event of hte button set the URL like -> GV_URL = 'www.google.com'.

in the view page(.htm)

<% if controller->gv_url is not initial. %>

<script type="text/javascript">

window.open("<%controller->gv_url%>").focus();

</script>

<% clear controller->gv_url.

endif. %>

Let me know if this helped you!

With my best regards,

Caíque

Subhankar
Active Contributor
0 Kudos

Thank you Caíque,

You suggestion is working perfectly fine.

I have created an attribute in IMPL class. Then fill the attribute with ECM URL in the event handler method.

Then I written the below logic in the view HTML page.

<%
  if controller->gv_url is not initial.
%>
<script type="text/javascript">

  window.open("<%= controller->gv_url %>"). focus();

</script>
<%
  clear controller->gv_url.
  endif.
%>

Thanks a lot.

Subhankar

Answers (0)