473,395 Members | 1,658 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Parsing form fields using pl/sql - not a newbie, but this one has me stumped.

Greetings,

I have a form that, when submitted, calls a plsql procedure. The form
has a number of fields (text, hidden, select, radio) but the
particular field that is giving me problems is a <selectwhich allows
multiple selection. When I receive the form values in my procedure I
getting only the first value of those that are selected. For example
if I select 1000, 1100, 1200, 1300 in the list I only get 1000 in my
procedure. If I send the form to a ColdFusion template that dumps the
contents of the form fields I get

org_list_pick="1000,1100,1200,1300"

but when I get the contents of the form fields in the plsql procedure
I only see the 1000.

My procedure is defined as:

PROCEDURE eadoc_setup (searchwhat IN VARCHAR2 DEFAULT 'emp',
report_emp IN VARCHAR2 DEFAULT NULL,
orgqry IN VARCHAR2 DEFAULT NULL,
report_org_id IN VARCHAR2 DEFAULT NULL,
org_code_pick in varchar2 default null,
ckmatrix IN VARCHAR2 DEFAULT 'no',
report_code IN VARCHAR2 DEFAULT NULL,
report_code_list IN VARCHAR2 DEFAULT NULL,
listqry in varchar2 default null,
org_code_list in varchar2 default null,
startdate IN VARCHAR2 DEFAULT '01/01/1950',
orderby IN VARCHAR2 DEFAULT 'org' ,
searchtype IN VARCHAR2 DEFAULT 'simple') IS
org_code_pick is the variable that is causing me the problems.

We are using OAS on an HPUX box. I'm not sure of the version of OAS.
Our database is 8.1.7.

I have tried submitting the form with both get and post with the same
results. This is actually the first time I have tried parsing a
select statement with "MULTIPLE" using pl/sql, however I have been
parsing forms with pl/sql for several years.

What am I doing wrong?

TIA,
Rick.
Jun 27 '08 #1
1 3361
yo*************@yahoo.com (Rick Owen) wrote in message
news:<ad**************************@posting.google. com>...

Just to clarify. The form is an HTML form (not an oracle form). The
form tag looks like:

<form action="http://server/psl/acc/rpt_eadoc.eadoc_setup"
method="post" onSubmit="return verify(this);" name="myform">

Greetings,

I have a form that, when submitted, calls a plsql procedure. The form
has a number of fields (text, hidden, select, radio) but the
particular field that is giving me problems is a <selectwhich allows
multiple selection. When I receive the form values in my procedure I
getting only the first value of those that are selected. For example
if I select 1000, 1100, 1200, 1300 in the list I only get 1000 in my
procedure. If I send the form to a ColdFusion template that dumps the
contents of the form fields I get

org_list_pick="1000,1100,1200,1300"

but when I get the contents of the form fields in the plsql procedure
I only see the 1000.

My procedure is defined as:

PROCEDURE eadoc_setup (searchwhat IN VARCHAR2 DEFAULT 'emp',
report_emp IN VARCHAR2 DEFAULT NULL,
orgqry IN VARCHAR2 DEFAULT NULL,
report_org_id IN VARCHAR2 DEFAULT NULL,
org_code_pick in varchar2 default null,
ckmatrix IN VARCHAR2 DEFAULT 'no',
report_code IN VARCHAR2 DEFAULT NULL,
report_code_list IN VARCHAR2 DEFAULT NULL,
listqry in varchar2 default null,
org_code_list in varchar2 default null,
startdate IN VARCHAR2 DEFAULT '01/01/1950',
orderby IN VARCHAR2 DEFAULT 'org' ,
searchtype IN VARCHAR2 DEFAULT 'simple') IS
org_code_pick is the variable that is causing me the problems.

We are using OAS on an HPUX box. I'm not sure of the version of OAS.
Our database is 8.1.7.

I have tried submitting the form with both get and post with the same
results. This is actually the first time I have tried parsing a
select statement with "MULTIPLE" using pl/sql, however I have been
parsing forms with pl/sql for several years.

What am I doing wrong?

TIA,
Rick.
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Newbie | last post by:
OK, this may be impossible since I'm using 3rd party shopping cart ASP software, but I've been able to finagle a lot of other stuff I thought wouldn't work, so here we go: I'm using a form in...
11
by: Sven Neuberg | last post by:
Hi, I have been handed the task of updating and maintaining a web application, written in ASP and Javascript, that takes complex user inputs in HTML form and submits them to server-side ASP...
4
by: John Buchmann | last post by:
I thought this would not be difficult, but i'm stumped! I need to iterate through a bunch of form fields, and read the data (value, text, etc.) from them. (I need to iterate through them...
10
by: Mr Newbie | last post by:
DropDown lists and Listboxes do not appear in the list of controls and values passed back to the server on PostBack in Request.Form object. Can someone confirm this to be correct and possibly...
2
by: Esa | last post by:
Hi, I'm having problems with one strange web system where submitting an application and making queries about its handling status require a series of form submits and response parsing - all in...
3
by: Bill | last post by:
I'm using the POST method to submit a simple form html page with yes/no and checkbox fields to an asp response page which stores the values in a new dim string, then uses it to build a new table...
4
by: yanjie.ma | last post by:
Hi, I've got a two part question on table and form design (sorry for the length but it takes a bit to explain). Our sales department uses a look-up table to help the them select the best...
13
by: Chris Carlen | last post by:
Hi: Having completed enough serial driver code for a TMS320F2812 microcontroller to talk to a terminal, I am now trying different approaches to command interpretation. I have a very simple...
2
by: adwest | last post by:
Forgive me if this is a foolish question. I "play" in Access and have only created a few rather simple relational databases. My knowledge and experience is limited. I have no formal training, just...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.