Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Getting the first value out of a string.

Re: Getting the first value out of a string.

From: Scott Mattes <ScottMattes_at_yahoo.com>
Date: Thu, 07 Mar 2002 19:20:31 GMT
Message-ID: <34Ph8.874$RB.289919@news1.news.adelphia.net>


Have you tried changing

htp.FormSelectOption (loc.location||' -> '||loc.description,cattributes=>'maint_location="'||loc.location||'"');

to

htp.FormSelectOption
(loc.location,cattributes=>'maint_location="'||loc.location||'"');

/???

"Craig Burtenshaw" <crb_at_amsa.gov.au> wrote in message news:uDBh8.34$V33.1034_at_nsw.nnrp.telstra.net...
> Hi,
>
> I have a drop down box in a PL/SQL Web Application. It gets it's
> information from two columns.
> I only want to pass the first column into the next procedure. However the
> program wants to pass both columns.
> The statement is
>
> htp.FormOpen ('sartest.show_maintequip');
> htp.FormSelectOpen('maint_location',' Select a Location from list: ');
> FOR loc IN maintequip_list
> LOOP
> /*
> Passes both values of loc.location and loc.description to
> sartest.show_maintequip procedure as ONE value
> */
> htp.FormSelectOption (loc.location||' ->
> '||loc.description,cattributes=>'maint_location="'||loc.location||'"');
> END LOOP;
> htp.FormSelectClose;
>
> The show_maintequip procedure is
> PROCEDURE show_maintequip (maint_location in VARCHAR2)
>
> The value that get's passed for example is
> RC2262 -> Depot 1
> SARB-DROPPED -> Depot 2.
>
> I would only like to pass the first value.
>
> Thank you in advance.
> Craig Burtenshaw
> Unix Systems/Oracle Database Administrator
> Australian Maritime Safety Authority.
>
>
Received on Thu Mar 07 2002 - 13:20:31 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US