cancel
Showing results for 
Search instead for 
Did you mean: 

How to embed JavaScript in a DynPro View?

Former Member
0 Kudos

Hello,

I hava a standard DynPro application.

I would like to add a link UI which by pressing it will activate a JavaScript function. Can someone please show me how to do it and ingeneral how to embed JavaScpript in a DynPro View?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

1 Create Linkto URl

2.Set refernce to "mailto:a.vippagunta@sap.com"

3.Deploy & Run

It will open outlook message )

Regards, Anilkumar

Former Member
0 Kudos

That simple? I will sure try it and let you know!

Former Member
0 Kudos

By the way, can I combine EPCF inside a DynPro iView?

If yes than how?

Former Member
0 Kudos

Hello Anilkumar,

Well, I tried it, it doesn't work, I receive "404 not found" when I try this...

0 Kudos

You can pass the function to an IframeUI which alows you to run JavaScript like window.print(). I don't know the extend of the script that can be run through the IFrame.

0 Kudos

Just as a matter of curiosity would like to know why do you want to embed a JavaScript in webDynpro

Former Member
0 Kudos

I would like to create a link that by pressing it opens new mail message.

In JavaScript it's easy: simply set <mailto:..> at the link. Can you offer me such an easy solution in DynPro?

Former Member
0 Kudos

Use Link2Url UI control element, here you can define URLs with any protocol browser understand (including mailto:)

VS

Former Member
0 Kudos

This (protocol javascript:) probably works in current releases but in future releases it will be disabled by default for security reasons.

The set of allowed URL protocols will then be configurable in the J2EE server.

Armin

Message was edited by: Armin Reichert

Former Member
0 Kudos

You can't.

Armin