tag:blogger.com,1999:blog-3745504982837212509.comments2023-07-06T13:07:54.215+01:00DontPanic - a blog about Lotus Notes / DominoTommy Valandhttp://www.blogger.com/profile/11052104644034054473noreply@blogger.comBlogger1100125tag:blogger.com,1999:blog-3745504982837212509.post-30665619158457880212023-02-01T13:54:04.520+01:002023-02-01T13:54:04.520+01:0010 Years later...but thank you this was a huge hel...10 Years later...but thank you this was a huge help!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-78922177056054101822020-01-28T12:23:52.643+01:002020-01-28T12:23:52.643+01:00Hi Tommy,
I am using your idea of integrating the...Hi Tommy,<br /><br />I am using your idea of integrating the CKEditor with Domino. Instead of saving in the separate documents, in the query save, I am reattaching the file with the same rich text field. Everything works perfectly until this. when I add another CKEditor field on the same page, I get the below error when clicking the "Send it to server". I can see the file attached and the document created in the backend. "SCRIPT5007: Unable to get property 'getDialog' of an undefined or null reference. File: ckeditor.js, Line: 873, Column: 79".<br /><br />I can see the mentioned issue happens in your demo database also. If you fix the issue in your demo databases, that would be great help. If you find some time. Please help. Thanks a lot. Vijay Ohttps://www.blogger.com/profile/02199003198506832164noreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-37339273387154788192020-01-28T12:16:53.340+01:002020-01-28T12:16:53.340+01:00I can see the mentioned issue happens in your demo...I can see the mentioned issue happens in your demo database also. If you find some time. Please help. Thanks a lot.Vijay Ohttps://www.blogger.com/profile/02199003198506832164noreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-33656625775471056152020-01-28T12:15:15.944+01:002020-01-28T12:15:15.944+01:00Hi Tommy,
I am using your idea of integrating the...Hi Tommy,<br /><br />I am using your idea of integrating the CKEditor with Domino. Instead of saving in the separate documents, in the query save, I am reattaching the file with the same rich text field. Everything works perfectly until this. when I add another CKEditor field on the same page, I get the below error when clicking the "Send it to server". I can see the file attached and document created in the backend. "SCRIPT5007: Unable to get property 'getDialog' of an undefined or null reference. File: ckeditor.js, Line: 873, Column: 79".<br /><br />Please help me to solve this error.<br />Vijay Ohttps://www.blogger.com/profile/02199003198506832164noreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-37331954107706859352019-01-22T02:33:50.686+01:002019-01-22T02:33:50.686+01:00Life saver! Thanks Tommy!Life saver! Thanks Tommy!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-35742932504590559912019-01-04T16:37:31.172+01:002019-01-04T16:37:31.172+01:00Hi Tommy,
Appreciate this is an older thread but....Hi Tommy,<br /><br />Appreciate this is an older thread but....I have a repeat control within which I am doing inline editing of records. I want the user to tab out of one cell into another in order to populate values almost excel style; e.g. I am in column A and I enter a value, I tab out and some SSJS which runs onkeypress to save the currentDocument and update 2 viewScope variables; one to set the next row as the selected document within the panel datasource and another to show which field should be shown as editable. A partial refresh is called for the panel containing the repeat. All of this works fine. I then have an onComplete event which tries to set the focus to the editable field in the next row:<br /><br />dojo.query("input[id$='Field1']")[0].focus();<br /><br />If I have an alert ahead of this it works fine. Without an alert the focus is never set. <br /><br />I implemented the hijack for the partial refresh and put the focus script within the complete event:<br /><br />dojo.subscribe( 'partialrefresh-complete', null, function( method, form, refreshId ){<br /> //alert('Partial refresh for ' + refreshId + ' complete.' );<br /> dojo.query("input[id$='Field1']")[0].focus();<br />} );<br /><br />...but same problem unless I enable the alert.<br /><br />I saw in your example you were setting focus following partial refresh without any issue so guess it can be achieved. Any thoughts on where to look next?Waynehttps://www.blogger.com/profile/16773436487120151938noreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-69751497198737191602017-11-07T06:45:48.981+01:002017-11-07T06:45:48.981+01:00Hi Henning, maybe it' strange, but yes, your s...Hi Henning, maybe it' strange, but yes, your solution works. After hours of searching I found you comment at the end of page and it helped me.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-82999832539415786362017-02-28T12:53:31.826+01:002017-02-28T12:53:31.826+01:00ohh that xss code is not reflecting here in my com...ohh that xss code is not reflecting here in my comments.<br /><br />so its "> and then alert prompt..Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-16161312600322148722017-02-28T12:52:04.056+01:002017-02-28T12:52:04.056+01:00sorry missed full url.
after query string "&...sorry missed full url.<br /><br />after query string "> is appended.<br />which is causing alert to prompt.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-43880990537582977202017-02-28T11:36:17.391+01:002017-02-28T11:36:17.391+01:00there is this url which is causing issue
https://...there is this url which is causing issue<br /><br />https://abc.com/xyz.nsf/form.html?open&page=authentication&msg=invalidcredentials"><br /><br /><br />we are getting relevant data by @urlquerystring("msg")<br /><br />But now querystring has alert it gives popup on window. I want to get rid of it.<br /><br />I tried @replace(@right(@urlquerystring("msg"),">");"") but it does not gives relevant data<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-20328564726310752932016-10-19T10:36:20.655+01:002016-10-19T10:36:20.655+01:00it works perfect!!!
thanksit works perfect!!!<br /><br />thanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-55564361669756907512016-07-05T15:00:24.150+01:002016-07-05T15:00:24.150+01:00@Alcino - Thanks!! that was really simple.@Alcino - Thanks!! that was really simple.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-67552257927312576482016-06-23T15:15:37.666+01:002016-06-23T15:15:37.666+01:00The subtraction of 1 from the array index will tak...The subtraction of 1 from the array index will take up some of your benchmark time. Why not just run it as a zero-based loop and index and avoid the decrement?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-82168053009667486962016-02-23T20:05:33.449+01:002016-02-23T20:05:33.449+01:00It took me quite a while to figure out that this o...It took me quite a while to figure out that this only works when you set the property "disableClientSideValidation" to "true" on each field. Once I got past that and figured out to put the submittedBy function in a server-side JavaScript library it worked great.<br /><br />Thanks,<br /><br />cntrydadhttps://www.blogger.com/profile/05153318761110261365noreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-37164769663341933192016-01-19T19:58:02.494+01:002016-01-19T19:58:02.494+01:00When you google status 12002 it seems to be the er...When you google status 12002 it seems to be the error code related to timeout for Internet Explorer.<br /><br />I would suggest either trying to optimize the code, or rewrite the code so that the report is generated as a backend job.<br /><br />E.g. when the user clicks the button to create the report, a document is created. Redirect the user to the document, so that he can check the status of the report generation. Maybe have a checkbox that lets the user select getting an email when the report is finished.<br /><br />Have an agent run on created or modified documents with that form. You could update the "report order" document with information about progress. When the report is completed, update the information in the document/attach the report and/or send mail to the user that the report is finished.Tommy Valandhttps://www.blogger.com/profile/11052104644034054473noreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-54454770351198232342016-01-19T18:12:05.982+01:002016-01-19T18:12:05.982+01:00
Hi,
We get the below error from an xpage after o...<br />Hi,<br /><br />We get the below error from an xpage after one hour of execution (say button click and its running an excel report which takes more than 65 minutes to run) <br /><br />An error occurred while updating some of the page.<br /> Unable to load /xxx/xxx/xxx/xxxx.nsf/xxxx.xsp?$$ajaxid=view%3A_id1%3A_id2%3A_id4%3xxxPanel status:12002<br /><br />Kindly help!<br />Anonymoushttps://www.blogger.com/profile/10613712489781542129noreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-56753890752347652862015-12-01T21:27:00.863+01:002015-12-01T21:27:00.863+01:00Hello Tommy...
Just fantastic, work really well a...Hello Tommy...<br /><br />Just fantastic, work really well and so simple to use with the disableValidators property !<br /><br />Thank you very much, Always useful after 5 years (not so far of 6 years !).<br /><br />Great trick !Anonymoushttps://www.blogger.com/profile/17769731993663401191noreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-5888568408979287992015-10-21T20:35:20.693+01:002015-10-21T20:35:20.693+01:00I had a regular expression with several capturing...I had a regular expression with several capturing groups. When adding a breakpoint inside the function I saw that the attributes to the functions had values.<br /><br />But first I did try your "replaceAllFn" in <br />http://dontpanic82.blogspot.fi/2009/04/xpages-workarounds-for-lack-of-regular.html<br /><br />but I did not manage it to work with multiple capturing groups and if the string contains multiple instance that should be replaced.<br /><br />Gunnar<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-39704055612711077092015-10-21T16:50:14.781+01:002015-10-21T16:50:14.781+01:00Nice :)
How in the world did you figure this out?...Nice :)<br /><br />How in the world did you figure this out?Tommy Valandhttps://www.blogger.com/profile/11052104644034054473noreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-69372162110539238622015-10-21T16:22:40.414+01:002015-10-21T16:22:40.414+01:00JSS is supporting functions but there is a bug. (P...JSS is supporting functions but there is a bug. (Probably in the JS to Java converting)<br />The problem could be solved by adding a extra set of parenthesis at the end of the Regular Expression code.<br />If you only got one parenthesis it leave the position for the first hit.<br /><br />from your ex.<br /><br />var object = { firstName: 'Tommy', lastName: 'Valand' };<br />var template = '{lastName}, {firstName}';<br />template.replace( /\{(\w+)\}()/g, function( item, key ){<br /> return object[key] || '';<br />});<br /><br />this return the correct answer.<br />GunnarAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-24062045777286809852015-10-07T14:07:53.234+01:002015-10-07T14:07:53.234+01:00Blimey!Blimey!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-66341448552236867612015-10-02T16:18:23.086+01:002015-10-02T16:18:23.086+01:00You saved my day!You saved my day!Ollenoreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-195519156576498192015-09-03T15:30:06.719+01:002015-09-03T15:30:06.719+01:00getComponent("button1").getClientId(face...getComponent("button1").getClientId(facesContext)quintiexxxhttps://www.blogger.com/profile/08295615539453537364noreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-56898653744197699712015-07-02T16:41:33.480+01:002015-07-02T16:41:33.480+01:00It hasn't changed. I still use the code in the...It hasn't changed. I still use the code in the post on projects.<br /><br />The control should be general.<br /><br />I you're doing a partial refresh, the enhanced messages control needs to be in the area that's being refreshed.<br /><br />Throw an xp:messages (Error Messages?) control next to the enhanced messages control. If neither one shows any errors, I would think there's some code that crashes/the validation doesn't trigger.Tommy Valandhttps://www.blogger.com/profile/11052104644034054473noreply@blogger.comtag:blogger.com,1999:blog-3745504982837212509.post-44032370850818493932015-07-02T00:50:21.659+01:002015-07-02T00:50:21.659+01:00Sorry,
forgot to mention that my page has multipl...Sorry,<br /><br />forgot to mention that my page has multiple data sources.<br />These are in the form of a repeat containing a panel bound to a datasource.<br /><br />Is the control designed to work in a situation like this?<br /><br />PaulPaulnoreply@blogger.com