To those who are familiar with Midas Richtext product for Notes:
We are using Midas Version 3.40 A on Notes6 (for doing search/replacement in richtext), and SearchWordBoundaries property does not work for us (see the source code given below).
It seems like this property is not supported. Is there any other property/method we could have used instead?
I have done a thorough search of help documentation but have not been able to find anything.
Sub Initialize
Set s = New NotesSession
Set db = s.CurrentDatabase
Set coll = db.UnprocessedDocuments
If coll Is Nothing Or coll.count = 0 Then
Msgbox("no doc found")
Exit Sub
End If
Set doc = coll.GetFirstDocument
Set rtitem = New GeniiRTItem
Call rtitem.Connect(db.Server, db.FilePath, doc.NoteID, "Body")
Set chunk = rtitem.DefineChunk(" Everything")
chunk.TextWildcards = True
' both True and False give the same match here
chunk.SearchWordBoundaries = True
' replaces both impex and simpex
Call chunk. ReplaceText("Impex", "whatever")
Call rtitem.Save
End Sub
I will really appreciate your help.
Tanveer Awan
Subject: Perhaps you get better response in Midas’ own forums at www.geniisoft.com ?
Subject: *Thanks. It is being addressed off-line
Subject: RE: *Thanks. It is being addressed off-line
Anyone who can suggest an alternative solution for doing search/replace in a richtext field.
We have sent several mail to GeniiSoftware. They
were able to find the bug and promised us to
fix it in the next release. The next release was
due 15th June. But we have not heard anything
from them. Actually they promised to send us an
interim version before their planned release, but our waiting session is still not over.
Our customer is getting frustrated now since we
promised them the dates, GeniiSoftware promised
us. But there is still no sign of any proper
support from GeniiSoftware.
We would highly appreciate if someone can
suggest an alternative tool or some workaround
that we can do in Midas (without counting
on support from GeniiSoftware).
Thanks.
Subject: We have not been getting e-mails from you
Could you please contact us by phone? We sent an interim version for you to try to ensure that it solves your problems, and have not heard back since. Could you use our Support Forum or contact us by phone (see our website for details). I am sending another e-mail and will call shortly if I don’t hear from you.
Subject: *Taken care of by phone (oh, the curses of SPAM filters)
Subject: RE: *Taken care of by phone (oh, the curses of SPAM filters)
Midas Support called me last friday and the problem is fixed now. Seems like they did not get my emails. Anyway all is well that ends well.
Subject: Still facing problems with Midas
Ben,
I posted the same message on your Genii support forum two days ago but have not heard anything from you yet.
Topic Midas search/replace problem
Product: Midas Rich Text LSX
Name Tanveer Awan
Did you find any workaround for the problem I reported nearly 10 days ago?
It seems like there is another bug in the interim version.
“chunk.UserReplaceText” does not handle colored text properly. It replaces the text successfully but it seems like it removes some kind of Notes internal property.
Which means, if we try to preview the text in a browser, the text is not shown (even though it exists in the document). For example if we perform the
following function:
originalText = This is a red sentence
replacedText = This is a red replacedSentence
If we use UserReplaceText on “originalText”, the “sentence” is replaced properly by “replacedSentence”. But preview would only show “This is a red”, and not the second part
of the text i.e. “replacedSentence”.
If we open the document manually, and resave it, the text is shown properly again (brower-preview).
It works perfectly for non-colored (black) text. Are you familiar with this behavior or are we missing something?
Subject: RE: Still facing problems with Midas
We have identified the problem. It is a problem with the interim release. Interim releases sometimes have problems, which is why they are not production releases. We are working on a fix, and it should be available soon.
Subject: RE: Still facing problems with Midas
I understand your point about the interim version but I just wish the response time was bit lower than 4-5 days per post/email. The problem does not have to be solved in xx hours, but atleast the support people should be more effecient in informing the customers about the problem/solution status. Thanks any way. Looking forward to your error-free production release.
Subject: *It is coming out soon.
Subject: RE: *It is coming out soon.
Have you been able to solve our problem? How long would it take?
Subject: *Solved in new version (3.50)