Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Issue found adding attribute via API
Last Post 05/22/2013 12:32 PM by Darren Grayson. 2 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Darren Grayson
New Member
New Member
Posts:5


--
05/17/2013 12:08 PM
Hi,

I found an issue while adding attributes to a folder via the API.

If I add a STRING type attribute called "Keywords", all of the folders and files disappear from the user interface. All that is shown is the root "Document Exchange" folder, it's not possible to expand this folder and the right-click context menu loses it's 'Attributes' option.

If I go into the dnn_DMX_Attributes table and change the attribute key to something else, everything comes back.

Is "Keywords" intended to be a reserved word?

The API method used to add the attribute is the constructor on DMX.Entities.Attributes.AttributeInfo()

Hopefully you can use this information to help someone avoid a very frustrating couple of days debugging!

Regards,

Darren

DMX version: 06.01.05
DNN version: 7.0.3
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
05/22/2013 12:07 PM
Hi Darren,

Thanks. Indeed that would be a problem as "keywords" is already a field in the core DMX entries table. The SQL probably throws an error internally. I'll see if I can add some code to warn/prevent this from happening.

Peter
Darren Grayson
New Member
New Member
Posts:5


--
05/22/2013 12:32 PM
No problem,

I missed the built in 'Keywords' property so in fact I didn't need to add it as a custom attribute after all!

Darren

You are not authorized to post a reply.