Link to home
Start Free TrialLog in
Avatar of Barkley
Barkley

asked on

How to dynamically create a web page using Formula

I can dynamically create a webpage through an agent using Lotuscript by doing this:
  Print "<HTML>THIS IS MY PAGE</HTML>"

I want to do the same using Formula.I am tryint to use Javascript inside the formula but it doesn't work. Maybe my syntax is not correct.
What I want is when I call my agent through the web, it will create a dynamic web page for me, without the need of a form.

I hope you can help me.
Thank you very much.

from,
Barkley
Avatar of zvonko
zvonko

Hello Barkley,

am I right that you call your agent like: http://myServer/myDB/CreateMyPage?OpenAgent

and in your agent CreateMyPage is something like this:
"<HTML>THIS IS MY PAGE</HTML>"

Than you miss one more detail :-)

The Domino engine interprets every output one-liner as an URL to redirect the browser :-)

So you need in your html output an @NewLine linebreak to signal Domino: this is a browser output and no URL

Try it, at least do this:
"<HTML>THIS IS MY PAGE</HTML>"+@NewLine

because this are two lines <|:-)

Sorry Barkley, my upper comment was un absolute nonsense.

I have tried this and all possible combination with agents assigning $$Return and $$HTML fields, but this all does not work. It does not create other output then: "Agent done"

Only possibility is to place the formula into an empty form with one computed field producing html output. But this is not an agent. it is only a formula. This field can also use a field Query_String on same form (or even HTTP_Cookie) to compute the html text acording to parameters. But still this is not an agent.

Sory, I was to fast with my assumption that what I always used with $$Return to compose whole html pages will work also alone.


Avatar of Barkley

ASKER

That's ok zvonko.
I think that only way is to pass a  javascript code, which means on the formula I will create a javascript code.The only problem is, I'm still not that familiar with that method.

from,
Barkley
ASKER CERTIFIED SOLUTION
Avatar of zvonko
zvonko

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Barkley

ASKER

zvonko,
  What I wanted is not to use any form or page.Just a code that will just create a web page, just like in a lotuscript.We use Domino 5.08
from,
Barkley
Avatar of Zvonko
Hello Barkley,

this question looks to me like it is abandoned.

Please comment if you are still interested in it.
Or otherwise let it be closed and your points rewarded back by Community Support by posting a zero points request here:
https://www.experts-exchange.com/Community_Support/

Cheers,
Zvonko

Barkley,
No comment has been added lately (492 days), so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area for this question:

RECOMMENDATION: Award points to zvonko http:#6778635

Please leave any comments here within next four days.

-- Please DO NOT accept this comment as an answer ! --

Thanks,

Zvonko
EE Cleanup Volunteer