Lapas

Monday 15 December 2014

Copy/Paste from applications to Notes into text fields (international characters)

The problem (sample with cyrilic symbols):


I had a very interesting problem with copying data, which contained international characters, from Microsoft office applications to Lotus Notes. So if you copy/paste into RichText field, there is workaround, that it could be pasted as plain text, but when you try to paste into Notes style text field, there is no options to do that. Using Lotus Notes e-mail, I've noticed, that copy/pasting into Native OS Style fields works well. So the workaround for that type of problem is to create form with one Native OS style field and add PostOpen event, which pastes data into that field, than copies that data again and closes the form. As a result, clipboard will contain correct data, to paste into Notes style field

You can create simple hotspot near the required field, which opens form with one field and then pastes resulting data in target field.


Tuesday 22 July 2014

Lotus Outline BUG

Found interesting bug in Lotus Notes, when outline is embedded in form and in some cases disappears from UI.
Simple experiment to reproduce the problem.
1) Create form
2) Create outline
3) Add button to form with code like @SetField("SomeField";"12345") or call ws.currentdocument.document.replaceitemvalue ("SomeField","1111")
4) Add outline to form
5) Save form.

Close Lotus Notes and delete cache.ndk from data directory.
Run Lotus Notes. Open created form in Lotus Notes client. Push the button - voila! Outline disappears!
Next time You open same form and push the button - it works fine (outline is in place).

The main problem is that, this only happens with non-cached outlines in cache.ndk. If You have 2 replicas on multiple servers, then opening each replica and pushing then button reproduces the problem again and again (possible recache for each replica?).

Workaround for this issue is, that You could use some form with all outlines included and loaded before main form - "cache" init form - it should load first, then the working form.

P.S. notes 7.0.3 has this bug I haven't found any workaround for it, but in 7.0.4 and 8+ works fine with cache form.