I think you need to use a combination of FindIndex and dgHilitedIndex like so:
dispatch "findIndex" to group "myDataGrid" with "myColumnName", "mySearchString" put the result into myValue set the dgHilitedIndex of group "myDataGrid" to myValue Bob On Feb 8, 2010, at 9:48 AM, Andrew Kluthe wrote: > Hello again! > > I am having difficulty figuring out how to script some specifics into option > menus. > > My option menu is populated on preOpenCard and everything lists smoothly. > When set to view, this card displays a LandOwner's Name in a disabled text > field. When the cards status is set to update, it shows a list of names > pulled from a table in a mySQL db, in alphabetical order. > > However, the current record being worked with was loaded on a previous card > and the information was put into a set of global variables. > gLandOwnerContact (the current record's landowner name). > > I want the default selection for the option menu to be the same as > gLandOwnerContact. But when clicked, I still want it to display a full list > of the names. > > I am just beginning in Revolution. I have modified column and row behaviors > in DataGrids (to change cards on doubleUp), but never overridden any other > controls functionality. I am thinking this is what is going to take to > implement the above. Can someone point me on the right path or help me hash > out the appropriate logic for this? > > Any and all help is greatly appreciated. > > > Andrew K. > RJD Farm LLC > _______________________________________________ > 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 _______________________________________________ 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