cancel
Showing results for 
Search instead for 
Did you mean: 

How create the link in webdynpro java???

Former Member
0 Kudos

Hi Experts,

i want to create a webdynpro application where i need to create a link, on action that link it should call the another url.

  On action URL i will call the KM documents..

Can anyone tell me how to achieve that ??

Regards,

Mahesh

Accepted Solutions (1)

Accepted Solutions (1)

former_member191044
Active Contributor
0 Kudos

Hi Mahesh,

You can use LinkToUrl UI-Element of WebDynpro and set the attribute "reference" to the url of the KM document. Or what exactly is the problem?

Regards,

Tobias

Former Member
0 Kudos

Hi Tobias,

Thanks for the reply.

Yes i can use the LinkToUrl element, but if i use the linktourl i can download only one document.

I have to create the webdynpro application which access the all the documents in KM.

For ex in KM i have created one folder

  "News"
      --- File 1

      --- File 2

      --- Image 2

In my webdynpro java application i have to display all the information of the News folder which is in KM in my WDjava application.

We can display folder data using the KM navigation iview. But my requirement is i have to display some images + km data in one wdjava pplicaion

How can we insert the images inthe wdjava application???

Please help me on this.........

former_member191044
Active Contributor
0 Kudos

You can preview the Image with the "Image" UI - Element. Just set the url of the image to attribute "source". I think this is what you need.

Former Member
0 Kudos

Hi Tobias,

   I want to download the images or documents which are in the Km into my webdynpro application.

i have searched for the documents in the SDN, but i can find for 7.0 i am 7.3 version.

Is their any helpful documents for 7.3  version where i can download from KM and bind it to my webdynpro attributes..

Regards,

Mahesh

Answers (2)

Answers (2)

Former Member
0 Kudos

                            In below code using display image from KM via WDJ      String path="";   IPrivateKmUploadCompView.IKM_uploadElement ele=null;  ele=wdContext.nodeKM_upload().createAndAddKM_uploadElement(); path="/documents/KMimage.jpg"; IUser sapUser = wdClientUser.getSAPUser(); com.sapportals.portal.security.usermanagement.IUser ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser); //Getting the Resource......... IResourceContext resourseContext = new ResourceContext(ep5User); IResourceFactory resourseFactory = ResourceFactory.getInstance(); RID pathRIDimg = RID.getRID(path); com.sapportals.wcm.repository.IResource resourceimg = resourseFactory.getResource(pathRIDimg, resourseContext); //Reading the image file...... BufferedInputStream bufIn = new BufferedInputStream(resourceimg.getContent().getInputStream()); IWDCachedWebResource cachedWebResource = null;   cachedWebResource = WDWebResource.getWebResource(bufIn, WDWebResourceType.JPG_IMAGE);  cachedWebResource.getUrl(WDFileDownloadBehaviour.ALLOW_SAVE.ordinal()) ;                                                  //sent image to resource context    wdContext.currentContextElement().setDownload(cachedWebResource);

Former Member
0 Kudos

Can you please tell me What all are the KM sca files i need to import in my nwds 7.3??

0 Kudos
Former Member
0 Kudos

Hi Pratusha,

The link which you have provided is netweaver 7.0 but i am using 7.3..