xpages

Dojo Name Picker - People by last name and groups

二次信任 提交于 2020-01-16 19:17:52
问题 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

Convert MIME to RichText

心不动则不痛 提交于 2020-01-16 12:22:49
问题 I would like to convert a domino document field of Data Type: MIME Part into a Data Type: Rich Text in backend with SSJS or Java ? I have tried to work with doc.computeWithForm(true, true); doc.save(true, true); but this piece of code has no effect. Hint: I can do this conversion with a notes client in frontend (open and save the document) without any problems. Any idea? Thanks in advance! 回答1: You may be able to do this as part of the usually-undesirable side effect of automatic MIME-to-CD

Convert MIME to RichText

帅比萌擦擦* 提交于 2020-01-16 12:22:28
问题 I would like to convert a domino document field of Data Type: MIME Part into a Data Type: Rich Text in backend with SSJS or Java ? I have tried to work with doc.computeWithForm(true, true); doc.save(true, true); but this piece of code has no effect. Hint: I can do this conversion with a notes client in frontend (open and save the document) without any problems. Any idea? Thanks in advance! 回答1: You may be able to do this as part of the usually-undesirable side effect of automatic MIME-to-CD

Convert MIME to RichText

二次信任 提交于 2020-01-16 12:22:06
问题 I would like to convert a domino document field of Data Type: MIME Part into a Data Type: Rich Text in backend with SSJS or Java ? I have tried to work with doc.computeWithForm(true, true); doc.save(true, true); but this piece of code has no effect. Hint: I can do this conversion with a notes client in frontend (open and save the document) without any problems. Any idea? Thanks in advance! 回答1: You may be able to do this as part of the usually-undesirable side effect of automatic MIME-to-CD

Getting properties/parameters from page level

心已入冬 提交于 2020-01-16 01:52:32
问题 I wonder if I can get the parameters and/or properties of an xpage or custom control programmatically. <xp:view xmlns:xp="http://www.ibm.com/xsp/core" id="layout"> <xp:this.properties> <xp:parameter name="testcc.xsp" value="Test 1"></xp:parameter> <xp:parameter name="index.xsp" value="Main"></xp:parameter> </xp:this.properties> ... How can I access this parameter list to use it e.g. in a repeat control? EDIT You both are right, thank you! But this works only on a page, not in a custom control

How to call SSJS function from computed HTML link?

笑着哭i 提交于 2020-01-16 01:12:12
问题 I have a computed field on an xpage the result of which is HTML. In that HTML I want to compute a link that will trigger some server side js function followed by a partial refresh. My current code looks like this: <a href="#" onclick="return myFunction()">Click Here</a> This will work if my js function is a client-side function but I want to use this function to set the value of a field on the document so I need SSJS. Static links that are created from the controls pallet in an xpage allow

Is there a DTD for XPage source?

北城余情 提交于 2020-01-16 00:59:09
问题 With whatever little knowledge I have of XML I know that we can associate a DTD with XML file which defines all the valid elements, its attributes and where they can appear. Is there any such DTD associated with XPage source code defining all the elements and its attributes? Where does it define tags like xp:view , xp:panel , xp:button and so on along with its associated properties? So I am looking for a file with content something like <!ELEMENT xp:panel ......> 回答1: No There is not a DTD

how to store and save correctly field values from repeat controls

末鹿安然 提交于 2020-01-15 17:54:31
问题 I created a simple repeat control, having inside it 2 simple inputText s. Outside this repeat control, there is an editable inputText3 ( binded to dataSource ). I'm using it to make some calculations inside the repeat control. The calculations are displayed correctly. I have 2 buttons, for newLine and delete/hideLine. For the moment, those 2 fields inside the repeat control are not binded to the datasource. i have a button which save the doc., and list it inside a viewPanel, having the first

how to store and save correctly field values from repeat controls

烂漫一生 提交于 2020-01-15 17:50:27
问题 I created a simple repeat control, having inside it 2 simple inputText s. Outside this repeat control, there is an editable inputText3 ( binded to dataSource ). I'm using it to make some calculations inside the repeat control. The calculations are displayed correctly. I have 2 buttons, for newLine and delete/hideLine. For the moment, those 2 fields inside the repeat control are not binded to the datasource. i have a button which save the doc., and list it inside a viewPanel, having the first

how to store and save correctly field values from repeat controls

耗尽温柔 提交于 2020-01-15 17:50:09
问题 I created a simple repeat control, having inside it 2 simple inputText s. Outside this repeat control, there is an editable inputText3 ( binded to dataSource ). I'm using it to make some calculations inside the repeat control. The calculations are displayed correctly. I have 2 buttons, for newLine and delete/hideLine. For the moment, those 2 fields inside the repeat control are not binded to the datasource. i have a button which save the doc., and list it inside a viewPanel, having the first