xpages

Null value for fileData:com.ibm.xsp.http.UploadedFile in dialog box?

↘锁芯ラ 提交于 2019-12-25 09:40:56
问题 I found a bit of code to import CSV files. It uses a file upload control to get a handle to the file. It works great when I just use it on a regular xPage. But I want to use it within an extensions pages dialog box but it does not work. The line causing the issue is this line? var fileData:com.ibm.xsp.http.UploadedFile = facesContext.getExternalContext().getRequest().getParameterMap().get(getClientId('fileUpload1')); It always returns null. I indeed have a control on my dialog box called

Saving current page in scope variable in xPages?

房东的猫 提交于 2019-12-25 08:55:10
问题 After my users complete a form, I want them to return to the page that they were on before completing / editing the form. How can I save the current page in scope variable in xPages? 回答1: Have you tried using the inbuilt previous page function? select the button, go to events tab and create an onclick event, in the drop down choose openPage event. Inside there is an option of "previousPage" as the page to move to. failing that if you have some custom use case, why not have a scope populate in

Xpages an issue with jar file

帅比萌擦擦* 提交于 2019-12-25 08:48:03
问题 I've created a "*.jar" file with Intellij IDEA and added to IBM Notes Domino 9 with Code -- Jars -- Import Jar. I can see my packages in classes which stored in "Code -- Java") but i have an error when i try to use my jar in xpages code: I have a simple code on my test xpage: importPackage(com.ibm.ibateam.sources); var area = new Area("first"); getComponent("label1").setValue(area.getUnid()); but this code throws exception: Script interpreter error, line=2, col=16: [ReferenceError] 'Area' not

onComplete fires too soon

时光怂恿深爱的人放手 提交于 2019-12-25 08:46:48
问题 When should onComplete fire? In 8.5.2 it fires when the event has runned so If you set some values in the event they will reflect in the update that is executed using the XSP.partialGet. But in 8.5.3 in all browsers execpt IE the onComplete event fires and is returned before the event that it should be doing oncomplete for. Anybody seen this and perhaps have a solution for the problem? 回答1: The problem was in the standby Widget. an new version will be published. the n.style problem in dojo.js

Get selected documents from a view and save as separate document

佐手、 提交于 2019-12-25 08:33:31
问题 I am trying to get selected documents from a view and save as separate documents Here is the design of the xpage A combo box on the top, a view with check box (this view is used for selection), a button for save the selection values from the view and the combo box. Also there will another view which will display the saved values. From this post, I can get the unid of selected documents and save to view scope variable. The add button can save the selected value from the combo box and the view

Setting a document field with replaceItemValue from a rich text control?

余生长醉 提交于 2019-12-25 06:46:24
问题 How do you set a richText value with replaceItemValue from a rich tect control? I found this bit of code here: http://www.bleedyellow.com/blogs/martin/entry/save_a_richtext_field_from_a_xpage_to_a_document?lang=en_us var doc = configuratieformulieren.getDocumentByKey("ConfiguratieIVNL", true); if(doc == null){ return; }else{ var titel = getComponent("inputTextIBPTitelIVNL").getValue(); doc.replaceItemValue("IBPTitel",titel); var inhoud = getComponent("inputRichTextIBPInhoudIVNL").getValue();

xpages why my field value isn't copied correctly

╄→尐↘猪︶ㄣ 提交于 2019-12-25 05:45:09
问题 I add some time ago this question xpages passing the UNID to other field ... and for the moment it seems it worked. After I created the <xe:dialog> structure ( which uses a single datasource: Pdoc ), I observed I can't get the correct UNID of the other datasource: Cdoc . This dialog is showed from the xpages having the datasource Cdoc. On the main Xpage ( which has as the datasource: Cdoc ) there is a computed field: ( txt_UNID is on a form having the formula @text(@uniquedocumentid) ) <xp

How do you copy a datetime field from the current document to a new document

倖福魔咒の 提交于 2019-12-25 05:32:32
问题 How do you copy a datetime field from the current document to a new document in Xpages, SSJS. I am coping other fields like this inheritDoc.appendItemValue("AbbreviatedCustomer",currentDocument.getValue("AbbreviatedCustomer")); var item:NotesItem = inheritDoc.replaceItemValue("Author", n1); item.setNames(true); item = inheritDoc.replaceItemValue("AuthorAccess", currentDocument.getValue("AuthorAccess")); item.setAuthors(true); But I do not know how to copy a date field from the currentDocument

XPages filter by column value. How to display 2 value out of 8 available value?

淺唱寂寞╮ 提交于 2019-12-25 05:21:29
问题 The view is a list of staffs and first sorted column is 'Department'. There are 8 department: A,B,C,D,E,F,G,H. Under certain conditions, I need to display only staff from department C & G only(or maybe from 3, 4 or more department under different conditions). Something like in view selection formula(@Formula) where: SELECT (Form="Staff") && (Department="C" || Department="G") In the 'Filter by Category Name', I put static value:Department. In the 'Filter by column value', I test static values:

notesdocumentcollection.ftsearch and a search query with special characters

大兔子大兔子 提交于 2019-12-25 05:17:09
问题 i try to make a search function in ssjs that looks like this. notesdocumentcollection.ftsearch('"*' + searchword + '*"'); i have a document with this field value "Dr. Max Muster". if i search for "dr" i get a result. if i search for "dr. max" i don't get a result. if i remove the wildcard and type "dr. max" i will get an result. i also tryed it like this notesdocumentcollection.ftsearch('*' + searchword + '*'); Is there any way to get an result with wildcards and special characters in the