cancel
Showing results for 
Search instead for 
Did you mean: 

Create a link node in tree

Former Member
0 Kudos

I created a web dynpro project which implement a KM file repository constructs by recursion child node. If the node is collection (folder) there is no problem to open it,But if it is not (for example if it is a *.pdf or *.doc or *.txt), I don’t know how can I open it. May be I should somehow cause the node to be a link.

Thanks a head for your help

Message was edited by: Armin Reichert

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Which UI element are you using, Tree or Table + TreeByNestingTableColumn?

Armin

Former Member
0 Kudos

Hi Armin,

I am using Tree UI element.

Former Member
0 Kudos

Hi Yoav,

If I understand you correctly, you may save KM document URL in context element. Next, in handler of onAction action you may access this element, get URL and open document in IFrame or new browser window.

Thoughts?

VS

Former Member
0 Kudos

Hi Valery,

Thanks for the reply.

Two questions left:

1. Will it look like a link after I set its onAction? (I will check).

2. How to trigger the opening of the url? Is there a way to use javascript in the response like in Dynpage?

Thanks ahaed,

Yoav.

Former Member
0 Kudos

1. It will not look like a link. You might add a tooltip to indicate that clicking the node opens the document.

2. Use the IWDWindowManager API to open an external window that displays the content at this URL.

3. You can't use Javascript in Web Dynpro. Remember: Web Dynpro supports not only browsers (HTML clients).

Armin

Former Member
0 Kudos

Hi Anil & Anilkumar,

Thanks for the answers.

I don't see the stars for rewarding, so I guess this topic was accidently not marked as a question when opened.

My apologies for that.

Thanks again,

Yoav.

Former Member
0 Kudos

I marked it as a question for you.

Armin

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

1.Bind the ValueAttribute to the NodeItem and store all the URLs in the ValueAttribute.

2.Bind the same ValueAttribute to the IFrame control also.

3.On Click of TreeItem it will open the URL in the IFrame

Regards, VIP