xpages

SBT javascript library

不羁岁月 提交于 2019-12-11 19:32:50
问题 the tutorial from IBM connections playground is not working for me https://greenhouse.lotus.com/sbt/SBTPlayground.nsf/JavaScriptSnippets.xsp#snippet=Social_ActivityStreams_Controls_Simple_Stream_All_Extensions this works require(["sbt/dom", "sbt/config", "sbt/connections/controls/astream/ActivityStreamWrapper"], function(dom, config, ActivityStreamWrapper) { var activityStreamWrapper = new ActivityStreamWrapper({ feedUrl: "/basic/rest/activitystreams/@public/@all/@all?rollup=true" }); dom

Error accessing Xpage using $$OpenDominoDocument.xsp method on database replica

戏子无情 提交于 2019-12-11 19:05:46
问题 I have a Form called 'Contact Level\Customer Contact | Customer Contact', which is a response document, and in the properties I have associated the customerContact XPage to the form. In all view panel controls I have use the 'XPage associated with the document's form' property. On server A the XPage is opened correctly using the $$OpenDominoDocument.xsp method from any view control. On server B, which has a replica of the server A database, the XPage does not open from any of the views using

XPages - Radio Button Group in a table

情到浓时终转凉″ 提交于 2019-12-11 18:59:46
问题 I would like to place the radio buttons from a radio button group in different cells within a table. Is this possible? 回答1: You can set the groupName attribute of the radio button (not radio button group) control to group multiple radio buttons under the same name. Something like this: <xp:radio text="Label" id="radio1" groupName="MyRadioGroup"></xp:radio> You can then place these radio buttons at there respective cells in table. On the downside you wont be able to compute the list of items

Replace attachment when uploading a new attachment

倖福魔咒の 提交于 2019-12-11 18:58:16
问题 I have a simple form and body field. when user upload an attachment I want to remove any attachment already in the body field of the document. how can I do this in my save button. I have tried to set the properites on the fileUpload control to always change the filename to tha same name but this does not replace the file, instead it adds a new file and add a new sequential number to it <xp:fileUpload id="fileUpload1" value="#{userdoc.Body}" filename="profile" seUploadname="false"></xp

Serverside Xpages application update causes my browser page partial refresh actions stop working - how to detect it?

守給你的承諾、 提交于 2019-12-11 18:57:28
问题 Any Xpages application update in design causes the application refresh which removes scope variables, session etc. When this occures and there is a page opened in users browser with some partial refresh action buttons ... such buttons simply do nothing when clicked which is quite confusing. No message that's warning the user that the page is stale or something. Is there a way how to detect such situation in general so I can inform user in browser with some dialog that he should reload the

Xpages JDBC DB2

ⅰ亾dé卋堺 提交于 2019-12-11 18:44:51
问题 I´m testing the access to RDBMS through extension library, but there was no sucess. I installed the plugin and the Xpages extension library extended, but when I tested a xpage with combobox that the values are the relational table by the @JdbcDbColumn, the error below display. I´m testing in local in designer not a server. Error while executing JavaScript computed expression Script interpreter error, line=2, col=8: Error while executing function '@JdbcDbColumn' comp/env/jdbc/db2 Updated info:

xPages @DbLookup issue

别说谁变了你拦得住时间么 提交于 2019-12-11 18:44:49
问题 I have this code in several repeat controls and computed values @Unique(@DbLookup(database,view,key,columnnumber)) I can see that if "columnnumber" is a categorized column then DbLookup only return first Category. Today my solution is create another view with this column Uncategorized, but this is bad solution for my customer, and more work for me. Somebody knows if this is a bug? or is there another solution? I have Lotus Domino 8.5.3 UP1 and same designer Thanks a lot, 回答1: You can get the

Xpages dropdown menu resubmission on SSJS submission using submit value property

霸气de小男生 提交于 2019-12-11 18:36:57
问题 Just for reference before mentioning the problem I would like to say that I have asked to same question on IBM Lotus forum(http://www-10.lotus.com/ldd/ndseforum.nsf/xpTopicThread.xsp?documentId=2AD7C8F89D8930E685257BD50022A9E9) and I have not received any reply for the same in last 2 weeks. So, I have a typical xpage dropdown menu with say around 40-50 leaf nodes, Every leaf node submits a specific value (using submitValue property) which is then evaluated and action is performed. However,

Retrieving autoincrement value when using @JdbcInsert

只谈情不闲聊 提交于 2019-12-11 18:26:53
问题 I'm trying to store a row in a DB2 database table where the primary key is an autoincrement. This works fine but I'm having trouble wrapping my head around how to retrieve the primary key value for further processing after successfully inserting the row. How do you achieve this? @JdbcInsert only returns the amount of rows that were inserted ... 回答1: Since there does not seem to be a way to do this with SSJS (at least to me), I moved this particular piece of logic from my SSJS controller to a

Call Eventhandler from ClientSide JS

十年热恋 提交于 2019-12-11 18:01:39
问题 I was looking at this post by Jeremy Hodge http://xpagesblog.com/XPagesHome.nsf/Entry.xsp?documentId=88065536729EA065852578CB0066ADEC With Event handlers and calling them from ClientSide JS. But I can get them to work if I put some SSJS in side the event I would like to fire. Does this still work or am I doing something wrong? <xp:button value="click me" id="button1"> <xp:eventHandler event="onclick" submit="true" refreshMode="complete"> <xp:this.script><![CDATA[executeOnServer('dostuff');]]>