37 messages in org.openoffice.fr.progRE: [prog] Navigation au sein des for...
FromSent OnAttachments
Arnaud LAURENSON - Costes GestionAug 24, 2005 7:07 am 
Christophe LiénardAug 24, 2005 9:18 am 
chris drauxAug 24, 2005 11:09 am 
JovialAug 24, 2005 1:06 pm 
Bernard MarcellyAug 24, 2005 11:31 pm 
Christophe LiénardAug 25, 2005 12:16 am 
Arnaud LAURENSON - Costes GestionAug 25, 2005 12:38 am 
RedletAug 25, 2005 12:43 am 
Arnaud LAURENSON - Costes GestionAug 25, 2005 12:46 am 
RedletAug 25, 2005 1:07 am 
Christophe LiénardAug 25, 2005 1:14 am 
Arnaud LAURENSON - Costes GestionAug 25, 2005 1:28 am 
Arnaud LAURENSON - Costes GestionAug 25, 2005 1:37 am 
RedletAug 25, 2005 1:38 am 
Alex ThurgoodAug 25, 2005 1:47 am 
Arnaud LAURENSON - Costes GestionAug 25, 2005 2:09 am 
Arnaud LAURENSON - Costes GestionAug 25, 2005 2:38 am 
JovialAug 25, 2005 2:41 am 
Christophe LiénardAug 25, 2005 3:34 am 
Alex ThurgoodAug 25, 2005 4:00 am 
Bernard MarcellyAug 25, 2005 4:20 am 
Arnaud LAURENSON - Costes GestionAug 25, 2005 4:51 am 
Christophe LiénardAug 26, 2005 5:32 am 
Bernard MarcellyAug 26, 2005 7:29 am 
Christophe LiénardAug 26, 2005 7:43 am 
Bernard MarcellyAug 26, 2005 9:09 am 
Christophe LiénardAug 29, 2005 12:19 am 
Didier LarocheSep 22, 2005 11:15 am 
Christophe LiénardSep 23, 2005 12:41 am 
FRBSep 23, 2005 4:49 am 
Marie jo KOPP CASTINELSep 23, 2005 6:03 am 
Alain NowakSep 26, 2005 12:41 am 
Fred...@equipement.gouv.frSep 26, 2005 4:53 am 
Christophe LiénardSep 26, 2005 5:29 am 
Alain NowakSep 26, 2005 5:29 am 
Laurent GodardSep 26, 2005 5:54 am 
Fred...@equipement.gouv.frSep 26, 2005 6:22 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: [prog] Navigation au sein des formulaires d'une appli Base 2.0Actions...
From:Christophe Liénard (chri@varilab.com)
Date:Aug 25, 2005 12:16:22 am
List:org.openoffice.fr.prog

Bon, merci pour vos réponses... Si je comprends bien, c'est un bug contre lequel on ne peut pas grand-chose, et il faudra attendre une version ultérieure pour pouvoir naviguer entre les formulaires d'une appli Base... Patiente, donc ! Christophe

Bonjour Christophe Liénard, Message du 2005-08-24 18:18:

Bonjour à tous.

J'aimerais relancer un sujet ouvert le 01/05/05 par Tony Galmiche, à savoir la navigation au sein des formulaires d'un .odb

Alain Nowak avait proposé le code ci-dessous pour ouvrir un form à partir d'une macro

sub ouvrirForm

oDesktop = createUnoService ("com.sun.star.frame.Desktop")

Dim loadArgs(0) as new com.sun.star.beans.PropertyValue

loadArgs(0).Name = "Hidden"

loadArgs(0).Value = true

oDocument = oDesktop.LoadComponentFromURL(convertToURL("C:\Documents

and Settings\alain\Mes documents\maBase.odb"), "_blank", 0, loadArgs())

oForms = oDocument.FormDocuments

oForm = oForms.getByName("VIN")

oConnection =oDocument.Datasource.getConnection("","")

Dim formArgs(0) as new com.sun.star.beans.PropertyValue

formArgs(0).Name = "ActiveConnection"

formArgs(0).Value = oConnection

oFormDoc = oForms.LoadComponentFromURL("VIN", "_blank", 0, formArgs())

oDocument.dispose

end sub

En l'essayant sur la 1.9.122, le nouveau form s'ouvre bien à partir d'un bouton lançant la macro, mais se ferme juste après, même en supprimant la ligne oDocument.dispose.

Quelqu'un a-t-il une idée du problème ? Ou ce sujet aurait-il avancé depuis ?

Je ne pratique pas les formulaires de Base. En cherchant j'ai trouvé un long fil sur ce sujet (en anglais) : <http://www.mail-archive.com/dev%40dba.openoffice.org/msg00238.html> Il a produit deux rapports : 52479 : crash when opening a form via Basic script >> OOo 2.0.1 52649 : Opening a form an a Base document closes when the macro finishes

OOo Later

Bernard