Thanks Trevor, that works great. Follow up question for you. I have a datagrid table with two option menu columns in it. It's OK to initialise the first one per your reply but the contents of the second one need to be set differently depending on the currently selected value in the first option menu. Any recommendations as to how to do that?

Pete Haworth

On Oct 4, 2010, at 10:00 AM, use-revolution-requ...@lists.runrev.com wrote:

Message: 4
Date: Mon, 4 Oct 2010 09:42:59 -0400
From: Trevor DeVore <li...@mangomultimedia.com>
Subject: Re: Datagrid option menu initialisation
To: How to use Revolution <use-revolution@lists.runrev.com>
Message-ID:
        <aanlktimob-tivaybneta-qqdoawv-ahkyoh0vec8f...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Sat, Oct 2, 2010 at 12:22 PM, Peter Haworth <p...@mollysrevenge.com>wrote:

I have defined an option menu in a datagrid column whose contents are
created by reading data from an SQLite database - the contents will be the same for each instance of the option menu and should be loaded when the card containing the datagrid is opened. Where should I put the code to create
the option menu contents?


In the card that contains the data grid :-)

In the preopencard or openCard message query the database, update the menu button text in the data grid template and then load the data grid. Since the template has the updated menu text all instances of your column will contain
the updated menu text.

--
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Releasable Revolution Resources for Developers:
http://revolution.bluemangolearning.com

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to