I have a web page outside lotus notes, and i want to use a lotus db to store all the url i will need in my webpage.
Waht i want is to know if it’s possible to acess a specific field, witch contains the url and then use it in my html code as a link.
instead of <a href=www.ibm.com …
i wil have <a href=“some funcion or javascript or whatever”
Thanks in advance
Eduardo
Subject: HTML - get field valeu in ND and open as URL
A Computed Text, or a Computed For Display field, with a formula something like this:
links := @DbLookup(“”; “”; “viewname”; “lookupvalue”; “fieldname”; [failsilent]);
@Implode(“<a href="” + links + “">link”; “
”)
Not tested in notes.
You can make it a bit more complex if you like. It’s really no problem.
/Peter
Subject: RE: HTML - get field valeu in ND and open as URL
Hello Peter, thanks for the tip
Ok, that will work in notes!
But, what i need is to acess that field from the HTML page.
Something like this:
document.write(“<a href='” +sPathDomino + “/theviewname?openview?getfield target=‘_blank’ class=‘submenu’>Link”);
Subject: RE: HTML - get field valeu in ND and open as URL
I’m sorry, I misunderstood…
There should be several options for you, here are two suggestions:
-
Make an iframe in the page and set the source to a view or document from the Domino server
-
Make an AJAX call to the Domino server, and get a view or document formatted in some nice-to-have way…
What you get from Domino:
-
Get a view - You can format the output from the view in any way you like, including as pure HTML
-
Get a document - Create a form that presents the link or other content exactly like you want it to. The document doesn’t have to be presented as HTML, it can be XML, or text. The document can be set to present itself as Notes translated HTML, HTML, or any other type you want. Passthrough HTML can be used if you want to use Notes translated HTML.
-
Get an agent - pass a parameter to the agent, which prints something back to the browser. This can be anything you want it to be.
/Peter