xpages-ssjs

Read json object in csjs from ssjs

限于喜欢 提交于 2021-02-11 12:22:19
问题 I wanted to find out if its possible to send an array of json objects to csjs from ssjs in a sessionScope variable. When I try to use sesionScope.get in my script block. It doesn't run? SSJS scriptsChartDojo.jss: function createChartData() { var resultArray = new Array(); resultArray = [ {y: 1978, text: "Blue Widget"}, {y: 1669, text: "Brown Widget"}, {y: 2017, text: "Green Widget"}, {y: 334, text: "Orange Widget"}, {y: 1051, text: "Pink Widget"}, {y: 1545, text: "Purple Widget"}, {y: 339,

Xpages SSJS Create Administration Process

牧云@^-^@ 提交于 2020-02-07 05:44:05
问题 Has anyone been able to get SSJS CreateAdministrationProcess to work? I have searched for functioning code but was not able to find any. I am trying to create an adminP request in SSJS to set a users password. I can't use the ?changepassword in the url method because we do not allow web users access to the NAB. I am using OAUTH and when I try to hash and update the password directly to the NAB it without an adminp request, it creates problems with the current client session, logging them out

Xpages SSJS How to display an array?

蹲街弑〆低调 提交于 2020-02-03 10:27:48
问题 I have been learning Xpages programming. We are currently using domino 8.5.2. I am gaining familiarity with the display/input controls and I have had some success using them to display information from backend domino documents, views, scoped variables that are not an array. What I have not been able to discover is how to display the elements of a scoped variable array that is created dynamically. For instance: I create an array with a number of elements. I can print the elements to the domino

Xpages SSJS How to display an array?

坚强是说给别人听的谎言 提交于 2020-02-03 10:24:40
问题 I have been learning Xpages programming. We are currently using domino 8.5.2. I am gaining familiarity with the display/input controls and I have had some success using them to display information from backend domino documents, views, scoped variables that are not an array. What I have not been able to discover is how to display the elements of a scoped variable array that is created dynamically. For instance: I create an array with a number of elements. I can print the elements to the domino

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

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