xpages

Control language/localization in ExtLib controls?

限于喜欢 提交于 2020-01-05 06:28:00
问题 I am currently creating a web layout for an old database based on XPages. The users are Danish - and I want to ensure that they see a correct layout of dates and Danish labels on the pagers etc. For the standard pager I am using the "custom" type and translate the "Previous" and "Next" labels (put it on a custom control and reuse that on all the pages). I did try to set the language on the pager, however, that does not change anything...? Well, now I am also using the "pagerExpand" control

Can't remove the value entered in the djFilteringSelect dojo control in xPages

我的梦境 提交于 2020-01-05 04:16:15
问题 I am using the djFilteringSelect control to show values in a dropdown as user type a value. The lookup and typehead is working fine. The user type a letter and the dropdown allow the user to select a value which is then displayed in the dropdown field. If the user now decide to remove the value first selected so that the combobox is empty and leave the field, then the first value in the list is now automatically filled in. The consequence of this is that if the user have added a value there

Creating uniform application layout for multiple applications

*爱你&永不变心* 提交于 2020-01-05 04:00:49
问题 My company has about 10 heavily used Xpage applications in our IT department. I want to standardize them and make one "application" that contains all 10 apps. I am looking for advice on the best way to do this. My plan is make a shell application with a application layout like the one below. I will put links to the apps I want include where App1, App2, App3, and so on are. Each application would have the same banner (top part in black) but everything else for the app layout would be different

30 sec periodic task to poll external web service and cache data

五迷三道 提交于 2020-01-05 01:49:19
问题 I'm after some advice on polling an external web service every 30 secs from a Domino server side action. A quick bit of background... We track the location of cars thru the TomTom api. We now have a requirement to show this in our web app, overlayed onto a map (google, bing, etc.) and mashed up with other lat long data from our application. Think of it as dispatching calls to taxis and we want to assign those calls to the taxis (...it's not taxis\ calls, but it is similar process). We refresh

Domino 9 / Dojo 1.8 - Date Time Picker without default value

…衆ロ難τιáo~ 提交于 2020-01-04 16:58:26
问题 I want a Date Time Picker control WITHOUT a default value. Doesn't seem to be possible anymore :-( To reproduce, create a blank XPage and place a Date Time Picker control. Open the XPage in the browser and you will see that it defaults to today. I didn't found any way to set the default to an empty value. I tried setting all properties/data/default to 0, null, empty string and so on - no luck. I tried the data-dojo-probs attribute with value:'', this sets the default to 1970-1-1, but not to

How to do a partial refresh of multiple items in Xpages correctly

二次信任 提交于 2020-01-04 05:17:15
问题 I have read many of the blog posts on doing a partial refresh on more than one element, but I cannot seem to get it to work. I made a "toy" example, an Xpage with two fields and one button. Both fields are bound to a sessionScope counter. The button increments the counter and does a partial refresh on the containing panel. I want to do a partial refresh on the first field, which is not in the panel [in my real Xpage the two fields are very far apart on the form. Tried many different things to

how can i add styleclass to form tag in xpages

房东的猫 提交于 2020-01-04 02:50:11
问题 I need to add StyleClass to a form tag generated in xPages . I don't know if can change this control in new theme but I only need for one xPage in my app, this is the code generated: <form id="view:_id1" method="post" action="/blabla.nsf/index.xsp" class="xspForm" enctype="multipart/form-data"> And I need this modify class e.g: <form id="view:_id1" method="post" action="/blabla.nsf/index.xsp" class="newclass otherclass" enctype="multipart/form-data"> 回答1: You can add the following to your

Xpage MIME mail Send- Error - method NotesDocument.send() null

假如想象 提交于 2020-01-03 05:25:26
问题 Mail Send Error : Exception occurred calling method NotesDocument.send() null While making the mime mail in ssjs I am having this issue, but in the Lotus script client, I am getting mime emails correctly. Please help var docEmail:NotesDocument = database.createDocument(); var rtitem:NotesRichTextItem = docEmail.createRichTextItem("Body"); docEmail.replaceItemValue("Form", "Memo"); docEmail.replaceItemValue("SendTo", "mailid.com"); docEmail.replaceItemValue("Subject", "Your Subject"); rtitem

XPages Dojo Grid editable cell does not save value when REST Service save() method is called

半城伤御伤魂 提交于 2020-01-03 05:22:06
问题 I have a REST Service working with a Dojo Grid that has editable columns. I can double-click in the cell and change the value, however, when I attempt to save the changes -- using the REST Service save() method in a button -- the changes do not save. The only way I can get this value to save is to call the revert() method on the REST service first -- clicking the REST Service revert() method in a button -- then make changes to whatever editable cell I need to and click the Save button. Here

How can we use ONLY client side script for “hide/whens”?

╄→尐↘猪︶ㄣ 提交于 2020-01-03 04:49:10
问题 I am working on a large, worldwide application, which includes access from areas of low bandwidth. As such, I want to use a minimum of SSJS or partial refreshes for all the complex hide/when calculations. Here is what I have so far for a simple "hide/when": A Yes/No radio button, with CSJS to show a panel ("Yes") or hide the panel ("No"). The panel has a formTable inside it, and the values are shown or hidden, as per #1. In the XPage's onClientLoad, the following code is run: //