Lotus Domino designer adding agent - lotus-domino

I create agent which replace field "NAME" text to "text is replaced". This agent is run in "Profile" form.
I write this agent with simple action.
My question is how to add this agent to form action bar ?

It usually is no good idea to use simple action agents. The code is clearer and better readable, if you use formula- agents instead. If you are not able to write a formula agent, then: Stop working with the designer as you might mess up everything and cannot repair it.
The formula for setting a field in a document (or all selected documents, depends on the target of the agent) is:
FIELD NAME := "text is replaced"
This agent will replace the item with name "NAME" in all selected documents with "text is replaced"
To call the agent from a view action or a form action or from wherever, you again need Formula (as stated in the comment by Knut):
#Command([RunAgent]; "agentName")
Knowing the formula language is the minimum you need to know as a IBM Notes / Domino Developer.

You can use many object handling using Lotus Script. So, I suggest using LS instead of Formula or simple action especially when you're making complicated functions or building huge application.

Related

How to Create a Button in a PDF to Select and Copy all Text from a Single Field

I need a person to be able to input information into a field in a PDF then later be able to select and copy all information from that field with a single click so they may paste it into another field on a website.
Purpose. I am trying to create a master application which people with disabilities may complete and use as a simple way to fill out other applications. I don't believe I can create an autofill ability which will be useful for the thousands of different methods of job application but I want the human to be able to select the correct field then, in as few clicks as possible, copy information from a field in the PDF and paste it into one they deem as appropriate in another application.
I am an idiot, this is a passion project.
It may be simpler depending on user cases to work inside the browser framework. Here is totally non typical usage for copy data from local personal html into remote form. IT depends heavily on the remote site accepting it can be embedded as if a local frame thus not useful for generic use but may work for controlled caseload's

Write conflict: I want to always Drop Changes

I have a split database and I have duplicated front-end file to make multiple copies for different users. Every-time a change is made on one front-end form, I want the other forms in other front-ends to always drop changes. How can I trap this write conflict to always drop changes maybe through VBA if possible?
Not quite sure what you mean by "drop changes" - the frontend should never be redesigned during normal use.
You must distribute a new copy of the frontend to the users.
A smooth and proven method using a shortcut and a script is described in my article:
Deploy and update a Microsoft Access application with one click
(If you don't have an account, browse for the link: Read the full article)
Edit:
If it is the data that is updated by several users, and you update via VBA, you may study another of my articles:
Handle concurrent update conflicts in Access silently
Though simple to use, the code is a bit too much to post here. It is also on GitHub:
VBA.ConcurrencyUpdates

how to download all the report from SSRS report

I am new in this field and I am looking to download a single report, but it has more than 200 values in a drop down. Can you guide me how to download all the report with 200 values in one go.
Let me give you an overview of what the data looks like:
There are 200 practices and each practices has 5 or 6 providers. I am new in healthcare industry. So, I need to manually click on each practice and each provider and click on the view report to see the report and then download the report. So, we have run the report and click to save in PDF for all 1000+ reports.
We use the standard version of SSRs and we don't have any Enterprise version of it.
Can you guide me what to do in this case? Thanks.
I would recommend using a data-driven subscription to generate these reports. When you set up the subscription, you can provide a query that lists all the practices. When the subscription runs, it will generate a separate copy of the report using each practice as a parameter value.
You can set the subscription to email the reports or save them in a folder. This way, it doesn't matter so much how long it takes to run and there is much less manual work for you once you set it up.
You need to amend the report definition so that the filters allow for 'Select Multiple' that way you can select all in the drop downs.
So for example:
The option "Allow Multiple Values" would allow you to Select all of that parameter.
You can also use URL Access and pass in the parameter you want.
Go to http://<server_name>/ReportServer/ and find the report you want.
Then tack on to the end the parameter name and value you want. &param=val&param2=val2
Then add the &rs:Format= command and put your desired extension like CSV.
e.g. http://<server_name>/ReportServer/Pages/ReportViewer.aspx?<my_report_path>&param=val&param2=val2&rs:Format=CSV
https://learn.microsoft.com/en-us/sql/reporting-services/pass-a-report-parameter-within-a-url?view=sql-server-ver15
If you have a lot of parameters, then run this through for loop. Python may be easiest.

#Command([EditCopy]) in LotusScript

I can't find a way to copy selected documents to buffer using standard classes in LotusScript.
Is it possible to do it?
#Command([EditCopy])
The problem with command/formula - is more difficult to debug/log errors etc, so I wish to re-write action to LotusScript if possible.
I can make a solution via Java and then wrap it into LS2J, but it looks to complicated for such simple operation.
You can't copy selected documents to clipboard with standard LotusScript Notes classes.
NotesUiDocument.Copy() doesn't help you neither as it copies only selected parts of an open document.
I would stay with #Command([EditCopy]). If it's really worth it to move the formula code to LotusScript I would separate #Command([EditCopy]) in an agent and call it from your new LotusScript code.
But, the question is, what is the goal to copy selected documents to clipboard? It will be a Notes Client specific kind of clipboard content. You can only use it in Notes Client itself to copy the documents into the same or another database. So, why not use "normal" LotusScript methods to copy documents like NotesDocument.CopyToDatabase or NotesDocument.CopyAllItems?

A process monitor based on periodic sql selects - does this exist or do I need to build it?

I need a simple tool to visualize the status of a series of processes (ETL processes, but that shouldn't matter). This process monitor need to be customizable with color coding for different status codes. The plan is to place the monitor on a big screen in the office making any faults instantly visible to everyone.
Today I can check the status of these processes by running an sql statement against the underlying tables in our oracle database. The output of these queries are the abovementioned status codes for each process. I'm imagining using these sql statements, run periodically (say, every minute or so), as an input to this monitor.
I've considered writing a simple web interface for doing this, but I'm thinking something like this should exist out there already. Anyone have any suggestions?
If just displaying on one workstation another option is SQL Developer Custom Reports. You would still have to fire up SQL Developer and start the report, but the custom reports have a setting so they can be refreshed at a specified interval (5-120 seconds). Depending on the 'richness' of the output you want you can either:
Create a simple Table report (style = Table)
Paste in one of the queries you already use as a starting point.
Create a PL/SQL Block that outputs HTML via DBMS_OUTPUT.PUT_LINE statements (Style = plsql-dbms_output)
Get creative as you like with formatting, colors, etc using HTML tags in the output. I have used this to create bar graphs to show progress of v$Long_Operations. A full description and screen shots are available here Creating a User Defined HTML Report
in SQL Developer.
If you just want to get some output moving you can forego SQL Developer, schedule a process to use your PL/SQL block to write HTML output to a file, and use a browser to display your generated output on your big screen. Alternately make the file available via a web server so others in your office can bring it up. Periodically regnerate the file and make sure to add a refresh meta tag to the page so browsers will periodically reload.
Oracle Application Express is probably the best tool for this.
I would say roll your own dashboard. Depends on your skillset, but I'd do a basic web app in Java (spring or some mvc framework, I'm not a web developer but I know enough to create a basic functional dashboard). Since you already know the SQL needed, it shouldn't be difficult to put together and you can modify as needed in future. Just keep it simple I would say (don't need a middleware or single sign-on or fancy views/charts).