cancel
Showing results for 
Search instead for 
Did you mean: 

How to call different view and LinkToURL on OnAction events of TreeItemtyp

Former Member
0 Kudos

HI,

I have tree node define with treeitemtype attribute as say CHECK in view1, now how do i call the another view define in same webdynpro application on OnAction event of treeitemtype node and other requirement is how to call the LinkToURL properties such as Target set to value 'ABC' on OnAction events of treeitemtype node.

please let me know any reference link or code available.

Thanks,

Digamber.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Thanks Thomas -

on event Onaction for treeitemtype how do i can invoke the LinkToURL refernce field which will open separate window of webpage. please guideme or code snipet will be helpful.

thanks,

digamber.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You don't directly do anything with the LinkToURL, but you can simulate its functionality in a couple of different ways. If you want to navigate within the same browser window, the I would suggest using an Exit Window Plug. You can read more about them and find a sample here:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/ca3351508f04e7e10000000a42189c/frameset.htm

If you want the navigation to open in a new window without disrupting your application, then I would suggest the CREATE_EXTERNAL_WINDOW method of the IF_WD_WINDOW_MANAGER API.

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/43/79f82ccbec6fcde10000000a1553f6/frameset.htm

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks Thomas it works....

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

If you want to perform navigation within an event, you should just fire the corresponding outbound navigation plug.