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

How to get selected line from listbox

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


Joined: 28 Sep 2010
Posts: 8

PostPosted: Tue Sep 28, 2010 10:15 am    Post subject: How to get selected line from listbox Reply with quote

Hi

Sorry in advance for any stupid questions... just started with OOo today.

I am using a query to fill a listbox with values.
When I select one of the values in the listbox I want to fill some other text fields with the items from the line that I have clicked on.

Could someone tell me what basic code I can write to retrieve the selected line's values?

Thanks in advance
Back to top
View user's profile Send private message
ActionAnt
General User
General User


Joined: 28 Sep 2010
Posts: 8

PostPosted: Tue Sep 28, 2010 11:18 am    Post subject: Reply with quote

I found the answer here:
http://www.oooforum.org/forum/viewtopic.phtml?t=107171
Back to top
View user's profile Send private message
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10106
Location: Germany

PostPosted: Tue Sep 28, 2010 11:58 am    Post subject: Reply with quote

Install the MRI extension and bind some event to Basic routine: MRILib.Module1.mri

Or call from the document window Tools>AddOns>MRI,
browse DrawPage>Form>getByName(<box name>)
_________________
Rest in peace, oooforum.org
Get help on https://forum.openoffice.org
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