Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 8th, 2025, 8:53 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Listbox Population
PostPosted: October 12th, 2009, 11:20 am 
Offline

Joined: March 26th, 2009, 12:56 pm
Posts: 22
Location: Chester, UK
Dear all,

I've looked through quite a few previous postings about populating listboxes from a database and copied and pasted various scripts, none of which seem to work, even after adapting the variable names (both ways).

The first listbox I manually populate with 5 names which goes into a variable called Name. The second list box is supposed to be populated from whichever 'Name' is selected. I tried copying the cricket example from the forum, but that didn't work either. Any one got any ideas as to the best posting for advice or does anyone have an example. Really hope I can get some advice as I seem to be getting nowhere.

_________________
Opus Pro 6
Acer Aspire 5051
AMD Turion 1.6GHz
2GB RAM
XP SP2


Top
 Profile  
 
 Post subject:
PostPosted: October 13th, 2009, 2:34 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Simon, welcome to the forum.

One of the basic tools of reading the database is 'next record' of course. Similarly, once you've got one line placed in the ListBox you want to go to the next line. Let us know how you are approaching that.

I presume when you say 'variable', you have one variable for listbox1 and are using some other variable once a Listbox_selection is made? Make sure you know the difference with diff vars: pub, page persistent, and page. Also, a 'local var' declared inside a script function... is not available outside the function.

Post in the 'Advanced' area if you want more help with scripting.
You could also post your .imp file here for others to examine and see what you're doing... not obvious currently.

Also, what database are you using?

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: October 13th, 2009, 6:20 pm 
Offline

Joined: March 26th, 2009, 12:56 pm
Posts: 22
Location: Chester, UK
Hi Lar,

I seem to have got round it by using the database in the cricket example and expanding that to fit my publication, so I must have been doing something wrong with the connection side of things.

Many thanks for the reply. If I get things to work, I'll put the example on here.

Regards

_________________
Opus Pro 6
Acer Aspire 5051
AMD Turion 1.6GHz
2GB RAM
XP SP2


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 47 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group