Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle WEB Server Help
On 18 Dec 1996 14:13:07 +1100, hkusumo_at_socs.uts.EDU.AU (Haris Kusumo) wrote:
>Hi,
>
>I just wondering if you could tell me what htp.formHidden do?
>I can use it to store data temporaryly and retrive it later on?
>does it function like normal HTML form?, how do I retrive the data I don't
>think submit button will ever attach to that form?
>
htp.formHidden( cname, cvalue ) simply outputs the following:
<input type=hidden name="YourFieldName" value="YourValue">
When the user submits the form, your pl/sql routine that is the action of the form will recieve "YourValue" in the input parameter named "YourFieldName". For example, if you have one procedure that:
...
htp.formOpen( 'myprocedure' ); htp.formHidden( 'x', 5 ); htp.formHidden( 'y', 10); htp.formSubmit; htp.formClose;
You will have a procedure such as:
create or replace procedure myprocedure( x in varchar2, y in varchar2 )
as
begin
htp.p( 'x = ' || x || htf.br || 'y = ' || y ); end;
X and Y in myprocedure will always be 5 and 10 in this example. You can use the hidden fields to maintain a state of sorts between calls.
>Can you also tell me how to repaginate the output on Oracle Web Server?
>i.e. I have PL/SQL query that will return 100 rows, and I'd like to display
> 20 records per page and at the end I'd like to put next and prev button
> to go to next or prev page.
>If I use cursor to retrive the data it's ok for user to click on next page
>because I can fetch 20 recordas at one time, but what if the user press
>prev button, how do I go back and fetch prev 20 records?
>
goto http://govt.us.oracle.com/ and follow the link to downloadable utilities. An example of how to do this is found in the OWA Extensions.
>I appreciated if you could e-mail me the reply soon,because I need to get the
>web page up and running before mid january.
>
>
>you can e-mail me at hkusumo_at_socs.uts.edu.au
>
>Thanks in advance
>- Haris -
Thomas Kyte
Oracle Government
tkyte_at_us.oracle.com
![]() |
![]() |