cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

External Html from Web dynpro.

saikrishna186
Active Participant
0 Likes
292

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

View Entire Topic
Former Member
0 Likes

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

saikrishna186
Active Participant
0 Likes

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 Likes

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.

saikrishna186
Active Participant
0 Likes

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 Likes

Hi,

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

What dialog pop-ups do you mean?

Regards,

Satyajit.

saikrishna186
Active Participant
0 Likes

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