cancel
Showing results for 
Search instead for 
Did you mean: 

Access Target URL from KM ?

Former Member
0 Kudos

Hi All,

I want to access Target URL from KM Content in webdynpro application.I need file name from this URL while downloading.

Please helpme out.

Thanks

Risha

Accepted Solutions (1)

Accepted Solutions (1)

former_member185086
Active Contributor
0 Kudos

Hi

Take help from following threads

1.[Obtaining a KM Resource's Explorer URL|/message/481498#481498 [original link is broken];

2.[Authorization from URL to KM-Objects|/message/1311615#1311615 [original link is broken];

Best Regards

Satish Kumar

Answers (3)

Answers (3)

Former Member
0 Kudos

Please see the below thread

ravindra_bollapalli2
Active Contributor
0 Kudos
pravesh_verma
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi ,

I followed pdf.

//KM Content

Content con = new Content(inst,resource.getResourceType().getFileExtension(),-1,"UTF-16");

//create a file in above mentioned path in KM

com.sapportals.wcm.repository.IResource new_resource = (com.sapportals.wcm.repository.IResource) collection.createResource(resourcename, null, con);

//Get Tatget URL from KM

com.sapportals.wcm.util.uri.URL target = new_resource.getTargetURL();

msgMgr.reportSuccess("Target URL : " + target);

Here I am getting target URL is null.

Please help me out.

Thanks

Risha