Novell Home

Of eGuide and Employee Photos

Novell Cool Solutions: Trench

Digg This - Slashdot This

Posted: 14 Aug 2003
 

Problem

When I save the Photo in the Edit Information/Modify Photo screen, the following error occurs.

One or more attributes failed to update!: photo,photoagree

Also, I am not seeing Photo Store Location. Where should I be looking for this location?

Solution

If you can find the PHOTO and PHOTOAGREE template key on the Attribute page in the Admin Utility then the problem usually is a rights issue. Verify that these attributes are both checked to edit.

By default the Photo store location is the file system.

To change it to the directory (eGuide 2.1 and eGuide 2.1.1) find the file named uihandlers.xml under the eGuide\WEB-INF\plugins\eGuide dir

Search for Photo, you should find the following section:

<ui-attribute-handler>
<id>SVBinaryPhotoUpload</id>
<attribute-name>PHOTO</attribute-name>
<class-name>com.novell.eguide.handler.FileDataHandler</class-name>
<client>browser</client>
<MaxFileSize>60000</MaxFileSize>
<FileStoreLocation>FILE</FileStoreLocation>
<StoragePath>Upload</StoragePath>
<multi-valued-enabled />
<single-valued-enabled />
<read-write-enabled />
<read-only-enabled />
<default />
<display-name-key>Binary Photo File</display-name-key>
<resource-properties-file>eguideresources</resource-properties-file>

<description>Displays PHOTO in header of object details. When being edited, allows for browse of file. This handler also allows to specify file store location (i.e. LDAP or FILE), maximum file size, and file store path when applicable. These changes can be made in "UIHandlers.xml".</description>
</ui-attribute-handler>

If you want the photos stored in the Directory change the FileStoreLocation to LDAP (e.g. <FileStoreLocation>FILE</FileStoreLocation>)


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell