?
Solved

Storing and Retrieving values

Posted on 1999-07-19
7
Medium Priority
?
617 Views
Last Modified: 2013-12-18
Hai,

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.

Thankx.

Padma
0
Comment
Question by:padmashreep
  • 4
  • 3
7 Comments
 

Author Comment

by:padmashreep
ID: 1119901
I am in need of the answer, urgently.
0
 
LVL 6

Accepted Solution

by:
ghassan99 earned 100 total points
ID: 1119902
0
 
LVL 6

Expert Comment

by:ghassan99
ID: 1119903
CGI variable REQUEST_CONTENT will only retrieve the values u stored in HTML form fields.
0
Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

 

Author Comment

by:padmashreep
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)
     Wend  
     
     datevalues = Evaluate(" (Request_Content)",webdoc)
     Call doc.replaceitemvalue("Request_Content",datevalues)
     Call webdoc.save(True,True)
     Call doc.save(True,True)    
     
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.

Thankx.

Padma
0
 
LVL 6

Expert Comment

by:ghassan99
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 inside...like: 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.




0
 

Author Comment

by:padmashreep
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.

Thankx.

Padma
0
 
LVL 6

Expert Comment

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


0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.
Free Data Recovery software is an advanced solution from Kernel Tools to recover data and files such as documents, emails, database, media and pictures, etc. It supports recovery from physical & logical drive after a hard disk crash, accidental/inte…
Suggested Courses
Course of the Month5 days, 9 hours left to enroll

588 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