I have an Add form where I want to populate a field called "Observer" with the value returned by the query below (Users Given Name)
The code below echos the value to the web page correctly. How do I set the Observer field on my form equal to the value of the result from the query?
dynamic data;
dynamic rs = DB.Query("Select [EmplName] FROM [NSP].[dbo].[STD_PS_DL_ActivePositionsCSForOrgDash] Where [EmpUserID] = '" + Security.getUserName().ToString() + "'");
while(data = rs.fetchAssoc())
{
MVCFunctions.Echo(data["EmplName"]);
}