xpages

Open document in new tab from xPages viewpanel?

99封情书 提交于 2019-12-24 03:06:09
问题 Is there any way to open the document in a new browser tab when the link in a view panel is clicked? 回答1: You have two options. one is the way that Tim explained. And another, you can compute the view column value as link. There you can use the _new or _blank property. Simply say, View Column can be given as a HTML. There you can compute the page with html href tag. 回答2: "target" is one of the properties of the view panel component. If you specify "_blank" (as Ferry suggested) as the value of

DOTS Task Generates error on load

折月煮酒 提交于 2019-12-24 02:06:50
问题 I'm running Domino 9.0.1 and was attempting to load up the DOTS task. Getting an exception when attempting to load it. From the below it seems DOTS isn't installed. Thought it was part of the default installation for XWork/ Domino 9x releases. Do I need to follow the install steps for 8.5.3, another installer to use? Exception in thread "main" java.lang.NoClassDefFoundError: com.ibm.dots.launcher.OSGiProfile Caused by: java.lang.ClassNotFoundException: com.ibm.dots.launcher.OSGiProfile at

Xpages: Getting FullCalendar to work with a bootstrap theme

有些话、适合烂在心里 提交于 2019-12-24 01:58:05
问题 Per's answer was a big part of the solution. For completeness here is what I ended up having to do. First, I had to fix the AMD problem that Per mentioned. Then I had to modify my Xpage to make sure that the proper libraries were loaded in the proper order. Some of this was done with trial and error. I had to set the resource aggregation setting to true, but only for this design element. I do not understand why. Then I needed to add 2 js libraries and one css library. The moment library had

Set locale on view columns/date fields in theme Xpages

左心房为你撑大大i 提交于 2019-12-24 01:49:15
问题 Setting the locale on every date field component/editbox component/view column is time consuming. Is it possible to set them in a theme? EDIT: To be more clear: We ship an application to several customers to be run on their servers. Customers have different needs on how date should be displayed and entered depending on the regional setting applicable for their country of origin. We have many views displaying data with dates and today we set all date columns converter locale to whatever the

XSP.showDialog doesn't work in onStart event?

安稳与你 提交于 2019-12-24 01:48:34
问题 I have the following test XPage. <?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xe="http://www.ibm.com/xsp/coreex"> <xp:panel id="pagePanel"> <xp:text escape="true" id="didThePageCompile"> <xp:this.value><![CDATA[#{javascript:var d = new Date(); return d.toLocaleString();}]]></xp:this.value> </xp:text> <xp:br></xp:br> <xp:button value="Label" id="button1"> <xp:eventHandler event="onclick" submit="true" refreshMode="partial" refreshId="dialog1"

View Search ( Notes error: Query is not understandable)

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 01:42:51
问题 I am trying to create a Xpage view search in application, for the below query alone I am getting an error "Notes error: Query is not understandablecode" Code: var strQuery="Field cc_number=\"DADM20121012174051\""; return strQuery; For other Queries I have created, the search is working fine. can any one tell me why this error is coming.I read in web the size limit of search query is 1024 bytes.Link:http://www-01.ibm.com/support/docview.wss?uid=swg1LO68462. I think the above Query is not

Cannot set sessionScope variable when multiple IFrames are present on a XPage

匆匆过客 提交于 2019-12-23 22:50:44
问题 I have a XPage ("xBase") containing multiple IFrames, each showing a XPage ("xIFrame") in my database. When clicking on a button in xBase, a sessionScope variable is set and a label showing this variable is partially refreshed (see example code). Displaying the variable this way works fine as long as there are not too many IFrames. In the short demo example below the display only works up to 3 IFrames, but as soon as there are 4 or more present, the sessionScope variable is not set anymore. I

Unresponsive buttons after certain time

▼魔方 西西 提交于 2019-12-23 22:09:00
问题 Today we encountered a strange problem. We have a XPage with some buttons, who id opened in editMode and bind to backend Notes Document. We can press the buttons and the values are updated to the backend document. Via a partial refresh we see the new values. So far so good. But.. when we leave the XPage open for, let say 1 minute, without doing anything. After this period we try to click a button, we noticed that the button became unresponsive. Is there a cause for this behaviour?? 回答1: Never

Import SSJS script library using DXL in a database

[亡魂溺海] 提交于 2019-12-23 19:16:12
问题 We need to import a SSJS library in a database using DXL. For this we have written a Java Agent and its code goes something like this: import lotus.domino.*; public class JavaAgent extends AgentBase { private DxlImporter importer = null; public void NotesMain() { try { Session session = getSession(); AgentContext agentContext = session.getAgentContext(); String filename = "C:\\tempssjslib.xml"; Stream stream = session.createStream(); if (stream.open(filename) & (stream.getBytes() > 0)) {

Task Tags in XSP sources

时光怂恿深爱的人放手 提交于 2019-12-23 18:49:33
问题 In Java sources one can use (by default) //TODO, //FIXME and //XXX comments to add that part of source to Tasks view in Eclipse/Domino Designer. I would like to use it in SSJS too, but I can't make it work. In Designer preferences General/Editors/Structured Text Editors/Task Tags , Filters tab, you can eneable " Enable searching for Task Tags " checkbox and tick XML type. Affected content types section contains "xsp" that is file extension of XP/CC sources. But any tag in SSJS source