357 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Pods | Blogs | Search | myPL | About 
 
Sorry, no records were found!
Latest 7 Posts
Searching multiple databases in Xpages and realtime sortable results.
Sat, Aug 13th 2011 93
Xpages and Java tip:- how to save a Java object to a Notesdocument
Fri, Aug 5th 2011 90
Xpages : Here is how to create a clearable textbox!
Tue, Jun 28th 2011 173
Xpages Debug Custom Control v2.0 released on OpenNTF
Sun, Jun 26th 2011 67
Tip: a quicker way to document your Xpage custom controls
Wed, Jun 15th 2011 51
OpenNTF We4IT Contest - Xpages Captcha Custom Control
Wed, May 18th 2011 64
Source Sniffer v3.0 - released on OpenNTF soon...
Thu, May 5th 2011 56
Top 10


Xpages - Somehow the getAttachment method does not work anymore in 8.5.2
Ferry Kranenburg    

div /divdivBefore we upgraded from 8.5.1 to 8.5.2 the following code worked correctly./divdivAfter the upgrade we saw some functionality not working anymore, all of them where using the .getAttachment method./divdivIn this code rowLink is a NotesDocument object within a repeat control./divdivSomehow the attachmentList var is always null, does anyone had similar experiences with the method getAttachment? /divdiv /divdiv /divdiv /divdivfont color=#7f0055 size=2font color=#7f0055 size=2font color=#7f0055 size=2font color=#7f0055 size=2p align=leftvarfont color=#000000 size=2 nr:String = /fontfont color=#8e00ff size=2font color=#8e00ff size=2quot;1quot;/font/fontfont size=2font color=#000000;/font/font/p/font/fontfont color=#7f0055 size=2font color=#7f0055 size=2p align=leftvarfont color=#000000 size=2 attname:String = /fontfont color=#8e00ff size=2font color=#8e00ff size=2quot;linkquot;/font/fontfont color=#000000 size=2 + nr + /fontfont color=#8e00ff size=2font color=#8e00ff size=2quot;.htmlquot;/font/fontfont size=2font color=#000000;/font/font/p/font/fontfont color=#7f0055 size=2font color=#7f0055 size=2p align=leftvarfont color=#000000 size=2 fieldname:String = /fontfont color=#8e00ff size=2font color=#8e00ff size=2quot;lnk_File_quot;/font/fontfont size=2font color=#000000 + nr;/font p align=leftfont color=#000000 //pp //font/p/fontfont color=#7f0055 size=2font color=#7f0055 size=2p align=leftvarfont size=2font color=#000000 attachmentList:NotesEmbeddedObject = rowLink.getAttachment(fieldname);/font/font/p/font/fontfont color=#7f0055 size=2font color=#7f0055 size=2p align=leftiffont color=#000000 size=2 (!attachmentList == /fontfont color=#7f0055 size=2font color=#7f0055 size=2null/font/fontfont size=2font color=#000000){/font p align=leftfont color=#7f0055 size=2font color=#7f0055 size=2return/font/fontfont size=2 /fontfont color=#8e00ff size=2font color=#8e00ff size=2quot;http://quot;/font/fontfont size=2 + /fontfont color=#7f0055 size=2font color=#7f0055 size=2context/font/fontfont size=2.getUrl().getHost() + /fontfont color=#8e00ff size=2font color=#8e00ff size=2quot;/quot;/font/fontfont size=2 + /fontfont color=#7f0055 size=2font color=#7f0055 size=2database/font/fontfont size=2.getFilePath() + /fontfont color=#8e00ff size=2font color=#8e00ff size=2quot;/0/quot;/font/fontfont size=2 + rowLink.getUniversalID() + /fontfont color=#8e00ff size=2font color=#8e00ff size=2quot;/$FILE/quot;/font/fontfont size=2 + attname; p align=left}font color=#7f0055 size=2font color=#7f0055 size=2else/font/fontfont size=2{ p align=leftfont color=#7f0055 size=2font color=#7f0055 size=2return/font/fontfont size=2 rowLink.getItemValueString(/fontfont color=#8e00ff size=2font color=#8e00ff size=2quot;lnk_URL_quot;/font/fontfont size=2 + nr); p align=left}/p/font/pp //font/pp //font/pp //font/pp //font/font/font/fontfont size=2 /font/font/div

---------------------
http://www.bleedyellow.com/blogs/ferrykranenburg/entry/october_12_2010_7_47_am4
Oct 12, 2010
36 hits



Sorry, no records were found!
Recent Blog Posts




Created and Maintained by Yancy Lent - About - Blog Submission - Suggestions - Change Log - Blog Widget - Advertising - Mobile Edition