cancel
Showing results for 
Search instead for 
Did you mean: 

KM Navigation iView (what folder is user looking at)

Former Member
0 Kudos

Hello all,

We have a KM Navigation iView showing the user a directory structure with the KM.

From another iView on the same page would it be possible to query the KM Navigation iView to find out the name of the folder that the user is currently viewing?

Something like... in custom Java iView on same page user clicks button, Java code queries which folder is currently being displayed in the navigaion iView. Is this possible, if so then how would it be done?

Thanks for your time,

Patrick.

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Patrick,

with standard instruments, you cannot. From the KM iView, there is no EPCF event thrown for which you could register for example.

You could try to poke around the JS object hierarchy, analyzing how the KM tree for example is built and if you could access it. Or you could change the implementation to fire EPCF events you could register for... But all this doesn't sound too elegant, does it?!

Hope it helps

Detlev

Former Member
0 Kudos

Neither elegant nor simple I'm afraid.

Thanks Detlev, I imagined there would be no event that I could hook into. I'll update the relevant people

I'd thought about displaying the KM folder in an IsolatedHtmlContainer and then grabbing an event when the user clicks on a link but I had a look at the API of IsolatedHtmlContainer but there is no such event. Can you think of a work around for this, something along these lines?

Thanks again,

Patrick.

detlev_beutner
Active Contributor
0 Kudos

Hi Patrick,

if this use case would be a must for a customer, I think (beneath trying to talk him out of wanting this) I would go the second way I proposed, to implement a derived Renderer for the tree, which additionally will print EPCF JS fragments to raise events when clicking on a folder. Or something around this.

Hope it helps

Detlev

Former Member
0 Kudos

Consider him talked out of wanting this.

Thanks again Detlev.

Answers (0)