cancel
Showing results for 
Search instead for 
Did you mean: 

External Html from Web dynpro.

konchada_saikrishna
Active Participant
0 Kudos

Hi All,

I have a static Html page with images as anchors, whose URL point to my WD application with params.

The WD application uses View set, so when ever user clicks exit button in the app, the app sh'd be closed and this static HTML to be called again.

For this I created a exit plug in interfaceviewcontroller with url as param, but it is not closing the app and opening the HTML page, How to acheive this.

or is there any why where we can place this HTML as default to the application, with the same image as action, onclick

we need to call the viewset and views with respect to the params.

and on click of exit replace this viewset with the html page again.

Thanks in advance,

Regards,

Sai.k.k

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sai,

the url parameter ur entering is case sensetive so enter the exit plug parameter should be exactly "Url".

Try this and let me know.

Regards

PP

konchada_saikrishna
Active Participant
0 Kudos

Hi Pavan,

I placed the static html in the mimes/component/ and changed the the param as "Url", now it is working fine.

I searched the forum, and made some changes to the application.

how to make this html page as default to application, and on click how to call a view set

Regards,

Sai.k.k

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

IWDCachedWebResource webReSource =

WDWebResource.getWebResource(

buffer.toByteArray(),

WDWebResourceType.html);

you can use this API . The html code can be in the R/3 or you can write in the Webdynpro also. for image just deploy an image to the server and then use the path in the html code.

Regards,

Gopi

konchada_saikrishna
Active Participant
0 Kudos

Hi Gopi,

Would u please be a bit more clear ur approach, and where to do it.

And as said, I placed the html file in mimes/components/ folder and I could get that html page o click of exit button by calling the interface view controller's exit plug.

For making it as default page, in my default view I am calling the interface view controller's exit plug, but it is giving an error message as :

<i>Instance of interface view controller XYZWindowInterfaceView does not exist</i>

what might be the problem, Please help me ..

Former Member
0 Kudos

Hi,

Try this:

1. In the view's wdDoInit write this code:

try {
String url  = WDURLGenerator.getWebResourceURL(wdComponentAPI.getDeployableObjectPart(),"<fileName>.html");
WDClientUser.forceLogoffClientUser(url);
} catch (WDURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

Regards,

Satyajit.

konchada_saikrishna
Active Participant
0 Kudos

Hi Satyajit,

Your code worked fine,

Please can you tell me how to handle event from this html page in web dynpro if possible,

Also how to add an image to the button in the dialog popups.

Thanks,

Sai.k.k

Former Member
0 Kudos

Hi,

It is not possible to handle events generated from this HTML page in WD.

What dialog pop-ups do you mean?

Regards,

Satyajit.

konchada_saikrishna
Active Participant
0 Kudos

Hi Satyajit,

Dialog popup mean, conformation dialog box.

We will have buttons in that box is'nt,

I need to put link to action with image as a button in that box.

How can we do this.

Regards,

Sai.k.k