Form Submission with Results on Same Page

Hi there,
I am new to Spry, well, have used an accordion and thats
about it. I
want to create a page that has a form that submits to an ASP
page, all
the ASP does is insert a record. After the ASP has inserted
the data, it
will return the data, I want this to appear on the same page
that
submitted it without refreshing the page. The page will allow
another
set of data to be submitted, and again this data needs to be
displayed,
but below the previous data displayed.
Is this possible with Spry? If it is, which part of Spry do I
need to
investigate?
Are there any gotchas I should know about whilst using this
technique?
Thanks in advance!
Dooza

V1 Fusion wrote:
> Hello Dooza,
>
> Check out these examples:
>
>
>
http://labs.adobe.com/technologies/spry/samples/form_submission/Submit_and_Valid
> ate_Form.php.html
I like the validation, and the demo works well.
>
http://labs.adobe.com/technologies/spry/samples/form_submission/SubmitFormWithXH
> RSample.asp.html
For some reason I don't see the response from the server as I
do with
the PHP example, all I see is:
<%
Response.Expires = -1
Sub dump_object_irequestdictionary(ByRef var)
If var.Count<>0 Then
Dim i
For each i in var
quote = """"
If var(i).Count = 1 Then
Response.write i & " = " & quote & var(i) &
quote &
vbNewLine
Else
Response.write i & " = " & vbNewLine
For j = 1 to var(i).Count
Response.write vbTab & "(" & j & ") = " &
quote
& var(i)(j) & quote & vbNewLine
Next
End If
Response.write vbNewLine
Next
End If
End Sub
Response.Write "POST:" & vbNewLine
dump_object_irequestdictionary Request.Form
Response.Write "GET:" & vbNewLine
dump_object_irequestdictionary Request.QueryString
%>
Which looks like the code to get the response, or is the
intended output?
Dooza

Similar Messages

  • Form and report on the same page...

    Hi,
    I want to have a form and report on the same page... as soon as user enters the information and submit the form via button then the report should be able to display the addition...
    may I know how to accomplish this...
    Thanks in advance

    Hi
    Can you try like this
    1.First create an empty page and add a html region and template as form region and add the necessary fields to insert into table
    2. create a another region with type as "SQL Query" and template as report region and add the necessary fields for the reports.
    Once u entered the details into form region and created process and insert into table and then automatically the report region query will fetch the recently added row and displays in the report.
    Hopes this might helps you.
    Thanks & Regards
    Srikkanth.M

  • How to get a form to appear on the same page when a button is clicked?

    Hi,
    I have a report on a page with a create button. When a user clicks the create button, a form should appear on another region in the same page....how do i go about doing this?
    I know how to do this if the form is on a different page, but i'd like the form to appear on the same page as the report and only when the button is clicked.
    Thanks.

    Hi,
    I did the following, but it didnt work....
    1) Created a hidden item on the page, and in the Default Value field, I set the value to N.
    2) Created a button in the report with the following values under "Optional URL Redirect":
    Target is a: Page in this application
    Page: 4
    Set these items: P1_SHOW_FORM
    With these values: Y
    3) Created a form of HTML text type with the following values under "Conditional Display":
    Condition Type: Request=Expression 1
    Expression 1: P1_SHOW_FORM='Y'
    What have I done wrong or have i missed something?
    Thanks.

  • How to do a partial refresh of a form and report on the same page?

    Hi all,
    im trying to make a page where you have a report on top and when you click the link instead going to the form page, the form page is on the bottom of the report. lets say im trying to send an id from the report to the item below so that i could fetch the rest of the item. however when i pass,other items would still refer to this one as null.
    if im not mistaken this could be done with submit,but i want it to be partial refresh..
    i tried steps here but this only worked when the lower part is a also a report:
    https://forums.oracle.com/thread/2345863
    i also tried this,but this actually submits a page..
    Grassroots Oracle: Apex Tutorial - Form &amp; Report sharing the same page
    would it be possible to get a form and report in one page as partial refresh?
    Message was edited by: T101_cyberdyne

    If so, you need to create a dynamic action with a javascript action to set the id of the report row in the id form field, and a subsequent pl/sql action to fetch the record based on the id. You can use this record to set the other form field items.
    For the example in the above link the code looks as follows.
    the javascript action:
    var empno = $(this.triggeringElement).find('td[headers="EMPNO"]').text()
    $s('P26_EMPNO',empno)
    the PL/SQL action:
    declare
    cursor c_emp is
    select * from emp
    where empno = :p26_EMPNO;
    BEGIN
    for r_emp in c_emp loop
      APEX_UTIL.SET_SESSION_STATE('P26_ENAME',r_emp.ename);
      APEX_UTIL.SET_SESSION_STATE('P26_JOB',r_emp.job);
      APEX_UTIL.SET_SESSION_STATE('P26_MGR',r_emp.mgr);
      APEX_UTIL.SET_SESSION_STATE('P26_HIREDATE',to_char(r_emp.hiredate,'dd-mon-yyyy'));
      APEX_UTIL.SET_SESSION_STATE('P26_SAL',r_emp.sal);
      APEX_UTIL.SET_SESSION_STATE('P26_COMM',r_emp.comm);
      APEX_UTIL.SET_SESSION_STATE('P26_DEPTNO',r_emp.deptno);
      APEX_UTIL.SET_SESSION_STATE('P26_ORDNO',r_emp.ordno);
    end loop;
    END;
    Hi Vincent,
    Yes! im looking for something similar. This looks interesting. I did look into apex_util.set_session_state yesterday but didnt know how to apply. perhaps i was doing it wrong.
    Question though, so basically first use the javascript to send the EMPNO from top report to the EMPNO in the form fields below.
    Then based on the EMPNO received in the form, do a loop to get the rest and put it into session. Correct?
    if i'm not mistaken i did something similar,but when i tried to set session for the rest,it refers to to the p26_EMPNO still as null..does the javascript sets the id of report to the id of the form or does it just send over?
    i'll try it out.
    Thanks.

  • Dynamic Search/Results on same page - HELP!

    Here is my situation; any help will be GREATLY
    appreciated!!!!!
    - I have dynamic content using PHP/MySQL
    - I am attempting to create a record insertion page
    - within this page, I need the ability to querry the
    database and display the results on the same page and then use the
    results as a part of the record insertion/creation.
    So - I have many students, who are assigned a unique student
    number and I am creating a reservation system. The person entering
    the reservation will enter in the student id (as opposed to their
    name) and hit a 'find' button and the result, if found, will be
    displayed in a dynamic text field. Then, they fill out the rest of
    the info and submit the reservation which gets stored into the
    database.
    I have played around for a few hours now because I have no
    idea how to do this and have just been using trial and error. Can
    anyone PLEASE point me in the right direction?
    Thanks a bunch!!!
    Mav

    I agree, this approach does not seem secure.
    Seems like I could keep trying different ID's until I found
    one and then
    enter reservations under someone else's name and cause havoc
    on the system.
    "David Powers" <[email protected]> wrote in message
    news:eqhvig$h0t$[email protected]..
    > mavrickjcs wrote:
    >> So - I have many students, who are assigned a unique
    student number and
    >> I am creating a reservation system. The person
    entering the reservation
    >> will enter in the student id (as opposed to their
    name) and hit a 'find'
    >> button and the result, if found, will be displayed
    in a dynamic text
    >> field. Then, they fill out the rest of the info and
    submit the
    >> reservation which gets stored into the database.
    >
    > I'm not convinced that your approach is the best way,
    but it's quite
    > simple to do what you want.
    >
    > Create two forms on the page: one for searching for the
    details, the
    > second for creating the reservation. Use a conditional
    statement to hide
    > the second form until the first form has been submitted.
    You'll need to do
    > this by hand, but it's very easy.
    >
    > if (isset($row_recordsetName)) {
    > // this is where the second form goes
    > }
    >
    > Replace "recordsetName" with the actual name of the
    recordset.
    >
    > --
    > David Powers, Adobe Community Expert
    > Author, "Foundation PHP for Dreamweaver 8" (friends of
    ED)
    > Author, "PHP Solutions" (friends of ED)
    >
    http://foundationphp.com/

  • Passing parameters between portlets with in the same page

    Hello,
    I have created a Form and a report. The form allows a user to make some selection values, and then upon submit it passes the selected values to the report to query the database. The results from the query are displayed in a new - seperate - window from the form. Is there anyway to disaply the report results on the same page as the form that called the report? I guess I am trying to have a page with 2 portlets (a form, and a report). I want the user to be able to make a selection from the form portlet and pass that selection to the report portlet within the same page.
    Thanks,
    McKell

    Hi I received this info from an OSS named Mahantesh. I thought it was very helpful information for passing portlet parameters between a form and a report within the same page.
    Please check these steps to pass parameter from form to report:
    This article is based on demo tables EMP and DEPT.
    1. Create a report RPT_DEPT using the query 'Select * from dept where deptno= :deptno'
    2. Create a form FRM_EMP based on EMP table.
    3. Edit the form FRM_EMP => 'Formatting and Validation Options' section => click on DEPTNO field
    => Give the value for the 'Link' (under 'Display options') as 'javascript:runrep()' where runrep is the name<br>
    of javascript function that we are going to create later.
    4. In 'Form text' section, in the 'Footer Text' add the code for the runrep function as follows.
    <script>
    function runrep()
    var formObj = document.forms[0];
    var deptno;
    for (var i=0; i < formObj.length ; i++){
    if (formObj.elements.name == 'FORM_EMP.DEFAULT.DEPTNO.01'){
    //FORM_EMP is the form name
    deptno = formObj.elements[i].value;
    break;
    var url="/portal/page?_pageid=38,1,38_31678:38_31787&_dad=portal&_schema=<br>
    PORTAL&deptno=" + deptno;
    //modify the url according to your environment.<br>
    window.location=url;
    }<br>
    </script>
    5. Modify the URL in the above code with your page url on which form and report portlets have been placed.
    6. Goto Page properties => Parameters tab (Parameters and Events option should have been enabled at Pagegroup level).
    7. Create a page parameter and map it with report portlet parameter.
    8. Now run the page, enter deptno or query the form to get the deptno and click on the link next to deptno field. You should get report with corresponding deptno on the page.

  • FORM and JSP in the same page

    Hello All
    Is it possible to pass variable from a html textbox to a JSP? but they both are in the same page.
    For this purpose, I have a created a index.html, which contain two frames, top.html and bottom.jsp. There is a textbox in the top.html, it collects 2 variables and use form action "POST" to call bottom.jsp to display a graph.
    However after I run this page on Tomcat, it gave me error message in the bottom.html:
    The server encountered an internal error () that prevented it from fulfilling this request.
    Can anyone teach me how to solve this problem? Thanks a lot
    Viola
    index.html
    ===============================
    (FRAME) top.html
    <form action="bottom.jsp" method="post">
    <input type="text" name="apple">
    <input type="text" name="orange">
    ===============================
    (FRAME) bottom.jsp
    String apple = request.getParameter("apple");
    String orange = request.getParameter("orange");
    use those two variables to do something
    and display a graph

    The problem is that both pages are loaded @ the same time so when the getParameter gets executed the parameters are null and this is the probable cause of your error. Another problem is the action in form will cause the bottom to go into tops frame and not have anything to do with the other frame. If you want data to go from one frame to another while the user still sees them look @ DHTML, JavaScript and IFrames.
    HTH,
    J.Clancey

  • Problem with Applets in same page

    Hai to all,
    I am having a problem with GUI in applets
    My first class extends a JPanel named A_a
    import javax.swing .*;
    import java.awt.*;
    import java.awt.event.*;
    public class A_a extends JPanel
    JButton jb;
    JTextArea text;
    public A_a()
    setLayout(new FlowLayout());
    jb=new JButton("Click me");
    //add(jb);
    text=new JTextArea(5,20);
    add(text);
    public void text_appendText(String aa)
    System.out.println("I AM IN A_a");
    text.append(aa);
    text.revalidate();
    revalidate();
    /*public static void main(String ags[])
    A_a a = new A_a();
    JFrame frame=new JFrame();
    frame.getContentPane().add(a);
    frame.pack();
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) { System.exit(0); }
    frame.setSize(200,200);
    frame.show();
    and then I am using other class B_b which is an applet carries a exitsing panel (A_a) inside it .
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class B_b extends JApplet
    public A_a a;
    public void init()
    a=new A_a();
    getContentPane().add(a);
    public void text_appendText(String aa)
    final String aaa =aa;
    new Thread(new Runnable()
         public void run()
              a=new A_a();
              a.setBackground(new java.awt.Color(255,200,200));
              System.out.println("I AM IN B_b");
              a.text.append(aaa);
              a.text.revalidate();
              getContentPane().remove(a);
              resize(500,500);
         }).start();
    and the I am using the second applet C_c in which by performing a button action the old panel A_a should get removed and replace the new panel D_a (which is not here )in the applet B_b with all other components(namely button , text fields etc)
    import javax.swing .*;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import java.util.*;
    public class C_c extends JApplet implements ActionListener
    JButton jbt;
    JTextArea jta;
    public void init()
    getContentPane().setLayout(new FlowLayout());
    jbt=new JButton("Click me");
    jbt.addActionListener(this);
    getContentPane().add(jbt);
    jta=new JTextArea(5,20);
    getContentPane().add(jta);
    public void actionPerformed(ActionEvent ae)
    Enumeration e = getAppletContext().getApplets();
    Applet applets = null;
              while(e.hasMoreElements())
                   applets=(Applet)e.nextElement();
                   if ( applets instanceof B_b)
                             System.out.println("I AM CLASS C_c");
                             ((B_b)applets).text_appendText(jta.getText());          
                             ((B_b)applets).remove());
                             ((B_b)applets).getContentPane().add(D_d);
    both the applets C_c and B_b are in same browser page
    How can i achive that pls help .

    please help me its urgent for my project

  • When I click a button to open an online enrolment form, Firefox just reloads the same page.

    I've tried clicking on this link to a allow you to enrol to vote in Australia on my mac, but everytime I do it it just reloads the page. I've been able to open it in chrome and on firefox on a pc and from that I can gather it seems to be one of those separate web apps but I don't have java installed on either of my computers so it's not a java applet. This has happened before with other links to similar styles of interactive web apps but the same thing happens, it just reloads the page with the link on it. I always just ended up doing them on a different computer or browser. I tried disabling all add-ons and allowed all pop ups but that didn't solve it. I couldn't find anyone with similar problems when I searched.

    You can try these steps in case of issues with web pages:
    Reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox > Preferences > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Enabling Form Submission With ALT+S in Firefox 5?

    In the early stages of Firefox, ALT+S would submit a form. After v2 or v3, a modification in about:config was required to achieve this. Now, since the release of v5, not even this config fix works for me. Is there any way to enable this behaviour in the current version?

    Thanks for answering. Unfortunately, that doesn't appear to work for me on any of the forum post submission forms that I've tried.

  • Using VO as form and table on same page

    Hi,
    We are facing some issues while using same view object on one page. The view object is dropped as input form and as table on same page. There are few fields in the input form that have autosubmit property set to true. Now while entering the data into form, after clicking any autosubmit field, if we refresh the page, then new row gets created in table with value of the auto submit field. This is in cache only and not created in DB. We tried by exposing two instances of same view object in application module but still same issue. Finally we created two view object, one which is EO based and another ready only through query. Its working fine now. But is there any other possible solution, without creating two view objects?
    Jdev: 11.1.1.6.
    Thanks

    Hey Ami,
    I've tried understanding your problem but i'm not sure if i could.
    The problem is that you can insert via the form but it doesn't update the table ?
    Is that it ?
    Regards,
    Frederico.

  • Can we have Manual Form and Tabular form in the same page..

    Hi,
    Is it possible to create a form manually with Save/Apply Change button and another Tabular form using wizard on the same page such that -
    if we click the save button on the manulaly created form , it should save the data present in manual form as well as Tabular form...
    Edited by: Apex_Noob on Mar 21, 2009 5:58 AM

    Hi Dan,
    My table structure is :
    Process
    process_id ( number primary key )
    process_owner ( number which represent the user who is responsible for the process)
    category_id ( number )
    focus_area ( number )
    frequency ( number )
    process_description ( varchar2 )
    Process Region
    process_id ( number )
    region_id ( number )
    Process_website
    id (number primary key)
    process_id ( number)
    web_address ( varcahr2 )
    Above is the struct of part of my DB.
    At present my manual form does the following :-
    When users click on SAVE button , it run PAGE PROCESS , ADD_PROCESS
    In ADD_PROCESS ,
    I have following logic to insert into process table
    Select seq.next_val into temp_variable from dual; - This is the process_id
    insert into process values ( temp_variable , :p2_process_owner , :p2_cateogory , .... )
    to insert into region i used the following logic ( Region is displyed as check box :p2_region north=1 , south=2 ,east = 3 and west = 4)
    l_vc_arr2 := APEX_UTIL.STRING_TO_TABLE(:P2_REGION);
        FOR z IN 1..l_vc_arr2.count LOOP
           INSERT INTO "REGION" VALUES
           ( temp_variable ,
             l_vc_arr2(z));
        END LOOP;
    END;Now as I told, I want to have three text field where user will enter web_address and it should be added to process_website table
    Thanks a ton for all your help
    Regards,
    Shijesh
    Edited by: Apex_Noob on Mar 21, 2009 10:07 AM

  • Column link to  populate a form on the same page

    Hello all,
    Can anyone tell me how I can use a report column link -- that when the link is clicked will populate all of the text fields of my form which is on the SAME page? The form has about 10 fields, and their is only (3) Name/Value associations for a column link.
    Thanks,
    Jeff

    Great! Thanks for the advice. It appears that when you do that, it changes the column link attributes to a URL and puts the name/values in the URL -- when I first clicked on the link, it would not work -- said that it could not find item P6_FAX. I looked at the URL and then I deleted some of the spaces after the commas in the URL and it works great.
    Thanks!
    Jeff

  • Report and Form on same page

    I used the wizard to create a report and form on a table. When the user hits the edit link on the report, it brings up the form (so they can edit) on a new page. Instead of this, I want the form to show on the same page as the report. What is the best way to do this? Should I create 2 regions on the same page (1 for the report and 1 for the form)?

    Bob,
    take a look at
    Re: How to get a form to appear on the same page when a button is clicked?
    at the end you can login to a (my) workspace to see how it's done.
    Leo

  • Render multiple panel groups programatically on same page

    i have a page with multiple command buttons. each button is to be 'associated' with a panel form displaying data on the same page. when i click button 1 i want its associated panel form to render, when click button 2 i want panel form associated with button 2 to render, and form for button 1 to disappear, etc. so when i click the button i want its associated panel from to render and all othere to disappear.
    as I am new to jdeveloper it would be very helpful to have **some examples of code** and the individual steps to perform which implements such a system
    thank you so much

    If bean is not created as told by Puthanampatti, add an instance variable of component type(For panelformlayout add an instance variable of RichPanelFormLayout) and getter and setter methods for it in bean and add this to the binding property of the component, so that the component can be accessed by the instance variable.
    Sample Code:
        <!--In jspx page -->
       <af:panelFormLayout id="test1" binding="#{Bean.test1} ..>
       </af:panelFormLayout>
       //Inside Bean
       RichPanelFormLayout test1;
       //Add getter and methods for test1  
    {code}
    Sireesha                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • When I try to login I only see a common bullet font or dingbat font

    When in safari I was trying to go to my bookmarks, it kept trying to DOWNLOAD instead of just going to the website. So I went to Google but when I typed anything it showed up in dingbats or common bullets - not just an abc font. So I shut down but wh

  • Setting up IDM and OAM for SSO

    Can someone please point us to a document which assists in installing IDM, OAM and configuring sso? Our requirement is to integrate with an external ldap like sunone for authentication. -Pratap

  • My horizontal scroll bar has disappeared

    I no longer have a horizontal scroll bar at the bottom of the page. It disappeared a couple of days ago. I have not made any changes to my settings and am totally puzzled. I did try changing my persona to one I had previously used, and that made no d

  • More options with cover flow

    Is there a way to make cover flow only go through files that you have artwork for? When I'm browing for a CD by cover, I generally want to only listen to complete albums and I'd rather not page through all of the music note covers of files with no co

  • Cloudscape Kills Windows 2000

    I have installed J2EE SDK 1.3 beta 2, and was going along well until I reached the Dukes Bank sample application. I have gone through step by step as stated in the tutorial, using ant to compile everything. I use the deploytool to open the resulting