371 Lotus blogs updated hourly. Who will post next? Home | Downloads | Events | Jobs | Twitter | Bookmarks | Pods | Forum | Blogs | Search | myPL | About 
 
Latest 7 Posts
Interesting "Export to Microsoft Excel" option in Notes Client
Fri, Sep 9th 2011 143
Web access to database only getting Read Public Docs.
Thu, Jun 30th 2011 122
XPages Extension Library - ValidationTextBox required attribute
Thu, May 26th 2011 189
Domino Designer Eclipse Single Click
Wed, May 11th 2011 100
XPages - Clientside access to Serverside data or events?
Sun, Dec 19th 2010 186
XPages - does anyone know the security needed for memo.send() please?
Tue, Nov 16th 2010 133
XPages Notes Client caching problems
Thu, Nov 11th 2010 105
Top 10
XPages Extension Library - ValidationTextBox required attribute
Thu, May 26th 2011 189
XPages - Clientside access to Serverside data or events?
Sun, Dec 19th 2010 186
XPages @Trim gotcha - empty array entries
Fri, Nov 5th 2010 181
Interesting "Export to Microsoft Excel" option in Notes Client
Fri, Sep 9th 2011 143
XPages - does anyone know the security needed for memo.send() please?
Tue, Nov 16th 2010 133
XPages Scope Variables
Thu, Sep 9th 2010 128
Web access to database only getting Read Public Docs.
Thu, Jun 30th 2011 122
XPages Notes Client caching problems
Thu, Nov 11th 2010 105
Domino Designer Eclipse Single Click
Wed, May 11th 2011 100
XPages data cleared after 4 browser back buttons
Wed, Nov 3rd 2010 98


Interesting "Export to Microsoft Excel" option in Notes Client
Jerry Shelley    

Well fancy that - there's an "Export to Microsoft Excel" option on the right click menu of a web page displayed in the Notes Client.

 

I've been writing some XPages to display some reports, but the user wanted the option to export the raw data to a spreadsheet. So thinking that the user was running the application in a browser, thus writing a file to their machine might be problematic, I simply wrote an Agent that took the contents of a View and printed HTML out to the browser. Yes, I know I could have let Notes do the hard work, but I had some code and I wanted to use it.

Anyway, when the user tested it they reported that they kept getting just the text of the Login Screen in Excel. Odd I thought - how can you get a login screen when all they're doing is copying and pasting the HTML output into Excel? It wasn't until I saw the screen-grab that they sent me that I realised that their Notes Client was set up to display web pages within the Notes Client. And low and behold there's a "Export to Microsoft Excel" option when you right click on the table...

To solve the user's problem of the text of the Login Screen appearing in Excel, all you do is click on Data, Import External Data, Edit query where you'll see a proper login screen and the user can enter their details and click the "Sign In" button. The data will appear and when Import is clicked the data is inserted into the worksheet. Magic!



---------------------
http://www.bleedyellow.com/blogs/YellowNotes/entry/interesting_export_to_microsoft_excel_option_in_notes_client
Sep 09, 2011
144 hits



Recent Blog Posts
144


Interesting "Export to Microsoft Excel" option in Notes Client
Fri, Sep 9th 2011 8:09a   Jerry Shelley
Well fancy that - there's an "Export to Microsoft Excel" option on the right click menu of a web page displayed in the Notes Client. I've been writing some XPages to display some reports, but the user wanted the option to export the raw data to a spreadsheet. So thinking that the user was running the application in a browser, thus writing a file to their machine might be problematic, I simply wrote an Agent that took the contents of a View and printed HTML out to the browser. Yes [read] Keywords: agent notes notes client xpages application microsoft
122


Web access to database only getting Read Public Docs.
Thu, Jun 30th 2011 6:12a   Jerry Shelley
It took me a while to figure out why when I was logging into a normal database that I got no access at all. I knocked up a $$ViewTemplateDefault Form, made it "Available to Public Access users", and put some Computed Texts on to show @Username, @UserRoles and @UserAccess( @DbName ). The 1st two were as expected but UserAccess returned "0, 0, 0, 0, 0, 0, 0, 1, 0" ie No Access! After hunting high and low, in every design element's and application properties box I finally found the cause [read] Keywords: acl application database password properties
189


XPages Extension Library - ValidationTextBox required attribute
Thu, May 26th 2011 8:10a   Jerry Shelley
I'm having great fun and success with the XPages Extension Library. Can't wait for it to be included in the core product so that we don't have to install it on the servers. Anyway, I was having a problem with a Dojo ValidationTextBox not stopping the submission of the form if it was failing validation. I figured out from DojoCampus documentation that you need to add the "required" dojo attribute and set it to true.                      Hope that helps someone. [read] Keywords: xpages dojo
100


Domino Designer Eclipse Single Click
Wed, May 11th 2011 10:08a   Jerry Shelley
Because I'll forget next time I install the Eclipse Designer Client where the option is to switch double-click off, and save me the embarrassment of sitting there waiting for something to happen, it is here ...File, Preferences, General, Open mode [read] Keywords: domino bleedyellow bleedyellow.com eclipse
186


XPages - Clientside access to Serverside data or events?
Sun, Dec 19th 2010 11:16a   Jerry Shelley
div I came across a great blog item from a href=http://mystonetool.blogspot.com/2010/02/add-google-map-to-xpages.htmlHorace Lin/a about bGoogle Mapping in an Xpage/b which works great. Im trying to extend the functionality so that its no longer dependant on Checkboxes in a View, but on the choice of a Combo Box or some-such, but Im failing to get the clientside code to pick up the output of a @DbLookup on the serverside. br /br /Let me explain:-br //divdivI have a Combo Box, data bound to a vie [read] Keywords: dblookup xpages dojo google
133


XPages - does anyone know the security needed for memo.send() please?
Tue, Nov 16th 2010 6:15a   Jerry Shelley
div style=background-color: rgb(255, 255, 255); Im getting an error quot;span class=row[font color=#ff0000TypeError] Exception occurred calling method NotesDocument.send() null/fontquot; when executing font color=#0000ffmemo.send()/font. From googling this, similar errors seem to imply that it is a security problem.br //span/divdiv style=background-color: rgb(255, 255, 255);span class=row //divdiv style=background-color: rgb(255, 255, 255); /divdiv style=background-color: rgb(255, 255, 255);Do [read] Keywords: xpages database java security




105


XPages Notes Client caching problems
Thu, Nov 11th 2010 1:14p   Jerry Shelley
font face=Arial size=2 Im developing my first XPages app for the Notes Client, after developing browser based XPages for the past year, and am experiencing terrible caching problems of the design elements. What am I doing wrong?br / br //fontdivfont face=Arial size=2 I make a change to an XPage, open it in the Notes Client and its the old version of the XPage that displays. If I close down the client and then Preview in Notes Client the XPage, then it does show the new version. If I then cl [read] Keywords: notes notes client xpages database
57


Domino Designer Ecliipse - moving between Objects in LS - Yippeee!
Fri, Nov 5th 2010 7:30a   Jerry Shelley
divMy joy is boundless now that Ive found the shortcut for moving between LS Objects in the Designer Client! /divdiv /divdivIt used to be Ctrl+PageDown and Ctrl+PageUp.br /br /Now in Eclipse it is Ctrl+Shift+DownArrow and Ctrl+Shift+UpArrowbr //div [read] Keywords: domino eclipse
181


XPages @Trim gotcha - empty array entries
Fri, Nov 5th 2010 7:30a   Jerry Shelley
div Just found out that the XPages version of @Trim does unot/u remove empty array entries like the @Formula version./divdiv /divdiv So found this on StackOverflow...br //divdivfont color=#0000ff function cleanArray(actual){br /  var newArray = new Array();br /  for(var i = 0; ilt;actual.length; i++){br /      if (actual[i]){br /        newArray.push(actual[i]);br /    }br /  }br /  return newArray;br /};/font /divdiv /divdivhttp://stackoverflow.com/questions/281264/remov [read] Keywords: xpages javascript
98


XPages data cleared after 4 browser back buttons
Wed, Nov 3rd 2010 3:26p   Jerry Shelley
divHad no response to this in the 8.5 forum, so Ill ask here ... is this a bug do you think, or my bad coding somehow, please?br //divdiv /divdivfont face=Arial size=2Im writing an extranet web app that will be available to real people, i.e. not in-office staff that you can train. During UAT it has been flagged up that clicking on a list of documents then the back button 5 times causes all data on the screen to be cleared!/fontbr //divfont face=Arial size=2 br / br //fontdivfont face=Arial [read] Keywords: xpages bug office




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