lours78

When I Build a custom list form through Sharepoint Designer 2007, I don't have any support for displaying attachments. Of course this list has been enabled for attachments.

I am currently running WSS V3 FR + Sharepoint Designer 2007 FR.

Regards,



Re: SharePoint - Design and Customization How to build a custom list form with SharePoint Designer with attachment support

Robin Meure

I'm having the same problem and while googling I found out we are not the only one :\






Re: SharePoint - Design and Customization How to build a custom list form with SharePoint Designer with attachment support

Murilo Rodrigues

Hi fellows!

I've managed to show the current attachments in the list item, with the following code:

<SharePoint:FormField runat="server" id="ff6{$Pos}" ControlMode="Edit" FieldName="Attachments" />

I've also digged into the HTML/JS of a non-custom list form, and figured out that why the "This form was customized not working with attachment" message is show.

In a non-custom form, the web-part has two sections:

<span id='part1'>
// Web part section
</span>

<span id='partAttachment'>
// Attachment section
</span>

When one clicks in the "Attach File" button, the javascript function hides "part1" and shows "partAttachment", or vice-versa.

I tried to copy part of the HTML code of a non-custom form into my custom form, with no sucess.

If anyone is willing to give a try, please, remember to post your findings!

Regards, Murilo





Re: SharePoint - Design and Customization How to build a custom list form with SharePoint Designer with attachment support

nobugz

Notice: the author of this website asserted the Murilo's answer was retrieved from his/her website and/or other forum postings. Said author, going by the nickname of "guruevi", real name unknown, wants to be acknowledged for being the inventor/originator of this code/solution. Acknowledgment his hereby given.





Re: SharePoint - Design and Customization How to build a custom list form with SharePoint Designer with attachment support

Yoshio Kurtz

Hi, guruevi's solution, which I found on his web site, does not work. When clicking 'Attach File', it does bring up the appropriate interface. However, after browsing and selecting a file and clicking 'Ok', I get an 'object required' message and I have to 'cancel' out of the 'Add Attachment' view of the page to continue. The attachment does not save.



Re: SharePoint - Design and Customization How to build a custom list form with SharePoint Designer with attachment support

Babygiglio

Hi, i'm having the same problem. so I cannot save the attachment.

Anyone else has found a solution

Thanks





Re: SharePoint - Design and Customization How to build a custom list form with SharePoint Designer with attachment support

K Rock

I am the same boat. You would think that by this point in time a solution would have been presented!



Re: SharePoint - Design and Customization How to build a custom list form with SharePoint Designer with attachment support

Poorvesh

I just want to display attachments on the custom Display form.

Can you give me some hints. on that.






Re: SharePoint - Design and Customization How to build a custom list form with SharePoint Designer with attachment support

lchungue

Yoshio Kurtz wrote:
Hi, guruevi's solution, which I found on his web site, does not work. When clicking 'Attach File', it does bring up the appropriate interface. However, after browsing and selecting a file and clicking 'Ok', I get an 'object required' message and I have to 'cancel' out of the 'Add Attachment' view of the page to continue. The attachment does not save.

Indeed, currently as it is, his solution seems to be incomplete...
I've continued working on this, and after adding missing tag ID="idAttachmentsRow{$noop}" and some hide-if-no-attachment Javascript, the form looks exactly like the original one. However whenever I click on OK, SharePoint does create the item, but doesn't attach the file...
No error is thrown, SharePoint simply doesn't take whatever is inside "Attachments" into account.

Further on, I've looked inside tag __designer:bind= which can also be found for both "Title" and "Body" (I'm working on a Announcement list...) ; but all my attempts lead me to :
"The data source control failed to execute the insert command."

Has anyone got a single clue on the next move
I just can't find enough documentation on __designer:bind and everything that goes along (ddwrt: functions, events to throw, etc.)





Re: SharePoint - Design and Customization How to build a custom list form with SharePoint Designer with attachment support

K Rock

This forum's topis is using SharePoint Designer, but I decided not to use the buggy program. Through using extra steps with WSS, everything works perfectly. Actually better than we using Designer.



Re: SharePoint - Design and Customization How to build a custom list form with SharePoint Designer with attachment support

Babygiglio

Can I ask you about the solution extra-designer you have found

Thanks





Re: SharePoint - Design and Customization How to build a custom list form with SharePoint Designer with attachment support

Higo

So has anyone already solved this problem

I have tried and modifed guruevi's solution with an edit form but as has already been said , it doesen't work.

i found out that the attachments are saved in a file in the list: [your list]/attachments/[list item id]/[file].

if you put an attachment here, the list will see the attachment for your item.

I am now thinking of creating a custom attachment upload page and handle the uploading myself( don't know how yet , with codebehind and so on).

If anynone has solved this. pleas post your answer.

Greetings





Re: SharePoint - Design and Customization How to build a custom list form with SharePoint Designer with attachment support

lchungue

Nope, so far I've got no luck in tweaking Evi's "solution"...
But good luck Higo ! Wink

BTW, if you know anything about __design:bind or any of the ddwrt functions not appearing here (like "databind()" ), please let me know Smile





Re: SharePoint - Design and Customization How to build a custom list form with SharePoint Designer with attachment support

BCan

How frustrating not able to modify a simple page in sharepoint and make it work with all its default features.

I am really surprised the Microsoft has not looked this issue of not being able to activate the "attach files" function with custom layout

Really disappointing

BC





Re: SharePoint - Design and Customization How to build a custom list form with SharePoint Designer with attachment support

Anonymous

Anyone has found a solution