Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have downloaded and installed MemberExport v3.8.1 via nuget and it works great.
I'm following the example in the user manual to create a CheckboxValueParser but am receiving the error:
'MemberField' does not contain a definition for 'GetPrevalues' and no accessible extension method 'GetPrevalues' accepting a first argument of type 'MemberField' could be found (are you missing a using directive or an assembly reference?)
I have copied the code verbatim but updated the DataType GUID (should there be two attributes for 'PropertyEditorAlias'?):
[ValueParser(PropertyEditorAlias = "fbaf13a8-4036-41f2-93a3-974f678c312a")]
[ValueParser(PropertyEditorAlias = "Umbraco.CheckBoxList")]
public class CheckboxValueParser : IValueParser
public virtual object Parse(object value)
public virtual object Parse(MemberField memberField, object value, FieldParserOptions fieldParserOptions)
if (value != null)
var sb = new StringBuilder();
foreach (string item in value.ToString().Split(','))
var prevalue = memberField.GetPrevalues().FindLast(p => p.Id.ToString() == item);
if (prevalue != null)
if (sb.Length > 0)
value = sb.ToString();
I've added a reference to MemberExport.Library. Am I missing another reference?
Thanks for your help.
I should have updated the sample. Items are stored as JSON these days. I think you can just use value.ToString().Split(',')
Hope this helps.
I should have debugged the value...
Having done so, I can see that the value always returns empty:
Even though the value is being recorded in the database correctly:
Any idea why the value would always be empty???
Can only think that it returns infor from wrong column. What is the result of the following query? That is when Memberexport determines which column to use.
select dbType from umbracoDataType where nodeId = 126
About to go offline until Tuesday so sorry for any delays in reply.
There is no result!
Sorry must been the other id 1373
Updated with the DatatypeNodeId (1373):
That looks ok, No idea why it didn't retrieve the data then. Will come back to this next week.
This was due to a bug in the Core of memberexport where the checkboxlist items got parsed but not the JSON value. That is fixed in release below. You don't need a custom provider for this anymore.
Hope this helps,
Thanks for looking into this and getting back to me.
I'll try out the release later today and let you know how it goes! Great that I won't need a custom provider :-)
I downloaded and installed the package and removed my custom provider. The values are now being output but it doesn't look like the csv values are being quoted correctly.
I would be expecting the raw txt file to look like this:
Id,How can we contact you
Hope that helps.
Will you be releasing this as an update to the Nuget package?
Ignore all that Richard!
I had forgotten to select the Text Indicator field!
Thanks for a great product!
Great and yes but need to test the whole update first.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted