Datagrid option menu initialisation

Peter Haworth pete at mollysrevenge.com
Mon Oct 4 12:18:39 CDT 2010


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-request at lists.runrev.com  
wrote:

> Message: 4
> Date: Mon, 4 Oct 2010 09:42:59 -0400
> From: Trevor DeVore <lists at mangomultimedia.com>
> Subject: Re: Datagrid option menu initialisation
> To: How to use Revolution <use-revolution at lists.runrev.com>
> Message-ID:
> 	<AANLkTimOb-tiVAyBNETa-qqDoAwv-AHkYOh0vEc8faTJ at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Sat, Oct 2, 2010 at 12:22 PM, Peter Haworth  
> <pete at 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




More information about the use-livecode mailing list