Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mmpicker
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Miscellaneous
Thread ID:
01158675
Message ID:
01158745
Views:
20
Russ,

>I am trying to pass a 2nd paramater to the mmPicker. The value of the 2nd paramter will be based on input/selection of another control on the windows form. I'm unsure where to define the 2nd paramter. I am currently setting the mmPicker as:
> DataCommand: SP_JobPhase_Select
> DataCommandFilterParameterName: @phase
> DataCommandType:StoredProcedure
>
>I thought of 3 possibilities:
> 1. send it as part of mmPicker WhereClause (although I didn't see how this is used anywhere in mmPicker.cs code)
> 2. mmPicker's HookSetParameters - where in the forms code would this be defined?
> 3. mmPicker's SetParameter event

The MM .NET Dev Guide topic Working with PickList Controls has a section "Hooking into Picker Events". The SetParameters event discussed in this section is what you're looking for. To create a handler for a PickList event, do the following:

  1. Select the PickList control in design mode

  2. Go to the Properties Window and click the Events button (the one with the lightning bolt)

  3. Find the event you want to create a handler for and double-click it. This creates a handler method into which you can place code to be executed when the event is raised at run time.
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Previous
Reply
Map
View

Click here to load this message in the networking platform