xpages

How to create group property on xsp-config?

落花浮王杯 提交于 2019-12-13 03:03:40
问题 I am learning how to create UI Control on XPAGES (http://www-10.lotus.com/ldd/ddwiki.nsf/dx/Master_Table_of_Contents_for_XPages_Extensibility_APIs_Developer_Guide) And I have created my own control and I have set single property in xsp-config using property tag. But when I try to set group property using property-type tag, that group property is not shown. Here my xsp-config <faces-config> <faces-config-extension> <namespace-uri>http://fortedynamic.org/xsp/control</namespace-uri> <default

ToolTip Performance in XPages

∥☆過路亽.° 提交于 2019-12-13 03:02:31
问题 I have a large XPage with about 170 fields on it. I have tooltips for a fair number of the fields. The tooltip does a lookup into a help DB and returns the related text. They work fine but they significantly slow down the load process because of the number of times the lookup is performed. I put a dBar.info statement in the JS that loads the text and in one load the document and put it into edit mode it would appear to have fired that one tooltip lookup 6 times. If it does that for every one

Recycle and GetNextDocument / GetNextCategory in NotesViewNavigator?

不羁的心 提交于 2019-12-13 02:56:33
问题 How do I do a recycle for GetNextDocument or GetNextCategory in a NotesViewNavigator? Neither takes an argument so you can't use the conventional method of using a temp variable to pre get the next document like you might in a view. I suppose the solution would be to just use getNext with an argmenumnt but can GetNextDocument / GetNextCategory still be used? The error I am getting is on line 20. Without the recycle the code runs fine. From what I understand recycle destroys the object so I

xPages - how to append & prepend text to a richtext field

只愿长相守 提交于 2019-12-13 02:55:25
问题 I'm migrating an app to xpages. I have a doc that's created from an email received by the app. A richtext field on the created document contains the email body. Someone responds to the sender by updating this field and hitting the Send button. Before it actually goes out, I prepend and append a bit of text to the content being sent. I tried lots of ways to do this but am stumped. I know .getItemValue returns a vector but I thought I'd give it a shot anyway but returns null. var rtiIssueField

combobox - displaying multivalue numeric field

和自甴很熟 提交于 2019-12-13 02:35:55
问题 I have a form which contains a multi-value enabled numeric field. I would like to display it on an xpage in a combobox when it has multiple value. However I get the error 500 message. When I try to achieve the same thing with a multi-value text field the xpage got rendered. What am i doing wrong? <?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core"> <xp:this.data> <xp:dominoDocument var="doc" formName="test" action="editDocument"> </xp:dominoDocument> </xp

OneUI app layout, error with pulldown menus

冷暖自知 提交于 2019-12-13 02:33:58
问题 I am using the applayout and OneUI 3.0.2 theme. I have pulldown menus in the banner (application and utility links) but the menu won't show up. Instead I get this JS error: Uncaught lang.hitch: scope["_onKeyPress"] is null (scope="[Widget extlib.dijit.OneUIv302Menu, extlib_dijit_OneUIv302Menu_2]") I have a Windows 9.0.1FP1 where these do work. On a 9.0.1FP1 Linux / 9.0.1FP2 Windows it doesn't work. The Linux machine had FP2 installed before I just downgraded it to FP1 (it was a test to see if

Automatically add rows to a Data View?

痴心易碎 提交于 2019-12-13 02:13:00
问题 I am using a Data View control and the Pager Add Rows control to allow the user to add more rows to the data view. Can I extend the Pager Add Rows control to automatically add rows to the Data View when the user reaches the bottom of screen? 回答1: Yes, you can do that easily with jquery. if you master dojo you can probably do it in similar ways. but this example show jQuery. add jQuery to your xpage add a new custom scriptlibrary to your xpage put below code in your custom scriptlibrary Add a

xpages viewpanel searching and sorting

混江龙づ霸主 提交于 2019-12-13 01:42:57
问题 I think I may be expecting too much from a viewPanel Control (8.5.2), but want to confirm my suspicion. I have a domino view that has the first three columns sorted ascending and has the "click on column to sort" enabled and set to "both". When I simply display the view using a viewPanel and do not use the search and sort properties of the viewPanel, the display is sorted first by column 1, then by column 2, then by column 3. All ascending and pretty. But, since I only want a subset of

Setting viewScope onLoad and onResize

百般思念 提交于 2019-12-13 01:33:46
问题 I have used the '@media only screen' in my CSS to determine how and what information should be shown depending on the users screen size. I have a class called panelContainer which is set to display when the screen is greater than 767px, and a class called mobileContainer which displays when the screen is less than that. I have a couple of custom controls, one that contains the standard form layout and another that contains the mobile device form layout. Originally I placed a div around each

Xpages Rich Text validation

耗尽温柔 提交于 2019-12-13 01:28:01
问题 Is there any way to validate a Rich Text I add a validateExpression but is doesn't work. Thanks <xp:inputRichText value="#{document1.Request}" id="inputRichText1" style="width:99.0%"> <xp:this.validators> <xp:validateExpression message="Attachment is missing"> <xp:this.expression><![CDATA[#{javascript: if(getComponent("inputRichText1").getSubmittedValue()!== ''){ return true }}]]></xp:this.expression> </xp:validateExpression> </xp:this.validators></xp:inputRichText> 回答1: The validatorRequired