Yes, now is works, but i can't insert new record in filter form.
sub pega( oev as variant)
Dim Filter As String
dim odoc,odoc2,oform2,oform as Object
odoc=thiscomponent
oform=odoc.drawpage.forms.
getbyindex(0)
'pega o dado da primeira linha(=index =campo Cad no meu caso) do registro
atual
myindex=oform.getstring(1)
'ThisDatabaseDocument.FormDocuments.getByName( "animal3" ).open
oform2=ThisDatabaseDocument.FormDocuments.getByName( "animal3" )
oform2.Open
oform2 = oform2.Component.DrawPage.Forms.getbyindex(0)
'define o filtro para achar os registros
oform2.filter ="animal3.Cad ='" & myindex &"'"
oform2.ApplyFilter= True
oform2.reload
End Sub
2011/8/5 rogerio dandrea <[email protected]>
> the basetools extension (0.0.5) works in libreoffice 3.4.2 ?
>
>
>
>
> 2011/8/4 rogerio dandrea <[email protected]>
>
>> well now
>>
>> with 3.4.2
>> ubuntu11.04 64bits
>> and use hsql
>>
>> now I have error mensage in filter Why?
>>
>>
>> 2011/7/29 rogerio dandrea <[email protected]>
>>
>>> Alex ,
>>> thank you.
>>> I will return to the problem when version 3.4.2 is launched (in july)
>>>
>>>
>>>
>>>
>>> 2011/7/28 Alexander Thurgood <[email protected]>
>>>
>>>> Le 28/07/11 22:11, rogerio dandrea a écrit :
>>>>
>>>> Hi Rogerio,
>>>>
>>>> >
>>>> > Sorry if this is a silly question but, how do I switch the focus from
>>>> one
>>>> > form to another?
>>>> >
>>>>
>>>> I actually looked this up on the OpenOffice.org forum, but I can't find
>>>> the link to the post anymore. There might also be a bug in LibreOffice
>>>> that prevents the form from reloading. I seem to recall having seen
>>>> something similar somewhere, because the filter.appply = true and
>>>> form.reload used to work with OpenOffice.org.
>>>>
>>>>
>>>> Alex
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Unsubscribe instructions: E-mail to [email protected]
>>>> Problems?
>>>> http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
>>>> Posting guidelines + more:
>>>> http://wiki.documentfoundation.org/Netiquette
>>>> List archive: http://listarchives.libreoffice.org/global/users/
>>>> All messages sent to this list will be publicly archived and cannot be
>>>> deleted
>>>>
>>>>
>>>
>>
>
--
For unsubscribe instructions e-mail to: [email protected]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted