Help get this topic noticed by sharing it on Twitter, Facebook, or email.
I’m confused

Virtualization Passing Field value to setvalue

Okay so I have the following code that works somewhat but I am wondering how I can read a hidden field from the controller and have the value from the field set the label of the column.


public partial class SharedBusinessRules : TCFSOperations.Data.BusinessRules
{
public override bool SupportsVirtualization(string controllerName)
{
if (controllerName == "WeeklyScheduleItems")
return true;
else
return false;
}

public override void VirtualizeController(string controllerName,
XPathNavigator navigator, XmlNamespaceManager resolver)
{
if (controllerName == "WeeklyScheduleItems")
{
// Change "Sunday" label to "To the actual date for the week number"
XPathNavigator SundayLabel = navigator.SelectSingleNode("/c:dataController/c:fields/c:field[@name='Sunday']/@label", resolver);
if (SundayLabel != null)
SundayLabel.SetValue("Replace with Value from Field @SunDate");
}
}
}


I am unable to find a way to get the value of my field and pass it into the the SundayLabel.SetValue()
2 people have
this question
+1
Reply