Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Storing and Retrieving values

Posted on 1999-07-19
Medium Priority
Last Modified: 2013-12-18

I've created 10 HTML fields through Lotus Notes. I've to retrieve the values entered in these fields by the user.

I am able to let the user to enter the values in these HTML fields , but, I am unable to store the values and retrieve them . How am I to proceed?

Previously, I was asked to make use of the CGI variable, Request_Content. Still, I couldn't store and retrieve the values.

I'll be very grateful for any suggestion.


Question by:padmashreep
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3

Author Comment

ID: 1119901
I am in need of the answer, urgently.

Accepted Solution

ghassan99 earned 100 total points
ID: 1119902

Expert Comment

ID: 1119903
CGI variable REQUEST_CONTENT will only retrieve the values u stored in HTML form fields.
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.


Author Comment

ID: 1119904
Hello Ghassan,

The question that I had posted this morning , was posted by one of my team members about 5 days back. We tried making use of the CGI variable, Request_Content.

We referred books since we're not familiar with CGI programming. With what I went through, I understood that the form should have a field with the name of the CGI variable. So, I wrote the following code, after creating a field named as Request_Content in the form . The code goes like this :

Sub Initialize
     Dim se As New notessession
     Dim db As notesdatabase
     Dim doc As notesdocument,webdoc As notesdocument
     Dim view As notesview
     Set db=se.currentdatabase
     Set view = db.getview("All")
     Set webdoc = se.documentcontext
     Set doc= view.getfirstdocument
     i = 0
     While Not doc Is Nothing
          i = i + 1
          Print "<TD WIDTH=""10%""><CENTER><P><B>" & doc.Cust_name(0) &"</B></CENTER></TD>"
          Print "<TD WIDTH=""10%""><CENTER><P><B>" & doc.Job_Name(0) &"</B></CENTER></TD>"
          Print "<input type = 'text' name = 'test' >" & i    
          Set doc = view.getnextdocument(doc)
     datevalues = Evaluate(" (Request_Content)",webdoc)
     Call doc.replaceitemvalue("Request_Content",datevalues)
End Sub

I've created a field Request_Content of data type editable text in the form . So, all the documents in the view 'All' has the field.

Ghassan, my code doesn't work. I'll be grateful for any suggestion.



Expert Comment

ID: 1119905
use the following to get the contents of the CGI var:

set doc = session.documentcontext
values = doc.REQUEST_CONTENT(0)

request_contents will have all form fields and their values temp1=test&temp2=peter&temp3=345...
You will have to parse these values out.  To make sure how they are stored use a messagebox value to see the delimeters used.  Thats why your code will not work.

Is your friend Antony? I have answered the question in the same way...maybe I should have pointed out that the values inside need to be extracted.  Just take a look at the question.


Author Comment

ID: 1119906
Hei Ghassan,

Thankx for your suggestion.

Ghassan, only if I save the document with the field values, I'll be able to retrieve the values.

I tried using the Form Action Post method. I don't know how to proceed. I'll be grateful for any help.



Expert Comment

ID: 1119907
Try this:
set doc = session.documentcontext
values = doc.getitemvalue("post_value")(0)


Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question