Is it possible to retrieve Lotus notes rich text without using Lotus notes api? - lotus

I need to create a application which receives a lotus note document file . Is it possible to retrieve Lotus notes rich text without using Lotus notes api?

You also can get rich text via http/https, using web API. HTTP task should be turned on to use this method.
Just use a request as follows:
server/databasefilepath/databasename/viewname/selectionkey/richtextitemname?OpenField
This will return you rich text item, transformed into html, that is realy userful.

Yes you can by using Domino XML Language (DXL). This renders an XML style format that you can then work through however it is complex if the user has added lots of bullet points, bolding the odd image etc.
You will have to use CreateDXLExporter() either in your app or rendered via web from a notes agent however once you have built it, each document will be available to you and in fact the entire database.
HTH

If you can't use HTTP task as shiv suggested, you can try this tool by Julian Robichaux http://www.nsftools.com/tips/NotesTips.htm#richtexttohtml.
Notes from the author:
This database has a script library that describes a technique allowing
you to get the contents of a regular Rich Text field as MIME/HTML,
even if that field isn't set to store contents as MIME.

Related

Not able to customize webchat sendbox(Form field)

I want to customize webchat send input field, by adding label tag above the input field and remove the placeholder and add send text instead of icon using react.
Currently, I have tweaked using javascript(Es6)
Unfortunately, at this time, there is no built in feature of Web Chat that allows the developer to alter the send box (beyond hiding / not hiding it). If you feel strongly about this as a feature others could benefit from, I would suggest you present it as a feature request on the BotFramework-WebChat repo. You can do so here.
The method you are using (i.e. altering the DOM directly) is the correct method.
Hope of help!

How to share SQL query results in Slack

I have a similar question to this one (for Pandas), in that I'd like to have the results of an SQL query appear nicely in a Slack message, as a table.
If for example I output the query results as Markdown and then paste this in Jira, a table appears exactly as I'd like it, regardless of whether column names are in snake_case. However, if I choose the Markdown (raw) code snippet in Slack, underscores are interpreted as beginning italics, which is completely wrong.
Does anyone have a better suggestion for displaying tabular results? Or forcing Markdown (raw) to ignore underscores? I tried code blocks as well but to no avail.
For info, the database IDE I'm using is DataGrip.
Slack does not have support for tables, like Jira. So your only option to to choose from workarounds. I see 3 available approaches:
1) Display in external browser
Store your data in an external web app and just post a link to Slack. That works very e.g. with Google Sheets if you use the Google Apps integrator in your Slack workspace.
2) Display as image
Another option is to generate an image (e.g. GIF) from your table and then post the image to Slack. That way the data can be displayed within Slack. To safe Slack storage space I would suggest storing the image file in an external image service (e.g. imgur) and then only post the link. Imgur has an API which would allow this process to be fully automated.
3) Display as plain text
Building upon one of the answers from the question you linked you can also convert your table into a plain text using a tool like Tabulate and then upload it as plain text snippet to Slack. That way the table could also be viewed within Slack. Note that the max size for snippet uploads is 1MB. Also, Slack will only show the first fews lines by default.
Doug here, creator of SQLBot.co. Tables are not supported in Slack, but you can get pretty close using ascii tables and code formating (three tick marks to begin and end)
Here's an example:
The only issue is that if your table gets too wide the text wraps.
Depending on how you're generating the output there may be good helpers. In the ruby world you can use the terminal-table gem or the text-table gem.
Since this comes up on a google search, and the site mentioned previously requires signup, thought I'd share what I found:
https://ozh.github.io/ascii-tables/
Just paste the output in Slack within a Code Block

Microsoft translator widget not translating contents loaded dynamically(e.g. using ajax call)

We are trying to understand different language translation options for our mvc application.
We checked how Microsoft translator widget working. As per their document, we have added embedded script to our pages. It loaded translate button. it is translating content to selected language. But then after if any content loaded dynamically (e.g. making ajax call and loaded some partials in the page), it is not automatically convert to language. We need to again reset and re-select the language to convert again.
Note: In case of google translate widget, they are converting automatically all dynamic content after loading them.
We want same functionality using Microsoft translator widget. Is there any way to achieve this functionality?
Yes there is, Microsoft no longer supports the Translator widget and the available solution is to integrate the Translator Text API in your website or application. To do this you will need to subscribe to the Microsoft Translator Text API. Visit the Getting Started page at http://www.aka.ms/TranslatorGettingStarted and you will find the steps.

scroll google doc with google app script

Is it possible to scroll a google doc using google app script?
I have an app script that searches for all headers in an active doc and creates a table of contents, and now I'd like to link the contents list to the headers as they occur in the doc itself.
I've made this work using jquery in the mozilla rich text editor and it's very handy.
Thanks.
It is possible now with setSelection() method
https://developers.google.com/apps-script/reference/document/document#setselectionrange
There is also NamedRange entity that we can create on a document for later retrieval
No, unfortunately it's not currently possible to control the scroll or cursor position within a document. See our support page for information on how to file feature requests: https://developers.google.com/apps-script/support

play framework 1.x to render rich text

I am using Play framework 1.x and in one case, we are saving rich text data (I am currently using using ckeditor-JS on client side but am open to other suggestions e.g. markdown etc). The data gets saved in the DB correctly i.e. with the HTML tags (unless I am misinterpreting how it ought to be saved). I need to be able to render this content as HTML in my view - should I be looking to use the same library for handling the conversion or is there something in play framework (1.x) itself that I could possibly use. Hope I explained the question properly and thanks in advance to any useful suggestions.

Resources