cancel
Showing results for 
Search instead for 
Did you mean: 

Popup used component's view

Former Member
0 Kudos

hello,

lets say i have 2 DC's

one of them uses the another.

Lets call them DC 1 and DC 2.

DC1 has the main window, and the DC2 has the view i want to poup.

i defined usage between them, but i cant figure out the piece of code needed to popup a view from DC2 from this DC1.

i want to keep the handling of the closure of the window inside DC2.

what needs to be done? thanks!

Accepted Solutions (0)

Answers (2)

Answers (2)

junwu
Active Contributor
0 Kudos

nothing special, just create the popup window in dc1.

and embed the interface view(from dc2) to that window

Former Member
0 Kudos

yes,

but that way the window does not display any close options..

Meaning.

I want to get the reference of the window that is contained in the interface view of DC2, then popup it.

lets say we have this piece of code:

wdThis.wdGetMIMENUController()

.wdGetAPI().getComponentInfo()

.findInComponentUsages("myUsedComponent")

.getUsedComponent().findInInterfaceViews("MainWindowInterfaceView")

but instead of my controller i want to get the API of the used controller (component) that is coming from DC2.

Edited by: Eli Eren on Mar 6, 2012 10:07 AM

srinivas_sistu
Active Contributor
0 Kudos

Hi,

did u add the required controlers to the view where you are creating this pop-up. If you add the required controlers in the view properties, then you should be able to access the component controller of the used DC. Hope this helps.

Regards,

SrinivaS

junwu
Active Contributor
0 Kudos

regarding close button, depend on your nw version, it has different solution.