Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Sinfonia in Domino RE - Integrazione Symphony e Lotus Notes 8.x

1,452 views

Published on

  • Be the first to comment

Sinfonia in Domino RE - Integrazione Symphony e Lotus Notes 8.x

  1. 1. Sinfonia in Domino Re Productivity Tools Ensemble Orchestra Autore: Fabrizio Marchesano Professione: Domino Developer
  2. 2. Guida all'ascolto ...
  3. 3. Esce un nuovo prodotto software... <ul><li>Interfaccia grafica differente </li></ul><ul><li>Comandi modificati </li></ul><ul><li>Incompatibilità dei formati </li></ul>Reazione dell'utente:
  4. 4. Esce una nuova versione di un software già in uso... <ul><li>Interfaccia grafica differente </li></ul><ul><li>Comandi modificati </li></ul><ul><li>Incompatibilità dei formati </li></ul>Reazione dell'utente:
  5. 5. Voi rispondete... Se il cliente vi chiede... <<Perché dovrei assegnare delle risorse al pilot di un software alternativo a quello che ho già?>> <<Perché si tratta di un prodotto gratuito, senza costi di aggiornamento e svincolato da formati proprietari>> <<Perché è un software espandibile, programmabile, adattabile a specifiche esigenze, completamente personalizzabile, disponibile gratuitamente, senza costi di aggiornamento, svincolato da formati proprietari, supportato da IBM>>
  6. 6. IBM Lotus Symphony è una Sinfonia Concertante per Productivity Tools e Sviluppatore in cui è quest'ultimo a scrivere la Cadenza
  7. 7. IBM Lotus Symphony Primo movimento Allegro con brio (Lotus Script)
  8. 8. Set xlApp = CreateObject ( &quot;Excel.Application&quot; ) xlApp.Visible =True Set xlWb = xlApp.WorkBooks.Add () Set xlWs = xlWb.WorkSheets.Add () xlWs.Name = &quot; my Sheet Name &quot; xlWs.Range ( &quot;A1&quot; ) .OffSet ( 0 , 0 ) .Value = &quot;my A1 Value &quot;
  9. 9. 'Set xlApp = CreateObject(&quot;Excel.Application&quot;) 'xlApp.Visible=True 'Set xlWb = xlApp.WorkBooks.Add() 'Set xlWs = xlWb.WorkSheets.Add() 'xlWs.Name= &quot; my Sheet Name &quot; 'xlWs.Range(&quot;A1&quot;).OffSet(0,0).Value=&quot;my A1 Value &quot; Set SM = CreateObject ( &quot;com.sun.star.ServiceManager&quot; ) Set Desktop = SM.createInstance ( &quot;com.sun.star.frame.Desktop&quot; ) Set oArgs ( 0 ) = SM.Bridge_GetStruct ( &quot;com.sun.star.beans.PropertyValue&quot; ) oArgs ( 0 ) .Name = &quot;Hidden&quot; oArgs ( 0 ) .Value = False Set ODFDoc = Desktop.loadComponentFromURL ( &quot;private:factory/scalc&quot; , &quot;_blank&quot; , 0 , oArgs ) Call ODFDoc.getSheets () .insertNewByName ( &quot;my Sheet Name&quot; , 0 ) Set ODFSheet = ODFDoc.Sheets.getByName ( &quot;my Sheet Name&quot; ) Call ODFSheet.getCellRangeByName ( &quot;A1&quot; ) .getCellByPosition ( 0 , 0 ) .setString ( &quot;my A1 Value&quot; )
  10. 10. '.Font.Bold=True .CharWeight = 150 '.HorizontalAlignment=3 .setPropertyValue ( &quot;HoriJustify&quot; , 2 ) '.EntireColumn.AutoFit .OptimalWidth = True '.Bookmarks(bName).Range.Text = bValue .getBookmarks () .getByName ( bName ) .getAnchor () .setString ( bValue ) ' &quot;C:myDoc.&quot;+myExtension &quot;file:///C:/myDoc.&quot; + myExtension '.Save .storeToURL ' .Content.Find.Execute .createReplaceDescriptor () ' .Selection.InlineShapes.AddPicture picName, False, True .executeDispatch ODFDoc.CurrentController.Frame , &quot;.uno:InsertGraphic&quot; , &quot;&quot; , 0 , pArgs () and stay tuned for more...
  11. 11. IBM Lotus Symphony Secondo movimento Andante con moto (Macro)
  12. 12. Dim NS As New NotesSession Dim Db As NotesDatabase NS.Initialize (&quot;&quot;) Set Db = NS.GetDatabase(&quot;myServer&quot;, &quot;myDb.nsf&quot;, False ) ... ... ...
  13. 13. Dim oleService As Object Dim NS As Object Dim Db As Object oleService=createUnoService(&quot;com.sun.star.bridge.OleObjectFactory&quot;) NS=oleService.createInstance(&quot;Lotus.NotesSession&quot;) NS.Initialize(&quot;&quot;) Db=NS.GetDatabase(&quot;myServer&quot;,&quot;myDb.nsf&quot;, False) ... ... ...
  14. 14. IBM Lotus Symphony Terzo movimento Allegro (Plug-ins)
  15. 15. Sviluppo plug-ins: i nostri strumenti <ul><li>Lotus Symphony SDK </li></ul><ul><li>Lotus Expeditor Toolkit </li></ul><ul><li>Eclipse SDK </li></ul>IBM Lotus Symphony Developer's Guide + Hello World sample =
  16. 16. parent.setLayout( new FillLayout()); Label helloLabel = new Label(parent, SWT. CENTER ); helloLabel.setText( &quot;Hello World!&quot; );
  17. 17. parent.setLayout( new GridLayout()); Group group = new Group(parent,SWT. NONE ); group.setLayoutData( new GridData(GridData. FILL_BOTH )); group.setLayout( new GridLayout()); Button loadButton = new Button(group,SWT. NONE ); loadButton.setText( &quot;Hello Notes!&quot; ); loadButton.setLayoutData(new GridData (GridData. BEGINNING ,GridData. BEGINNING , false , false )); loadButton.addSelectionListener( new SelectionAdapter(){ public void widgetSelected(SelectionEvent arg0){ MessageDialog. openInformation (getSite().getShell(), &quot;My Hello Notes plug-in&quot; , &quot;Hello Notes!&quot; ); } });
  18. 18. Sviluppo plug-ins: le nostre Keynotes <ul><li>Installed JREs </li></ul><ul><ul><li>Lotus Domino JRE </li></ul></ul><ul><li>External JARs </li></ul><ul><ul><li>Notes.jar </li></ul></ul><ul><li>Runtime JRE </li></ul><ul><ul><li>Lotus Domino JRE </li></ul></ul><ul><li>VM Arguments </li></ul><ul><ul><li>Java Library Path </li></ul></ul>try { NotesThread. sinitThread (); Session s=NotesFactory. createSessionWithFullAccess (); Database Db=s.getDatabase( &quot;myServer&quot; , &quot;myDb.nsf&quot; ); MessageDialog. openInformation (getSite().getShell(), &quot;My Hello Notes plug-in&quot; , Db.getTitle()); } catch (NotesException e) { e.printStackTrace(); }
  19. 19. IBM Lotus Symphony Quarto movimento Allegro (Composite Applications)
  20. 20. Composing Symphonies on Composite Applications: Notes View Symphony View
  21. 21.
  22. 22. Fonte: http://www.ibm.com/developerworks/blogs/page/CompApps?entry=symphony_spreadsheet_editor_to_display
  23. 23. Sinfonia n. 25, KV 183 in Sol minore IBM LOTUS DOMINO IBM LOTUS SOLMINO
  24. 24. Avete ascoltato: SINFONIA IN DOMINO RE Composer: Perfomer: Fabrizio Marchesano, Frame Srl GRAZIE PER L'ATTENZIONE
  25. 25. I Nostri Sponsor

×