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 try to create a datatype
there are some code like this:
public override Guid Id { get { return System.Guid.NewGuid();} }
it is ok, no error, and can be list in the umbraco backend, but when i choose my datatype, there is a error
The given key was not present in the dictionary.
i do not know why, i find this
http://our.umbraco.org/forum/developers/extending-umbraco/3499-Custom-data-type-issue?sort=newest
but seems useless for me
can any one help me?
If you create a new datatype you should use a single, persistent guid like:
return new Guid("d792a009-ff1e-46ee-bd89-8684f216452d");
This guid will be saved for the datatype to identify which control to use.
hth, Thomas
and the easist way to create a GUID is in Visual Studio is go to Tools -> Create GUID :)
hi Thomas,
i change the code to "get { return new Guid("d792a009-ff1e-46ee-bd89-8684f216452d"); }"
but useless, i know just one key is working, that is 71518B4E-B348-42A1-8662-E7EB18487560
if i change to other, i will show a yellow page and said "The given key was not present in the dictionary. "
Hi,
Am I right in thinking that when creating an empty DataType for the first time via the Developer UI, it's the GUID created in cmsDataType that you then want to hard-code inside the source ?
well, i fixed, I hate junk data
it is because of junk data
i create a new site, a new db, and it works
thanx
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
create a datatype
i try to create a datatype
there are some code like this:
public override Guid Id
{
get { return System.Guid.NewGuid();}
}
it is ok, no error, and can be list in the umbraco backend, but when i choose my datatype, there is a error
The given key was not present in the dictionary.
i do not know why, i find this
http://our.umbraco.org/forum/developers/extending-umbraco/3499-Custom-data-type-issue?sort=newest
but seems useless for me
can any one help me?
If you create a new datatype you should use a single, persistent guid like:
This guid will be saved for the datatype to identify which control to use.
hth, Thomas
and the easist way to create a GUID is in Visual Studio is go to Tools -> Create GUID :)
hi Thomas,
i change the code to "get { return new Guid("d792a009-ff1e-46ee-bd89-8684f216452d"); }"
but useless, i know just one key is working, that is 71518B4E-B348-42A1-8662-E7EB18487560
if i change to other, i will show a yellow page and said "The given key was not present in the dictionary. "
Hi,
Am I right in thinking that when creating an empty DataType for the first time via the Developer UI, it's the GUID created in cmsDataType that you then want to hard-code inside the source ?
well, i fixed, I hate junk data
it is because of junk data
i create a new site, a new db, and it works
thanx
is working on a reply...