Hi.
I am trying to build a statistics report and I am able to use the datetime pickers just fine, but I can't seem to figure out how tu use this ProductParameterEditor. If I just use it like the datepickers, then nothing shows up:
private string _Vare = "PROD10160";
[Dynamicweb.Extensibility.AddInParameter("Vare"),
Dynamicweb.Extensibility.AddInParameterEditor(typeof(Dynamicweb.Extensibility.Editors.ProductParameterEditor), "")]
public string Vare
{
get { return _Vare; }
set { _Vare = value; }
}
System.Collections.Hashtable Dynamicweb.Extensibility.Editors.IDropDownOptions.GetOptions(string Name)
{
// Get Hashtable
System.Collections.Hashtable htOptions = new System.Collections.Hashtable();
switch (Name)
{
case "Vare":
//Adding a static entry for testing purposes
htOptions.Add("PROD10160", "Sansegynge");
break;
}
// Return the hashtable
return htOptions;
}
I am assuming that I can use the ProductParameterEditor as a "Product picker" of some sort. Is this a wrong assumption? Would I be better off using the generic DropDownParameterEditor instead?