xpages

How do I set the zIndex on a dijit.TooltipDialog?

只愿长相守 提交于 2020-01-03 04:47:06
问题 I've created a dijit.TooltipDialog and everything works as it should. However, if another dialog is produced from within the tooltip dialog it shows up behind the tooltip dialog instead of on top of it. I checked the zIndex on the 2 dialogs and the tooltip dialog is 1000 and the other dialog is 950. I've tried setting the zIndex on the respective container node and the tooltip dialog's "domNode" both with no luck. So does anyone know how to set the zIndex on the tooltip dialog? 回答1: as you

Binding a Xpage DominoDocument to a Bean

懵懂的女人 提交于 2020-01-03 04:18:09
问题 is it possible to bind a DominoDocument directly to a Managed Bean. So that I can have a property in my Bean which holds a reference to the DominoDocument all the time? Appreciating any suggestions/advices! 回答1: As Per mentioned above, the simplest way to do what you want is instead of binding it to a property in your bean, just access it using a method in your bean. public DominoDocument getDominoDocument() { // Whatever the data source name is you want to get String documentName =

XPages: Bootstrap Validator

假装没事ソ 提交于 2020-01-03 02:26:13
问题 i was trying to build a Xpage with a Bootstrap Validator (http://bootstrapvalidator.com/examples/mask/) to validate an IP-Adress <?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core" id="testid"> <xp:this.resources> <xp:styleSheet href="/bootstrap.css"></xp:styleSheet> <xp:styleSheet href="/bootstrapValidator.min.css"></xp:styleSheet> <xp:script src="/jquery-1.11.1.js" clientSide="true"></xp:script> <xp:script src="/bootstrap.min.js" clientSide="true"></xp

Use placeholder attribute and password type in Xpages

北慕城南 提交于 2020-01-03 01:58:13
问题 I have an Edit Box that I want to use a placeholder AND password='true'. Changing password='true' causes the placeholder to not work, the password type does work. I set the placeholder like this: <xp:attr name="placeholder" value="Enter Password">/xp:attr> You cannot set type=password or you get an XSP error telling you to use password=true instead. BTW: I am using the placeholder instead of labels in the same style as Slobodan Lohja's popular blog post: http://xpagesbeast.com/uxdesign

How to pass variable parameters to an XPages SSJS function?

北战南征 提交于 2020-01-03 01:53:06
问题 If I have a function in SSJS and I want to pass one "firm" parameter and a list of others that can change, what's the best way to do that? With some kind of hashMap or JSON or something else? for example given something like: myfunction( code:string, paramList:??) { // do stuff here } Basically the function will create a document. And sometimes I'll have certain fields I'll want to pass in right away and populate and other times I'll have different fields I will want to populate. How would

Use Quartz Scheduler in IBM Domino Application

懵懂的女人 提交于 2020-01-03 01:31:08
问题 I'm very new to Quartz, but know 3 simple things which you have to have in order to make it work. These are jobs, triggers and scheduler. Now, in our domino application we have to use it for refreshing a token. I've created 3 basic classes for it. The job: public class RefreshEGRZTokenJob implements Job { public void execute(JobExecutionContext arg0) throws JobExecutionException { System.out.println("stub for refreshing a token"); } } The trigger and something like main : public class

execute standby dialog from link

▼魔方 西西 提交于 2020-01-02 16:24:24
问题 Here is what i have : Xpages page that fills in form based on url parameter by key. This can take upto 10 sec to render and i would like to let the user know that the form is doing something. Fredrik Norling did a great standby dialog and its works great when i use it on button(save) http://openntf.org/XSnippets.nsf/snippet.xsp?id=standby-dialog-custom-control (am using Partial update on ID on the form when saved) How can i execute this script block from a link in a email ? There are option

XPages Extension Library Create an event with room reservation via Data Calendar Service API

爷,独闯天下 提交于 2020-01-02 13:31:22
问题 I'm trying to create an event with a room reservation via the Xpages Calendar Services APIs, with a valid JSON object. Details of the request I am using : URL : [server-path]/mail/administ.nsf/api/calendar/events Operation : POST Headers : Content-Type : application/json JSON Body : { "events": [ { "summary": "Meeting 1 Added via API Call", "location": "Conference Room 2/Site@domain", "description": "Test description", "CalendarDateTime":{ "date":"2014-02-11", "time":"17:00:00", "utc":true },

Display several photos in several rows AND columns with a repeat

隐身守侯 提交于 2020-01-02 10:15:12
问题 I would like display photos in a window on several rows and 3 columns. image1 image2 image3 image4 image5 image6 image7 image8 image9 image10 image11 image12 Actually I find to put photo1, 2 and 3 and the others are behind photo3 but not visible... image1 image2 image3 [image4 image5 image6 image7 ....] This is my code : <xp:table> <xp:tr> <xp:repeat id="picturesRpt" value="#{dsvListePhoto}" indexVar="i" var="picture" rows="3" > <xp:panel> <xp:this.data> <xp:dominoDocument var="pictureDoc"

Xpages get a handle on next rowData or Doc in a repeat

☆樱花仙子☆ 提交于 2020-01-02 10:07:58
问题 In my repeat control I want to be able to get a handle on data in the next row in order to modify what data is displayed in my current row (I have move up and down actions, and I don't want to display them if the move is not possible). It seems I should be able to do this. Probably I cannot from within in the repeat itself, as when it is writing the repeat it will not know the data for the next repeat. But shouldn't there be a fairly easy way to get the next document? Here is a reduced