xpages

'Computed field' controll and disableOutputTag=“true” doesnt work? [duplicate]

孤街浪徒 提交于 2019-12-11 08:26:38
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: XPages disableOutput tag issue I have a computed field control on my xpage that generates HTML (escape=false). As default the computed field generates span tag arround the content which causes some visual inconsistencies in IE. So I set the disableOutputTag="true" for this computed field but in this case, computed field doesnt generate anything. I have the repeat controll disableOutputTag="true" and it work fine

Xpages radio btn group checked

人走茶凉 提交于 2019-12-11 08:09:36
问题 I can't find a way to set the checked value to a radio button to true... Is there a way, that one radio button to be always checked when the XPage is loaded? Thanks, Florin 回答1: For a Radio Button control, there is a selectedValue and defaultSelected properties. As long as selectedValue is set - it doesn't matter what it's set to - then if defaultSelected="true" it will be always selected when the XPage is loaded. For a Radio Button group, you just need to set the defaultValue property to one

Controlling order of XPages CSS using mobile theme

我与影子孤独终老i 提交于 2019-12-11 07:49:29
问题 When using the XPages Mobile theme the CSS files I add to the page as resources are added before the CSS files provided by IBM as part of the mobile theme. Example: <xp:this.resources> <xp:styleSheet href="css/font-awesome/css/font-awesome.css"></xp:styleSheet> <xp:styleSheet href="/mobile.css"></xp:styleSheet> </xp:this.resources> Generate the following HTML <link rel="stylesheet" type="text/css" href="/redpill/graph.nsf/css/font-awesome/css/font-awesome.css"> <link rel="stylesheet" type=

Getting the dijit for a typeAhead in XPages

故事扮演 提交于 2019-12-11 07:37:15
问题 I want to be able to add an onBlur/onkeypress/onChange events to all TypeAhead fields on the form rather than have a developer select every one in the Designer client. The only thing I cannot get a handle on is the onChange event. When the user selects something in the TypeAhead the onChange event is triggered when adding the code directly to the event in the Domino Designer - so I should be able to replicate that capability with code. If my typeAhead field is called inputText2 I thought I

Xpages Download control for Client side

丶灬走出姿态 提交于 2019-12-11 07:35:57
问题 Xpages for Client Side: Download Control does not have the option of opening a saved attachment , it always gives the option of saving the attachment and then reopening.Any workaround for this? 回答1: The scheme by Mark doesn't work in XPiNC ( which I think is what Client Side meant in the question ), however, Mark has since come up with another scheme which he mentioned to me and it works. If you use a url link to open a classic notes document ( i.e. not xpages ) with the launch property open

XPages get Value selected from combo box

别等时光非礼了梦想. 提交于 2019-12-11 07:18:57
问题 I want to display the selected value from the comboBox into a label. <xp:label id="label4"> <xp:this.value><![CDATA[#{javascript:var componenta = Contr.getItemValueString("txt_tipcontractcv"); if (componenta == "") { return "void";} if (componenta !="") { return "My value is "+componenta}}]]></xp:this.value> </xp:label> The label is on a panel, and I did a partial refresh to the respective panel. My comboBox is binded to a data element. label4 is always void . Why? Thank you, Florin 回答1: I

XPages: Loading Screen while changing Tabs (TabPanel)

这一生的挚爱 提交于 2019-12-11 06:56:02
问题 I have a TabPanel on my XPage. When i move from one Tab to another, few data is loading and this takes some time. Is it possible to show a loading screen, while changing Tabs? Thanks for your help Regards 回答1: You should take a look at xe:djTabContainer and xe:djTabPane . That's the XPages extension library versions of the Dojo tab container. It provides support for loading content in all tabs at once or using partial refresh with the option to add a loading message. Update Paul Withers

XSP._isDirty() and/or enableModifiedFlag Does Not Work

淺唱寂寞╮ 提交于 2019-12-11 06:40:58
问题 Other posts refer to using XSP._isDirty() to trigger CSJS when form data has been changed and the user moves off of an XPage. Doesn't seem to be working with Domino 9.0.1 FP1. Earlier posts warned that it was a private function and may get removed. Mastering XPages talks about using enableModifiedFlag for similar purpose (but this appears to be only for XPINC). Any recommendations on how to warn a web browser user when they attempt to navigate away from an XPage that they will lose un-saved

How to call a java shared script library from a Java agent in Xpages?

社会主义新天地 提交于 2019-12-11 06:27:40
问题 I have an agent that is set to run every day at 8:00 I want to write a java code (in a shared library) and call that library from the agent with parameters. For Example: Agent code: // .... checkAndSendMail(email_1); checkAndSendMail(email_2); // .... java library code: public class Check{ public void checkAndSendMail(String email_param){ // ... mail.send(email_param); // ... } } Can I call a java shared script library from a Java agent in Xpages? if yes, then how to call? 回答1: You can do

How to get the element id in repeat control

拈花ヽ惹草 提交于 2019-12-11 06:24:28
问题 Here is my question, I want to set the css of an element dynamically when the webpage load, so I used $(document).ready(function(){ x$("#{id:normalline}").css('margin-Left', '-68px'); }); yes, I used function x$(idTag, param)...I tried to use $("[id$='#{id:normalline}']").css either, they both works fine when the element wasn't in the repeat control..but...once the element was included in the repeat, it doesn't work anymore. the code is here: updated I think you guys notice there has a button