xpages

How to pass the Document context in Xpages while calling an Agent?

橙三吉。 提交于 2019-12-08 21:10:33
How to pass the Document context in Xpages while calling an Agent? In Xpage, I am in need of calling a java agent with documentcontext from my Xpage, And also I am in need of passing my current document as a parameter... In Lotuscript we can do it as easily without saving the current document, but in Xpage I am using the following code., document1 is a current document. var agent=database.getAgent("AgentName"); agent.runWithDocumentContext(currentDocument.getDocument()); This code I am not able to get the values of my current document's items, but if I will use the following code, var agent

XPages: Bootstrap Validator

旧城冷巷雨未停 提交于 2019-12-08 21:01:30
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:script> <xp:script src="/bootstrapValidator.js" clientSide="true"></xp:script> <xp:script src="/jquery

Repeat control with checkbox?

戏子无情 提交于 2019-12-08 13:52:24
问题 I have a repeat control which displays a view. I now want to include a checkbox, so that I can perform actions on the selected documents. I have no problem adding the check box, but how can I check if the checkbox is checked then get to the associated document for that row? Thoughts I had were: Have the check box change event add or remove the document's UNID from a array scope variable. Then just perform actions on documents in that array. Forget the checkbox and just popup a list box, to

XPages: How to acces an application scope bean from a session scope bean

℡╲_俬逩灬. 提交于 2019-12-08 13:38:29
I need a value from my application scope managed bean in my session scope managed bean. Not sure how to get this done. Saw a poste here: https://guedebyte.wordpress.com/2012/05/19/accessing-beans-from-java-code-in-xpages-learned-by-reading-the-sourcecode-of-the-extensionlibrary/ But I get a bunch of errors... I also found this: JSF 2.0 Accessing Application Scope bean from another Bean so IM thinking maybe I need to redefine my application bean??? Totally clueless... How can I make that happen? Here is the application scope bean's code: public class AppConfig implements Serializable { private

autosave function Ajax Mode - second part

牧云@^-^@ 提交于 2019-12-08 13:34:37
问题 Hi I have try to realize that...but I have some problem with CKeditor control: autosave function in Ajax mode With Firebug I see the POST sending for a simple field (text for example) but the post of CKEDITOR is not correct (I see only the initial value when I open the XPages) have anyone any idea? P.S. I have add this code into the onstart function: for(var instanceName in CKEDITOR.instances) { CKEDITOR.instances[instanceName].updateElement(); } Now I see the POST with correct HTML...don't

Customize Ckeditor plug-in into Domino 8.5.3

落爺英雄遲暮 提交于 2019-12-08 10:36:12
问题 I I have read this url first official and this another blog But they only describe how the toolbar parameter 'Large', 'Medium' etc. work. How can I hide, for example, the plug-in "Full-Screen" or enable the native plug-in of Ckeditor 3.X named "spell-check"? 回答1: You link to two articles that both mention that you can configure the CKEditor with exactly the buttons you want. From http://www-10.lotus.com/ldd/ddwiki.nsf/dx/CKEditor_in_XPages_in_NotesDomino_8.5.2: To define your own toolbar, add

Sequence of events from a submit button

China☆狼群 提交于 2019-12-08 10:09:00
问题 I have a simple test page that I'm trying work through the sequence of events and how to handle a querySaveDocument failure. As far as I can see the sequence of events is onclick of submit validation querySaveDocument save document in the submit action I return 'success' but that happens regardless of whether the querySave returns true or false. Now what I want to do is if the querySave fails return tio the same document the same way as the validation does. So I believe that setting the

Benefits of using themes in XPages

元气小坏坏 提交于 2019-12-08 09:41:43
问题 This question on StackOverflow got me interested into Themes. But the example in the question just assigns a CSS class in theme file to a themeId which is in turn assigned to the element with respective themeId on XPage. I could also directly assign the class name to component in XPage. So my first question is what benefit does a theme bring to an XPage? I was trying to explore what other properties could be assigned via themes and it seems we can assign other properties like valign and style

xpage creates save conflict on save/submit

ε祈祈猫儿з 提交于 2019-12-08 09:31:15
问题 I have an xpage that on submit of an edit to an existing document, a save conflict is created each time you click the submit button. I am the only one that has access to this application currently so I do know there are not any other users that be be saving also. 回答1: I noticed this when I attached a document data source to multiple custom controls that I used in that xpage. When the save document simple action was executed it resulted in save conflicts all the time. 来源: https://stackoverflow

SessionAsSigner - database object conflicts

柔情痞子 提交于 2019-12-08 09:31:08
问题 Hello Domino programmers! I work on a Xpages application and i ran into a following problem: I have to use sessionAsSigner object to get number of all documents in a view. I use single computed field to display: user visible document count / all documents count value and another computed field to display current (not sessionAsSigner) user name. Page looks as follows: Under UserName Computed field code i entered following code: session.createName(session.getEffectiveUserName()).getCommon()