xpages

XPages disable eventHandler

南笙酒味 提交于 2019-12-13 07:47:25
问题 I have a span tag with an onCLick event handler. I would like to disable the event handler based on the value of a scope variable. The scope variable is being set when I click a checkbox. How can I do this? Thanks for your input! Dan 回答1: In client side part of the event use this code. return !#{sessionScope.disableEvent}; That should render as return !false; // continues to SSJS or return !true; // no SSJS 回答2: Event handlers have a rendered-attribute that you can calculate. If the span in

How to control localization settings in the iNotes calendar control?

余生颓废 提交于 2019-12-13 07:45:24
问题 The "extLib" iNotes calendar control appears to have a "life of its own" when it comes to localization settings: in the week views e.g. weekday and month names are following the localization settings of the client (if I set the browser's language to en-US it says "Monday" ... "Sunday"), but the week always starts at Monday. Another example are the time slots where they are displayed: times are always displayed as "09:00" .. "12:00" and then onwards as "13:00" .. "18:00" etc. But there are

Getting an Error message when trying to appendDocLink is SSJS

跟風遠走 提交于 2019-12-13 07:41:23
问题 Not sure what I'm doing wrong, but here is the code 1: var currDoc:NotesDocument = currentDocument; 2: var doc:NotesDocument = database.createDocument(); 3: doc.replaceItemValue("form", "Memo"); 4: doc.replaceItemValue("sendTo", currDoc.getItemValueString("responsible")); 5: doc.replaceItemValue("subject", currDoc.getItemValueString("replySubject")); 6: var rtitem:NotesRichTextItem = doc.createRichTextItem("Body"); 7: rtitem.appendText("The following more information request has been answered

Is there a simple way to allow a user to download the files in selected documents from a viewPanel?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 07:11:51
问题 I have a portal where users sign in and see a bunch of documents sorted and categorized by year then category. They want a check box next to each document so they can select one or many documents then press a button to download all the files from the selected documents. There is only one file per document. Is there an easy way to program such a thing? 回答1: You want to download attachments from selected documents all at once. Create a zip file which contains all attachments and download the

Best Practice to update computed fields on an xpage using managed beans

你说的曾经没有我的故事 提交于 2019-12-13 07:07:12
问题 I have an xpage with several editable fields and need to update some computed fields dynamically. I am using a managed bean to store all data, all the fields are bound to the bean. For example sake, say there is an input called input1 , and another called input2 . I would like to display the sum in a field dynamically, call this field sum1 . This field like the others is bound to the managed bean. I was intending on using either a partial refresh or CSJS to update the sum1 field, and a

Getting error when using Extension library and dojo in xpages

倾然丶 夕夏残阳落幕 提交于 2019-12-13 07:06:26
问题 I have installed domino designer 8.5.2,and Extension library 8.5.2,dojo 1.6.1.Then i have developed the Xpage using mobile apps controls. When previewing the Xpage in the web,i am getting the error in console is given by Failed to load resource: the server responded with a status of 404 (Not Found) /domjs/dojo-release-1.6.1/dojo/dojo.js:14 failed loading /domjs/dojo-release-1.6.1/dojo/./parser.js with error: ReferenceError: Can't find variable: define /domjs/dojo-release-1.6.1/dojo/dojo.js:14

Nested Expression Language Syntax in XPages

♀尐吖头ヾ 提交于 2019-12-13 06:49:55
问题 I'm refactoring an XPage which mimics the Notes Client discussion database. (Don't ask) I've created a Managed Bean which loads all the navigation information into a tree, and created a set of nested repeat controls that access the managed bean. I'm having issues with the collapse and expand functions. The original authors use Client Side JavaScript by accessing the panel containing the entries which are one level under. They did this by hardcoding everything. 1000 lines of XML, that was. <xp

xPages Designer Team menu is missing

十年热恋 提交于 2019-12-13 06:16:09
问题 I was installing source control in the xPages / Domino designer and screwed it up. In trying to repair my flawed install, I've somehow removed the "Team" designer menu option. Can anyone tell me how to get the "Team" menu option in designer back? Thanks in advance, -- Jeff 回答1: 99% of the time, deleting the workspace folder will reset everything (back it up somewhere in case you need the stuff in it). This will resolve issues caused by most broken plugins. 回答2: I assume you are in the package

Multiple data sources in XPages

夙愿已清 提交于 2019-12-13 06:00:22
问题 I have 2 xpages that interact together. The first acts as a homepage and allows the user to create a new document and fill out some basic header information. The button to create the new document, sets a sessionScope var with the NoteID . It then saves document1 and opens the same document using another xpage. The second xpages is bound to document1, and uses the sessionScope to edit the document. This xpages contains and editPanel bound to document2. I want to create a child document to

customValidator without requiredValidator?

牧云@^-^@ 提交于 2019-12-13 05:58:50
问题 I am struggling with a custom validator for a text field. It seems that the custom validation only works AFTER the required validation is executed. This means that a field without a requiredValidator cannot be custom validated - is that true? What I want to do: I have a text field. The value is only required if a specific value in another field is selected (here this is a checkbox group). It is a dependant validation. My custom validator works fine until the text field is required - but this