Hi,
I have an xpage with a document datasource that is bound to a document in another database. Opening and editing works fine except when I use the file download control to display attachments, then I get an Error 500 HTTP Web Server: Command Not Handled Exception (the default error page is not used to display the error, although I have it checked in the aplication properties and it is displayed with other errors).
The URL that is generated to open the attachment looks a bit strange:
Funny thing is when I create a second attachment it works fine and it uses a URL that looks like:
http://servername/path/db_with_xpage.nsf/xsp/.ibmmodres/persistence/DominoDoc-19-Body/John%20Doe.doc
When I try to experiment some more I get too confused with the results to make anything out of it. Sometimes all attachment-links seem to work when I open a document and then nothing seems to work or something inbetween. The first attachment I create on a document always creates an error when I try to open it. It doesn’t seem to mather if i create the attachments with the notes client or with a file upload control on the xpage.
I have tried with attachments in the same database and then it works fine.
When it was just opening attachments I could probably create some links using @attachmentNames, but I also want the users to be able to delete the attachments and I don’t think the %%Detach checkbox will work on a xpage (haven’t tried it though). And besides when it works it is a really nice control, so if someone knows a way I can maybe program the FileNameHrefValue property with the proper URL that would be a great help.
Rene.