xpages

Hide blank rows in Dojo data grid

梦想的初衷 提交于 2020-01-15 15:28:49
问题 I have a Dojo data grid that displays data from a REST service of type viewItemFileService. I have chosen this type because I need to allow the user to update entries and save them to the backend. The REST service pulls from a view that is categorized, the view is categorized by the unique ID of the related document. The 'keys' property is used to tell the REST service what values to pull. When I was using a viewJsonService this all worked fine. I had to change when I discovered that you

Xpages Dependent Field Lookups

拟墨画扇 提交于 2020-01-15 11:16:08
问题 I cannot get a simple two field dependency in Xpages to work. Field1 is a combo box whose choices come from a DBLookup. Field2 is a combo box whose choices come from a DBLookup that uses the value from Field1 to subset the selections. My code is below: <?xml version="1.0" encoding="UTF-8"?> <xp:view xmlns:xp="http://www.ibm.com/xsp/core" xmlns:xp_1="http://www.ibm.com/xsp/coreex"> <xp:this.data> <xp:dominoDocument var="document1" formName="timeEntry"></xp:dominoDocument> </xp:this.data> <xp

Xpages “filter by category name” with two fields values (Restricting a View to Multiple Categories)

我的梦境 提交于 2020-01-14 14:56:06
问题 I want to design a view that display only projects of selected customer and services, so I created a view that customer and service columns are categorized and a view panel for this view. If I put document1.getDocument().getItemValueString("Customer") it works with a restrict single category. How I can do this with tow categorized columns. Thanks in advance 回答1: Could you implement a repeat within a repeat for this? The first repeat would capture your first category. Then inside you have a

Use icon fonts in xpages

时光总嘲笑我的痴心妄想 提交于 2020-01-14 02:31:23
问题 I want to use icon (awesome) fonts in my xpage. I downloaded it and put them into my webContent folder (as all my additional stuff. e.g. bootstrap). I modified the awesome.css as followed. @font-face { font-family: "FontAwesome"; src: url('/font/fontawesome-webfont.eot'); src: url('/font/fontawesome-webfont.eot?#iefix') format('eot'); src: url('/font/fontawesome-webfont.woff') format('woff'); src: url('/font/fontawesome-webfont.ttf') format('truetype'); src: url('/font/fontawesome-webfont.svg

How Does the Single Store Xpages work?

五迷三道 提交于 2020-01-14 01:45:32
问题 I have a number of XPAges design elements that I use in many different databases. If I read the wiki correctly the single store is an all or nothing situation. So I want to create unique design in a database but use the set of reusable XPages element from a single store location. the wiki says: Apart from the "dummy or blank XPage with the same name of the default XPage" in each instance application, does it matter if an 'instance' contains XPage design elements? No. If SCXD is set on an

How Does the Single Store Xpages work?

依然范特西╮ 提交于 2020-01-14 01:45:14
问题 I have a number of XPAges design elements that I use in many different databases. If I read the wiki correctly the single store is an all or nothing situation. So I want to create unique design in a database but use the set of reusable XPages element from a single store location. the wiki says: Apart from the "dummy or blank XPage with the same name of the default XPage" in each instance application, does it matter if an 'instance' contains XPage design elements? No. If SCXD is set on an

Is it possible to use Java classes from the WEB-INF directory in Java agents

我与影子孤独终老i 提交于 2020-01-13 13:53:34
问题 Currently I am busy with a brand new XPages project. I use Java and Managed Beans to access the data. Till now I don't have to use Lotusscript ;-) One of the last things is to create a scheduled agent to perform some backend stuff. There is already some logic in Java classes, who are in a directory in the WEB-INF directory. I son't want rewrite these Java logic to Lotusscript, but reuse. Is is possible to access these Java classes, from a (scheduled) Java agent?? 回答1: Maybe another option for

Is it possible to use Java classes from the WEB-INF directory in Java agents

允我心安 提交于 2020-01-13 13:53:01
问题 Currently I am busy with a brand new XPages project. I use Java and Managed Beans to access the data. Till now I don't have to use Lotusscript ;-) One of the last things is to create a scheduled agent to perform some backend stuff. There is already some logic in Java classes, who are in a directory in the WEB-INF directory. I son't want rewrite these Java logic to Lotusscript, but reuse. Is is possible to access these Java classes, from a (scheduled) Java agent?? 回答1: Maybe another option for

Scoped Variable in List Box

隐身守侯 提交于 2020-01-13 05:56:29
问题 There is a list box(e.g. list box A) contains values and if I click a button(e.g. button X), it will add the selected value to the other list box(e.g. list box B). After this action the list box B will have the select value to display. In list box B (suppose it has values from list box A), if I click another button(e.g. button Y), the selected value from list box B returns to list box A I follow the answer from this post and try to apply the code to the list box. When I run it, I can add

How can I refresh the XPages File Download Control and have it display updated attachments without full page refresh?

早过忘川 提交于 2020-01-11 12:05:12
问题 When I create file download control on a document I can display the attached files from a Rich Text Field. In a separate process I am attaching more documents to the same document. I want to periodically refresh the download control container to see if there are new attachments. I do not want to do a full refresh of the page. I have discovered that the partialRefresh of the file download control container either programmatically or manually does not result in the contents (downloadable files)