Hi All,
I am implementing the SharePoint custom fields to pull the data from the SQl Database. This custom field contains two entity picker (like people picker) where the first one will get a record from the Parenet records and second picker has to get the
record based on the parent selection. Everything works fine except passing the first entity picker value to second one. Any one has any ideas how to do this?
I am trying to use the custom Property in the follwoing way
public
RecordPickerData
PickerData
{
get
{
string
s =
if
(_pickerData == null
&& String.IsNullOrEmpty(CustomProperty)
== false)
{
byte[]
buffer = Convert.FromBase64String(CustomProperty);
using
(MemoryStream
stream = new
MemoryStream(buffer))
{
BinaryFormatter
formatter = new
BinaryFormatter();
_pickerData = (
RecordPickerData)formatter.Deserialize(stream);
}
}
return
_pickerData;
}
set
{
if
(value
!= null)
{
_pickerData =
value;
using
(MemoryStream
stream = new
MemoryStream())
{
BinaryFormatter
formatter = new
BinaryFormatter();
formatter.Serialize(stream, _pickerData);
CustomProperty =
Convert.ToBase64String(stream.ToArray());
}
View Complete Post