There I was preparing some demos for this upcoming conference and BAM, the old API
quirks are lurking.
Basically I wanted to simply set the Title or Name fields on a File
in a Document Library. All sounds simple enough.
Here’s the code:
It’s a pretty simple sample, grab the file you want – in my case I’m just picking
the first one.
Line 48/49 – compile and run, but do not set the Title of the file element.
*** Lines 50-52 are the winners.
So even though the in lines 48/49, there is actually a ‘Title’ property and it’s
settable, it falls on deaf ears as far as WSS is concerned.
I was hoping the File and its corresponding list item were kept in sync.…..never
assume.