Q

Javascript: Open external database, retrieve a doc, and read a field?

Is it possible through Javascript to open an external database, retrieve a sbpecfic document, and finally read a field off of that document? I need to do this on a form after a part number field is entered and then go out and get this external data and fill in another field on the form.
JavaScript is primarily used as a client-side scripting language. So, there is no way to do this directly, but there are other ways to accomplish this. If the user is entering the number in a text field
(<INPUT type-="text")
, you could have the user click a button or a link that that would submit the form to the server and then either run a server side script (agent in LotusScript or Java) from the WebQuerySave event of the form that could retrieve the value and write it to profile doc, or add it to a querystring parameter. You'd then redirect them back to the form with additional information, which would be added via a WebQueryOpen agent.

There are other ways that might work, but an approach similar to the one outlined above is probably the most flexible.
This was first published in May 2002

Dig deeper on JavaScript for Lotus Notes Domino

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchEnterpriseLinux

SearchDataCenter

SearchExchange

SearchContentManagement

Close