Hello,
I am relatively new to .Net and I need a little assistance with something. I have hard coded something that is working to some extent but I can't get a couple things figured out. Here are my two questions.
1.) The following code is working with one exception. I added CurrentLocation() to the Advanced Options/Auto Update values and use that on the field for the SiteID and that works fine. When a new record is added the field is populated properly. I also use it in multiple dynamic drop down filters and it works fine there as well. The drop downs are filtering based on the CurrentLocation() value. The problem is in the Table Filter it fails. I can not seem to figure out why. I want to filter the records from the table based on this code. The table returns no results when this is used as a filter. If I add a record and this code is in the SiteID Auto Update option the record is added but the table comes back with no results.
public static string CurrentLocation()
{
return Convert.ToString("MYFACILITY");
}
2.) I would like the code to be dynamically drawn from the UserLogin table. Each user is assigned to a specific Facility. When someone logs in I would like the Function to select their Facility from the UserLogin Table dynamically. I can do this very easily in classic ASP and ASPMaker but in .Net I am at a loss. Can anyone point me in the direction to get this to work? I have been googling it for days and have not found a solution that I can make work. What I need is something like this;
If anyone has any suggestions they will be greatly appreciated.
Thanks in advance,
JW