Hello,
Ive created a custom DB provider in order to assign multiple resources to an appointment. I also have a custom advanced editing form that has a number of drop down lists. each custom dropdown has a corresponding custom attribute.
I have coded my provider so all of the resources that need to be loaded into the dropdowns are available via properties but I dont know how to hook the two up?
For example, I have the following property in my custom provider:
private IDictionary<int, Resource> Locations
{
get
{
if (_locations == null)
{
_locations = new Dictionary<int, Resource>();
foreach (Resource location in LoadLocations())
{
_locations.Add(Convert.ToInt32(location.Key), location);
}
}
return _locations;
}
}
How do I get these locations to populate a dropdown on my Advance Edit form?
Is this the recommended/correct way to do this?
Thanks
Alex
Ive created a custom DB provider in order to assign multiple resources to an appointment. I also have a custom advanced editing form that has a number of drop down lists. each custom dropdown has a corresponding custom attribute.
I have coded my provider so all of the resources that need to be loaded into the dropdowns are available via properties but I dont know how to hook the two up?
For example, I have the following property in my custom provider:
private IDictionary<int, Resource> Locations
{
get
{
if (_locations == null)
{
_locations = new Dictionary<int, Resource>();
foreach (Resource location in LoadLocations())
{
_locations.Add(Convert.ToInt32(location.Key), location);
}
}
return _locations;
}
}
How do I get these locations to populate a dropdown on my Advance Edit form?
Is this the recommended/correct way to do this?
Thanks
Alex