I have integrated a independent RCP application into Notes 8, I added a “launchSet” extention for it, so I can direct open it in a new Tab, when I check its menuItem(just under the “Web Browser”) in top OPEN menu.
But, how can I launch it from a nsf ? For example, when I check a Action(Button) on a View, some data in this View will be exported as input for my RCP application, and then the RCP will automatic
read those input and be opened in a new Tab.
Please don’t tell me to use CAE, because I don’t want to show my RCP with a nsf component together in a Tab.
Is there a good solution for my question? Or an example something like that. Please help me. Thanks!!!
Look up the expeditor documentation for RcpDCommand. This a simple class that can be contributed to the com.ibm.rcp.core.daemon.command extension point.
The execute() method of this class will then be called whenever rcplauncher.exe is run with certain parameters - and you can do that in a notes action button like this:
Declare Function OSGetExecutableDirectory Lib “nnotes” Alias “OSGetExecutableDirectory” (Byval path As Lmbcs String) As Integer
Dim s As String
s = String(1024, 0)
Call OSGetExecutableDirectory(s)
s = Left(s, Instr(s, Chr(0)) - 1)
Dim rc As Integer
rc = Shell(s+"framework\rcp\rcplauncher.exe -com.something.plugin#launch arg1 arg2 arg3")
where “com.something.plugin” is the plugin contributing the commmand class and “launch” is the name it was contributed under.
The upshot is that your execute method gets called when this lotusscript is run and you have access to the included arguments. You can then open your application’s perspective using SwitcherService.