OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

XrowsetListener

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
kmar
General User
General User


Joined: 20 Mar 2009
Posts: 31

PostPosted: Thu Jul 09, 2009 1:07 am    Post subject: XrowsetListener Reply with quote

Hello,

I would like to have a listener on a grid control when a new row is added or inserted.
I've some experience with macro's but never tried to add an event listener, anybody that can help?
I have tried the following code:

Quote:

Sub RegisterRowChanged
oDocView = ThisComponent.Drawpage.Forms.getByName("FLivraisonMain").getByName("TCBonNr")
oNewRowHandler = CreateUnoListener("NewRow_", "com.sun.star.sdbc.XrowSetListener")
oDocView.rowchanged(oNewRowHandler)
End Sub

Function NewRow_rowChanged(oEvt) As Boolean
if MyApp_KeyPressed = True then
msgbox "True"
end if
End Function
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group