xpages

XPages Dojo Data Grid and Custom REST Service

心已入冬 提交于 2019-12-13 05:38:37
问题 Can a custom REST service be used as a data source for a dojo data grid? I am needing to combine data from three different databases into one data grid. The column data will need to be sort-able. The response from the REST service looks to be correct. I have having trouble with binding the JSON data to the dojo grid columns. 回答1: Very interesting -- I tested and saw the same thing with a custom REST service -- it doesn't work when referenced as the storeComponentId of the grid. I got it to

Getting the Server Name from the session

丶灬走出姿态 提交于 2019-12-13 05:01:57
问题 In a managed bean that resides in a Database on the server Development I have this code: s = ExtLibUtil.getCurrentSession(); theMap.put("Server Name", s.getServerName()); when I look at theMap after this has run I see Server Name and the value is blank. After this I get a datbase RepID and then try to open the database by RepID with appDB = s.getDbDirectory(null).openDatabaseByReplicaID(repID); if (appDB.isOpen()){ theMap.put(thisKey, repID); }else{ theMap.put("DB " + thisKey, "Is Not Open");

Browser Page looks messy

孤街浪徒 提交于 2019-12-13 04:46:38
问题 To develop websites I use domino designer v9.01 with OpenNTF Bootstrap extension library v14. I am new to IBM domino so have mercy … The trouble I have is : While previewing XPage apps in Notes all controls, views etc. are there and looks as expected. But when I preview same XPage apps in a web browser (newest FireFox, newest Microsoft Edge) I get messy results. To be more specific, the amount of controls, views, etc. are there and they also work. But their expected design is messy. I cannot

Cannot create XML Document from String

自作多情 提交于 2019-12-13 04:45:54
问题 I am trying to create an org.w3c.dom.Document form an XML string. I am using this How to convert string to xml file in java as a basis. I am not getting an exception, the problem is that my document is always null. The XML is system generated and well formed. I wish to convert it to a Document object so that I can add new Nodes etc. public static org.w3c.dom.Document stringToXML(String xmlSource) throws Exception { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();

Open NotesURL via redirect

╄→尐↘猪︶ㄣ 提交于 2019-12-13 04:29:59
问题 I have a repeat-control which generates me a list of links to documents in a different database. Special on this task is that the XPage runs in the notes internal browther (NOT XPniC) and open the documents as real notes documents in the notes client (NOT Xpages). so far every thing works fine. Now I want too check if the document exists before I open the document. My solution is an xAgent which check if the document exists and redirect to the NotesURL but I get the following error: Error

Getting total View entries including categories - performance issue

佐手、 提交于 2019-12-13 04:28:49
问题 I'm using a custom footer on my View Control; there I have for example: Displaying 1 - 25 of 34200 My underlying View is Categorized so the total of entries should include categories as well. So far the only way I'm able to find the total of entries including categories is using NotesViewNavigator; however, performance is not acceptable since it's taking around 27 seconds to compute this piece of code. I'm sure the issue is with line var nav:NotesViewNavigator = view1.createViewNav(); because

Imported plugin into XPages Project not working

对着背影说爱祢 提交于 2019-12-13 04:28:36
问题 In some XPages applications I'm trying to take advantage of org.apache.commons.lang package that is installed as part of Domino. I'm adding it into the plugin.xml in the requires section: This allows me to use the package, and compiles the code and successfully runs it. I can refresh the design down onto test databases and, although I need to add the import statement in again because the design refresh process does not update the plugin.xml, this works on my development server (8.5.2 FP3 and

Creating a HashMap of type <String , Object>

为君一笑 提交于 2019-12-13 04:14:38
问题 In a previous post Creating a ToolTip Managed bean I was able to create a manged bean to collect and display tooltip text with only a single lookup and store them in an Application Scope variable. This has worked great. I am on the rather steep part of the JAVA learning curve so please forgive me. I have another managed bean requirement to create a HashMap Application Scope but this time it needs to be of a type String, Object. The application is where I have a single 'master' database that

XPages - docx4j - replacing a bookmark with text

我的未来我决定 提交于 2019-12-13 04:01:32
问题 I'm using docx4j in an XPages application to create Word documents containing content from an XPage. The Word document (in .docx format) is created based on a template (in .dotx format). One bookmark from my .dotx template is as follows: <w:p> <w:bookmarkStart w:name="Fachkompetenz" w:id="0"/> <w:bookmarkEnd w:id="0"/> </w:p> Using the function private static List<Object> getAllElementFromObject(Object obj, Class<?> toSearch) { List<Object> result = new ArrayList<Object>(); if (obj instanceof

Binding a CheckBox control to a Bean in XPages

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 03:24:52
问题 In an XPage I have a CheckBox control bound to a property of a bean (called product). If I make that property a boolean like so.. private boolean selected = true; public boolean isSelected() { return selected; }; public void setSelected(boolean selected) { this.selected = selected; }; and bind the checkbox using EL as #{product.selected) then the page initially opens fine but hangs on a partial refresh, however I can't see any errors in the logs. If I add another wrapper getter/setter in the