cancel
Showing results for 
Search instead for 
Did you mean: 

How to open document from business content in weby dynpro ?

gerd_hotz
Contributor
0 Kudos

Hello experts,

I've cretaed a webdynpro where I want to display a document which is attached

to a product in tx commpr01 in business content.

I've tested method o_cl_crm_documents->get_with_url , but

there I do not get a url in webdynpro.

Does anybody know another method/fm to display such a document from

business content in webdynpro ?

Thanks and best regards

Gerd

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

It seems that your question is not really Web Dynpro specific. If you can get the URL to the document the of course you would just use a linkToURL UI element. Your question would appear to be more CRM releated as to how to get the URL for the document. I would suggest that you ask in a forum dedicated to your business topic.

gerd_hotz
Contributor
0 Kudos

Hello Mr. Jung,

now I get the URL from the above method,

but now I should now how to open this url with your

linktourl method .

Do you have an example ?

Thanks and best regards

Gerd

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

linkToURL is a UI element in Web Dynpro. A very basic one at that. Here is the online help for linkToURL.

You just need to supply the URL for the document you want to open as the value of the reference property.

gerd_hotz
Contributor
0 Kudos

Hello Mr. Jung,

I'm sorry but I didn't find this method linktourl.

In my web-dynpro I'm getting the url for my document after

cklicking on the selected row.

Then I just want to give this paramter to this linktourl method

and open the document.

How can I implement this method ? which class ?

Thanks Gerd

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

linkToURL is not a method it is a UI element in Web Dynpro. You would need to supply the URL to the resource property of the linkToURL UI element. Most likely from your description you would create a context attribute to hold the value and data bind that context attribute to the resource property.

http://help.sap.com/saphelp_nw70/helpdata/EN/49/e8884118aa1709e10000000a155106/frameset.htm

gerd_hotz
Contributor
0 Kudos

Hello Mr. Jung,

thanks for your help ! Problem is solved now.

The element link2url works !

Thanks and best regards

Gerd

Answers (1)

Answers (1)

gerd_hotz
Contributor
0 Kudos

Has nobody an idea ?