LotusScript Print "Hello World"

Discussion in 'Lotus Notes General Discussion' started by John, Aug 10, 2004.

  1. John

    John Guest

    It's widely stated that when a Notes agent is called from a web page
    and when that agent executes a Print statement, the string in the
    print statement is rendered straight to the browser as HTML. It's
    supposed to work like this.

    Create an action on a form. The action formula is:

    @Command([ToolsRunMacro]; "My Agent")

    Create an agent in the database. Set it to be called from agent list
    and to run once (@Commands can be used).

    The initialize routine for the agent is:

    Sub Initialize
    Print "Hello World"
    End Sub

    The agent signer is included in the server document's security tab in
    the field Can run restricted latusscript/java agents.

    When you click the button you should get a blank html page that says
    "Hello World"

    I get "Page Can Not Be Displayed"

    Anyone know why?

    CJ
     
    John, Aug 10, 2004
    #1
    1. Advertisements

  2. Hi John,

    If you want call agent that have run status
    set as "Manually From Agent List", you must
    use the agent's name comprised with brackets.

    @Command([ToolsRunMacro]; "(My Agent)")

    Regards,
    Pawel Grotowski
     
    businessgoodies.com, Aug 11, 2004
    #2
    1. Advertisements

  3. Hi John,

    Use the calling of the agent in the form:

    @Command([ToolsRunMacro]; "(My Agent)")

    You have to use the agent's name comprised with
    brackets if you are using "Manually From Agent List".

    Regards,
    Pawel Grotowski
     
    businessgoodies.com, Aug 11, 2004
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.