xpages

Displaying Extension Library Dialog box when page loads?

浪尽此生 提交于 2020-01-22 02:36:06
问题 Is there any way to display an extension pages dialog box when my page loads? 回答1: Add a <xp:scriptBlock /> with the following client-side code as its value : XSP.addOnLoad(function(){XSP.openDialog("#{id:dlgMessage}");}); ...just be sure to place the component outside any refresh targets, or it will launch the dialog again after every partial refresh event with a target that includes it. 回答2: Try adding a dojo.addOnLoad() (in a xp:scriptblock) that displays the dialog using CSJS: XSP

Xpages best way to loop through view and make changes

拈花ヽ惹草 提交于 2020-01-17 12:27:05
问题 This problem is driving me crazy. I have a view of documents with categories. The docs are in an arbitrary order now but I want to provide the users an easy way to move docs within categories up or down. So I have up/down arrows within the view. I have SSJS code behind the arrows that changes the "order" value in the docs so they will move up or down (in my pick the task field is showing the order). My problem is that it works intermittently. I think the reason is because the order of the

headless designer and ODP .project file

夙愿已清 提交于 2020-01-17 06:42:13
问题 we are testing a setup to automate building of NSF's using headless designer. when a developer pushes a change to a repository on github ultimately this will result in an update of an NSF that resides on a Domino server. local odp -> github -> local nsf with headless designer -> replace design nsf on domino server however we noticed that the process stops sometimes. as far as we can see headless designer cannot "copy" (or translate) the design elements from the ODP into a new local NSF. so

XPages: can someone shed some light on these messages?

依然范特西╮ 提交于 2020-01-17 05:39:05
问题 15/07/15 11:04: Exception Thrown Context Path: /aalto803.nsf Page Name: /Preferences.xsp javax.faces.FacesException at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:102) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:210) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:96) at com.ibm.xsp.controller.FacesControllerImpl.execute(FacesControllerImpl.java:256) at com.ibm.xsp.webapp.FacesServlet.serviceView(FacesServlet

context.redirectToPage only works intermitently in Notes Client

三世轮回 提交于 2020-01-17 05:10:34
问题 I have a button in an Xpage with an OnClick event that does the following: var viewPanel=getComponent("viewPanel1"); var docIDArray=viewPanel.getSelectedIds(); sessionScope.put("searchDocIDArray",docIDArray); var url="exportData.xsp"; context.redirectToPage(url, false); The exportData page is not rendered but just has some code to write out an Excel file. In the client sometimes it does this and sometimes it does nothing and sometimes it writes over the current Xpgage and is just blank. I

Does view.postscript() allow you to call functions loaded as output scripts?

强颜欢笑 提交于 2020-01-17 01:15:18
问题 I am using <xpScriptBlock> to store the contents of two rather long client side functions that loads an ExtJS grid. I can call the function using clientside javascript just fine. I discovered that I need to show a different grid based on a condition in the underlining document. To reference the backend I moved the code to serverside and then tried to call the grid using view.postScript. This does not work and is the basis of my question. Is this approach even possible? I do not wish to put

How to loop and get the values from all the components in a repeat when saving

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-16 19:48:28
问题 I have a XPage with a repeat control getting its values from a viewScope vector. <xp:repeat id="repeat1" rows="100" indexVar="i" value="#{javascript:viewScope.v1}" </xp:repeat> The fields are binded to the vector like this <xp:inputText value="#{viewScope.v3[i]}" id="qty" style="width:80px"</xp:inputText> I have managed to get the update correctly by using the onChange event on the input boxes. something like this. <xp:eventHandler event="onchange" submit="true" refreshMode="partial"

In a SSJS button I have got a NotesViewEntryCollection

两盒软妹~` 提交于 2020-01-16 19:25:01
问题 by veCol = vw.getAllEntriesByKey(key,false) where key is a value from a control on the 'form'. If the count in the veCol is Zero I return a message that the search failed, if the count is 1 (One) I set some values and redirect the page to an input page, however, if the count is greater than one I want to display the veCol to a repeat control. I thought of setting a viewScope variable to the veCol but I have seen the admonished don't store a Notes Object in a Scope variable because they are

In a SSJS button I have got a NotesViewEntryCollection

主宰稳场 提交于 2020-01-16 19:24:22
问题 by veCol = vw.getAllEntriesByKey(key,false) where key is a value from a control on the 'form'. If the count in the veCol is Zero I return a message that the search failed, if the count is 1 (One) I set some values and redirect the page to an input page, however, if the count is greater than one I want to display the veCol to a repeat control. I thought of setting a viewScope variable to the veCol but I have seen the admonished don't store a Notes Object in a Scope variable because they are

Dojo Name Picker - People by last name and groups

核能气质少年 提交于 2020-01-16 19:18:14
问题 I'm using a name picker in my XPages to allow an easy selection of people and groups. Here's my code: <xe:namePicker id="namePicker1" for="Receiver"> <xe:this.dataProvider> <xe:dominoNABNamePicker groups="true" nameList="peopleAndGroups" people="true"></xe:dominoNABNamePicker> </xe:this.dataProvider> <xe:this.rendered><![CDATA[#{javascript:docApplication.getItemValueString("ZwfStepNumber") == 1}]]></xe:this.rendered></xe:namePicker> If I use "peopleAndGroups" as nameList property, all names