Are there commands which will create Action Hotspots?
Thanks!
Are there commands which will create Action Hotspots?
Thanks!
Subject: Programmatically create Action Hotspot…
There is no programming command in LotusScript, macro language or Java to create a hotspot from scratch and set its formulas, etcetera.
However, you can use AppendRTItem to copy a hotspot that you have created elsewhere and add it to a rich text item in a document. E.g. you can store the hotspot in a rich text field in a profile document. The Domino Designer 6 App Dev redbook discusses copying rich text from place to place.
If you need to specify additional information that controls the behavior of the hotspot, you can do this by setting values of hidden fields in the document (they don’t need to be on the form) and have the hotspot formula/script read these fields to figure out what it’s supposed to do. This will work if the document is mailed, but it won’t work if the recipient forwards the mail to someone else.
If this doesn’t do what you wanted, you can also use the Notes C or API to create whatever forms or rich text entities you want. Third party tools such as the Midas rich text LSX (www.geniisoft.com) make this easier.
Subject: RE: Programmatically create Action Hotspot…
Hi Andre,
Can you please clarify a little bit more? Let me summarize what I understand:
In Notes 6, there is not option for Action Hotspot in the form. It has to be programmed (in formula or lotus notes script or in whatever) by us. If this is the case, how am I about doing this?
Thx,
Annie Green.
Subject: RE: Programmatically create Action Hotspot…
Thank you!
Subject: Appending pre-created items is quite powerful (WAS: Programmatically create Action Hotspot…)
I’ve used the technique Andre describes a lot: for example, generating rich text emails with hotspot buttons and so forth that use the standard “Memo” form, rather than having to use stored forms – this can save a lot of disk space in a large organisation really quickly (not to mention UNK table issues in the good old 4.x days ; - )
If you need your “pre-built” hotspots to be more dynamic, remember that Lotusscript code can reference fields in the container NotesDocument / NotesUIDocument. These fields can obviously be set programmatically and thus act as “parameters” for your code. This means the rich-text bound code can be as generic as possible (which fits, seeing as you can’t generate it programmatically).
Does that make sense? It’s a really useful technique I find.
–
Subject: RE: Appending pre-created items is quite powerful (WAS: Programmatically create Action Hotspot…)
I know this post is a few years late and more than a few dollars short, but it helped me accomplish what i needed to do. Thanks for the information.
Subject: RE: Programmatically create Action Hotspot…
If your audience is WEB then you CAN create hyperlinks programmatically …
Subject: *Good point, but hyperlinks are not action hotspots, but rather link hotspots.
Subject: Programmatically create Action Hotspot…
I just struggled with this today, even though this is a few years late, I found that sending a URL with notes:// instead of http:// in my situation works because this opens the client and Notes application. I have it pointing to a frameset that is opening a page. At that point it gets the user to the application starting point.