xpages

Set a Java date Object from a Notes DateTime Object

时光总嘲笑我的痴心妄想 提交于 2021-02-04 17:59:39
问题 Manipulating Dates causing me some issues. I've created some Java code that reads a document from a Notes DB then populates some fields in a Java Object with values from the Notes Document. The Notes Document contains a DataTime field "ExpPayDate" and I want to store it in the Java Object, but get a syntax error in the Java Editor. My code looks like this: for (int n = 1 ; n < col.getCount(); n++){ Document pDoc = col.getNthDocument(n); PaymentItem pItem = new PaymentItem(); Date pDate = pDoc

XPages: how to put a Java Date value in an ObjectObject

时间秒杀一切 提交于 2021-01-29 20:41:02
问题 ObjectObject oo= new ObjectObject(); oo.put("name", FBSUtility.wrap("Wiley E.")); oo.put("DoB", new Date()); // <-- no can do How can I put a Java Date in an ObjectObject? There is no .wrap method for a Date value. It must be possible somehow, for I can get one out using Date d= oo.get("DoB").dateValue(); but how to put one in?? Thanks!! UPDATE This is what I used a long time: JSContext jsContext = JavaScriptUtil.getJSContext(); ObjectObject oo = new ObjectObject(); oo.put("due", FBSUtility

XPages: how to put a Java Date value in an ObjectObject

拥有回忆 提交于 2021-01-29 18:08:20
问题 ObjectObject oo= new ObjectObject(); oo.put("name", FBSUtility.wrap("Wiley E.")); oo.put("DoB", new Date()); // <-- no can do How can I put a Java Date in an ObjectObject? There is no .wrap method for a Date value. It must be possible somehow, for I can get one out using Date d= oo.get("DoB").dateValue(); but how to put one in?? Thanks!! UPDATE This is what I used a long time: JSContext jsContext = JavaScriptUtil.getJSContext(); ObjectObject oo = new ObjectObject(); oo.put("due", FBSUtility

Onclick the button to export excel in XPages

家住魔仙堡 提交于 2021-01-29 14:25:07
问题 I found the code on the website: https://www.xpagedomino.com/2015/02/xpage-export-to-excel-using-javascript.html Now I have : a view one button I want to use the button to export the excel. The following is I already tried the code: In the button(Client-side) : var viewPanel1Id = "view:_id1:viewPanel1" var htmltable = document.getElementById(viewPanel1Id); var html = htmltable.outerHTML; window.open('data:application/vnd.ms-excel,' + encodeURIComponent(html)); But the button was no response..

Select All checkbox lotus xpages

心已入冬 提交于 2021-01-05 13:15:46
问题 I'm working on an Xpages application on which I have a view control. I tried to put a checkbox in the column header to select all of the check boxes in the view. The problem is when I go to another page from the view, its lines are not checked and the selection is made only on the visible page. So, I want to be able to select all the rows in all the pages of the view, this without the selection disappears when switching from one page to another of the view. 回答1: There are couple of problems

Select All checkbox lotus xpages

谁说我不能喝 提交于 2021-01-05 13:15:21
问题 I'm working on an Xpages application on which I have a view control. I tried to put a checkbox in the column header to select all of the check boxes in the view. The problem is when I go to another page from the view, its lines are not checked and the selection is made only on the visible page. So, I want to be able to select all the rows in all the pages of the view, this without the selection disappears when switching from one page to another of the view. 回答1: There are couple of problems

Xpages File upload control Partial Refresh - Stopped working in Chrome 84 version

喜欢而已 提交于 2020-07-31 05:49:24
问题 I was doing a file upload using a fileupload control and partial refresh the panel in onchange event of the fileupload control to load the file into download control. It was working fine in chrome earlier version but chrome 84 version onwards partial refresh is not working, shows blank page. Did any one has this problem, please advise. here is the source : <xp:panel id="pnlAttachment6"> <xp:label value="Attachment" id="label60" styleClass=" control-label small" for="xpDocDate_1"> </xp:label>

How to set a custom icon in dataview with bootstrap theme

我的梦境 提交于 2020-02-08 07:16:57
问题 I want to set a custom icon with glyphicons or custom uploaded icon on xpages dataview, but the icon always defaults to file icon. Im using bootstrap theme and latest xpages extension lib (r10). I want to change the icon in the dataview document row, not the categorization icon. The code with bootstrap theme always defaults to this code. <div class="glyphicon glyphicon-file xspReadIcon"></div> I tried with: <xe:iconEntry selectedValue="read" url="/legalforms.gif" styleClass="hidden-xs"></xe

XPages: Embed PDF and possibly Office files

冷暖自知 提交于 2020-02-07 07:59:13
问题 I need to embed PDF files in an xpage application. We are using IE11 x64 and this cannot be changed. Eventually, I'll also need to embed MS Office files (Word, Excel, Power Point). I have looked at a lot of pages and couldn't get a working solution for this... I have some code that works if I force IE11 in IE10 mode, but then Dojo starts acting weird (cannot close dialog boxes, ...). The code I have right now in my computed field looks like this: var id:string = pageDocument.getDocument()

XPages: Embed PDF and possibly Office files

邮差的信 提交于 2020-02-07 07:58:30
问题 I need to embed PDF files in an xpage application. We are using IE11 x64 and this cannot be changed. Eventually, I'll also need to embed MS Office files (Word, Excel, Power Point). I have looked at a lot of pages and couldn't get a working solution for this... I have some code that works if I force IE11 in IE10 mode, but then Dojo starts acting weird (cannot close dialog boxes, ...). The code I have right now in my computed field looks like this: var id:string = pageDocument.getDocument()