This project is read-only.
1
Vote

No edit button appears

description

Just upgraded to Umbraco 6.2.1 and dewd 2.1
using the xml config option. I can insert and delete, but not edit the records.
Any ideas as to what I am missing?

comments

sharonschmidt wrote Jun 20, 2014 at 3:04 PM

reverted back to dewd 1.4 and it works. but the media picker type errors out upon save.

Unable to save:
Operand type clash: int is incompatible with text

sharonschmidt wrote Jun 20, 2014 at 3:13 PM

Does the same thing with ntext types

suneboeegh wrote Jun 24, 2014 at 8:17 PM

Hi Sharon,

Sorry about the late reply, I've been busy (kind of a bad habit at this point).

Can you send the xml-config, you're using for dewd 2.1? About the media picker - not sure how much that's been tested actually, because I've never had the need myself. Are you just using a standard media picker data-type?
  • Sune

sharonschmidt wrote Jun 26, 2014 at 7:40 PM

Yes, the standard media picker with a text field on database table

I wound up bumping back to 1.4,

adding the “type=TextField” attribute to the config Media Picker field element

<field title="Store Image" sourceField="store_image" umbracoDataType="Media Picker" type="TextField"><nullable /></field>

and then downloading the source to make a few changes by adding a “textField.cs” that seemed to have solved the media picker problem.

namespace Eksponent.Dewd.Fields
{
public class TextField : Field
{
    public TextField(XElement fieldElement, IEditor editor)
        : base(fieldElement, editor)
    {
    }

    public override void ProcessValueBeforeSave(ref object value)
    {        
        string stringValue = value.ToString() ;
        value = stringValue;
        base.ProcessValueBeforeSave(ref value);
    }
}
}