xpages

Is there Java/SSJS equivalent of @AttachmentModifiedTimes?

谁说我不能喝 提交于 2019-12-24 14:46:18
问题 I want to show list of attachments and FileDownload control is not an option (need custom actions for every file). To get name and size of attachments there are properties of EmbeddedObject . AFAIK, to get modified time of attachment there is only one option: to use pure @Formula, either via session.evaluate or view containing column with @AttachmentModifiedTimes. Is there a way (Java/SSJS) to get attachment's modified (and created) time without native @Formulas? That means date stored with

XPages - Dojo Filtering Select - save both label and value

喜夏-厌秋 提交于 2019-12-24 14:28:34
问题 I'm using a Dojo Filtering Select control on an XPage and would like to save both the label and value when the XPage is saved. Is it possible for me to save both values to either the same or separate fields? 回答1: You'd like to set a document's field to the corresponding label of currently selected value. The code below works for defined xp:selectItem items and all kinds of computed xp:selectItems definitions based on a property, a view, a bean or other source. Server Side JavaScript Solution

Using External jar causing Error

ⅰ亾dé卋堺 提交于 2019-12-24 14:06:39
问题 I'm doing the following steps: Create an empty Notes Database (Lotus Notes 9.0.1 on Domino 9 Server) Creating Xpage with only one Label Inserting external Jar File (Code - Jars) I tested this setting with different jar Files. In most cases there are no problems but I found 2 jar Files which produce an error 500 in XPage without being referenced starface-rpc-1.6.442.jar log4j-1.2.17.jar Does someone has an idea what can be the problem? 回答1: Those two .jar files depend probably from other .jar

XPages bootstrap break(small space) between table and inputBox

杀马特。学长 韩版系。学妹 提交于 2019-12-24 14:00:04
问题 I have Bootstrap 3.2.0 . When I put a table into a page (.xsp) it takes so much space there. I tried all bootstrap classes like table-condensed , table-responsive etc. for tables and input-sm , form-control and the others for inputboxes . I created a CSS class shown below and then even if I use those classes nothing changed. Expected result: I'm looking for a solution on how to make whole spaces between inputBox and table to disappear. .input-group-xs>.form-control, .input-group-xs>.input

XPages Exact Search

╄→尐↘猪︶ㄣ 提交于 2019-12-24 13:33:55
问题 I am using a view control in an XPage, and have incorporated a search with much struggling. I also have a dropdown to select a category, to be used as an additional filter with the search. My query is now: sessionScope.searchTerm AND Field Category=" + sessionScope.categoryname + " Everything finally works except that the category filter is finding non-exact matches, for example "Management" finds the documents in the categories "Management" but also in "Facilities Management". This is not

erratic failure of sessionAsSignerWithFullAccess

三世轮回 提交于 2019-12-24 13:33:22
问题 The code below is a some test code that I have in an action button on an XPage. I need to get a handle on the current database with FullAccess in the code WFSUtils.sysOut just formats a printed message to the server console. Periodically the error message in the catch returns 2015-01-09 12:49:11 PM HTTP JVM: WFS ~~~ Error in Update Demo 'sessionAsSignerWithFullAccess' not found I am the signer of the XPage and the database is signed by the server ID. Sometimes it runs through just fine other

XPages Button on page will not fire

时光怂恿深爱的人放手 提交于 2019-12-24 13:31:27
问题 I have an XPages with a button on it that will not do anything no matter how simple the code is. There are no errors appearing, nothing in the logs showing me why it does not work. Here is the test button that does nothing: <xp:button value="Print" id="button4"> <xp:eventHandler event="onclick" submit="true" refreshMode="complete"> <xp:this.action><![CDATA[#{javascript:context.redirectToPage("invoices_page1_doc.xsp");}]]></xp:this.action> </xp:eventHandler> </xp:button> I do not see that code

Xpages Open new Database in Same Tab/Windows in XPiNC

ε祈祈猫儿з 提交于 2019-12-24 13:13:33
问题 I am trying to creating uniform application layout for multiple applications. I cannot seem to get a link on the AppLayout in one database to open a new database in the same tab/window as the first database. My goal is to have aa uniform application layout control for several databases, with a link in the Application Links to each database, so it looks to the user as if they are really in one big application. And I am doing this in XPiNC. I keep getting opened in a new tab. I have changed the

Xpages: change background color of edit box

喜欢而已 提交于 2019-12-24 12:33:51
问题 I hope this is a simple question :o) I have an Edit Box on an xPage called "name" that is a required field. I would like the background to be (light) red when there is no text in the field and white once the user starts typing. Basically what I want is for the users to see that any field that has a red background is a required field. I assumed that I could just calculate the style at run-time - but I cannot find the way to do this. Does anybody have code to do this? Thanking you in advance

(Xpages) SOA or Direct Database Access

北战南征 提交于 2019-12-24 10:59:18
问题 I'm currently doing an application usign Lotus Notes' XPages. I'm planning to use XPages(or Lotus Notes in general) as the front-end/UI/Design only (not a data storage), while an RDBMS (Oracle, MySQL) as the data storage. I found out that XPages currently doesn't support external RDBMS as data source. Based on my research, I have 2 options (or if you know of others, please put it in the comment section), either to so a SOA approach (where I will get my data using web services) or a direct