Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 228139
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:39:25+00:00 2026-05-11T19:39:25+00:00

I have a Lotus Notes application which actually consists of a template with all

  • 0

I have a Lotus Notes application which actually consists of a template with all the required forms, views and agents needed. It also requires some design elements (a custom form and a view for our own type of documents) from this template to be copied over to the mail template, so after the regular refresh all users have it.

The application works like this: the application database (derived from the template I provide) is created on the Domino server. An agent, running in this database, upon http request, creates a “custom” document in user’s mail database.

Then, on the client side, the user can use our view to display this document.

Currently, the deployment procedure goes like this:

  1. Create a “master” application database out of our template.
  2. Fill some data, using the forms and views in that database (to configure how the application works)
  3. Copy the custom form and view to the mail template.
  4. Create our button (to launch our view and/or form) on the mail template.
  5. After the nightly database refresh, all users receive the custom form and the view in their mail database, and they can use the button to view our documents (if any).

Now, I want to easy the admin’s work, and automate the copying of the custom form and the view, and also the creation of the button to the mail template.

Any idea how I can do this from a NotesScript, JavaScript, Java?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T19:39:26+00:00Added an answer on May 11, 2026 at 7:39 pm

    That sounds doable with DXL, and I think you can use both LotusScript and Java to accomplish it.

    Something along the lines of this should do it in Java:

    public class RenderDesign extends AgentBase {
    public void NotesMain() {
    
        try { 
            Session session = getSession();
            AgentContext agentContext = session.getAgentContext();
    
            DxlImporter myimporter = session.createDxlImporter();
            try {
                myimporter.setDesignImportOption(myimporter.DXLIMPORTOPTION_REPLACE_ELSE_CREATE);
                myimporter.importDxl(this.getDxl(), agentContext.getCurrentDatabase());
                } 
            catch (Exception e) {
                System.out.println(this.getDxl());
                System.out.println(myimporter.getLog());            
            }
    
        } catch(Exception e) {
            e.printStackTrace();
        }
    }
    

    Then just construct a string with the DXL. Use Tools -> DXL Utilities -> Exporter (or Viewer) to inspect the design element you want to add or edit:

    public String getDxl(String agentname, String replicaid) {
        return "<?xml version='1.0' encoding='utf-8'?>"+
                "<view name='(auto-view)'> "+/* ... */"</view>";
    }
    

    Note that the DXL importer is anything but robust and error-tolerant: You can make the Developer client crash on input that is valid XML and conformant with the DTD. For example, trying to set fieldhint="" on a field. Keep this in mind while developing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have Lotus Notes based application, which is accessed by several users. We communicate
Some agents in an ancient Lotus Notes application has a difference in agent-enabled behaviour
I have Java code which queries calendar entries from a Lotus Notes Domino server
I have a lotus notes application that has a document with a Number ,
I have some Lotus Notes clients that looses server connection. They suddenly get server
I am working on Lotus Notes and I have a document that contains multiple
Note: This may sound dumb. I have an application which uses raw pointers and
In my Lotus Notes application (classic, not using XPages), the user won't be able
I have a web form we use in Lotus Notes, it is an ASP
I have a fairly simple application which downloads files in a thread. This thread

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.