Xpage and Mobile Application

Mobile application can be divided into three types. 1. Native 2. Web 3. Hybrid Native mobile application can intract with built in mobile features like camera and stored on mobile. Accessing the application in Offline is possible . But it is not the case in web applications. It can’t access the mobile phones built in …

Export to symphony from xpage

Lotus Symphony is the open source alternative for Microsoft Excel. It uses the odf format. It is calculating speed is faster than the MS Excel. The main difference between exporting to excel and symphony is a matter of 3 lines of code response.setContentType(“application/x-vnd.oasis.opendocument.spreadsheet”); response.setHeader(“Cache-Control”, “no-cache”); response.setHeader(“Content-Disposition”,”attachment; filename=export.ods”); Here we are creating the writter object for¬†getResponseWriter …

Export to excel from xpage

At times we need to create export excel report from the view. Below is the simple way to do that. 1. Create a new xpage and go to all properties. 2. Change the Rendered property to false Source for the xpage

Identify a text or text list is empty or not

We can use getitemvalue and checking the 0 index value like var(0). Another way we can do is like using a method available for notesitem class. it is notesitem.text. Read the usage in help file carefully. For multiple values in a list are separated by semicolons in the returned string. If an item’s value is …