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

Bring2mind Forums

Duplicate attribute crashes DMX
Last Post 08/14/2008 6:51 PM by Peter Donker. 10 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
saul
New Member
New Member
Posts:11


--
04/06/2008 9:50 PM

I wanted to create metadata fields with the same names as already used for our documents.  Since we have a title that is different from the filename I created a "Title" custom attribute.  This is the same name as one of the non-custom attributes and the DMX module crashed with no opportunity to repair from the web site admin.

Since we were just starting, we uninstalled and reinstalled DMX

This leads to 3 requests:

1. Before accepting a custom attribute name, check the exisiting attribute names (custom and non-custom) for duplicates

2. List the non-custom attribute names greyed out on the custom attribute pages so we know what names are taken.

3. Provide documentation on how to remove a custom attribute from the code page side so that DMX doesn't have to be removed to repair DMX if this happens.

 

Thanks

Let me know if anything is unclear.

 

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
04/08/2008 9:59 PM
Hi Saul,

I'll look into this. Thanks for the very clear description.

All attributes are in DMX_Attributes and can be removed from that. Expect that DMX caches things to speed up so you might want to restart the app to clear all caches.

Peter
saul
New Member
New Member
Posts:11


--
04/11/2008 6:34 PM

Thanks Peter.

saul
New Member
New Member
Posts:11


--
04/11/2008 9:11 PM
Where can I find a list of the standard document attribute names so that I won't dupliate them with custom ones?
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
04/12/2008 12:08 AM
Go to the DMX_Entries table and write down the columns. Go to DMX_Extensions and note those, too. Then finally, don't use 'Title' and 'Remarks'.

Peter
Simon Gammon-Hardaway
New Member
New Member
Posts:30


--
08/06/2008 10:40 PM

Hi there, have had a very similar problem occur twice this week, once after re-installing the module.

The custom attributes I had were 'Created' and 'Owner', but as these weren't in the core attributes, I think its some kind of timeout issue.

On both occasions I had left the machine for over 10 mins on the 'Core Metadata' entry page, come back, clicked 'Finish' and it crashed with the error. 

Any tips on fixing this without having to re-install would be most appreciated, I know Peter is away until next week.

thanks,

simon

 

   

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
08/11/2008 6:33 PM
Hi Simon,
I'm back. Created and Owner are both in the core. Is it possible for you to prefix the attributes you define? Like 'MY_Created'?
Peter
Simon Gammon-Hardaway
New Member
New Member
Posts:30


--
08/12/2008 2:45 PM

Hi Peter, 

Yes I think I'm going to have to. You could probably do with publishing these potential conflicts as a list somewhere short term, and putting a validation routine in there long term I think though to save future problems.

Only drawback with the short term fix is obviously the display won't be quite as nice with the "My_" attached. Perhaps something like Custom Attribute = "#Owner" and  Display As = "Owner" would be better.

thanks,

Simon

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
08/12/2008 5:55 PM
Hi Simon,

In some point in the future the custom attributes will have multilingual 'pretty' descriptors possible. That is the way it will progress. For now as a workaround you can specify a resource file and use that to have the attribute rendered. In the resource file you add the attribute name with .Text and .Help (e.g. 'My_Created.Text' and 'My_Created.Help'). If specified these values will be used in the interface. If this is Chinese to you let me know.

Peter
Simon Gammon-Hardaway
New Member
New Member
Posts:30


--
08/13/2008 3:09 PM

Hi Peter, yes please - thats definitely a tad oriental to me, I come from an html/javascript background and I'm not very familiar with SQL or ASP I'm afraid.

Incidentally did you see my webdav issue over in the other forum, its very close to being fully working, but as they say - no cigar!

thanks peter

Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
08/14/2008 6:51 PM
Hi Simon,

The resx files are xml files that holds texts for the application. You can find them under App_LocalResources folders all over your application. The DMX_Attributes table refers to these files in the 'ResourceFile' column. What you should do is to copy an existing resource file like 'DesktopModules/Bring2mind/DMX/App_LocalResources/SharedResources.ascx.resx' and call it maybe 'MyAttResources.ascx.resx'. Then edit that file, remove all name/value pairs in there and add 2 for the ones I mentioned above. Then in the attributes edit screen refer to this file as:

DesktopModules/Bring2mind/DMX/App_LocalResources/MyAttResources

DMX will then look up the texts from that file.

Peter
You are not authorized to post a reply.