Using spry select on multiple forms in same page

Greetings-
My apologies if this has already been answered but after a few searches I've not found my solution....
I have a web page with 2 different forms (completely different open form and close form tags) that I'm trying to get the Spry Select Widget to work in.
Both forms' Spry Select widgets interact as expected with the user with one exception; the second form continues to submit to the action page even if the user is trying to submit an invalid value (the docs suggested using the value of -1 so that's what I'm using). The appropriate error gets displayed to the user but the form continues to submit, which I don't want. Is there a limitation that I missed regarding the use of multiple forms in the same web page with the Spry Select Widget?
FWIW, I'm running the app on ColdFusion and even the cfform/cfselect won't work with the Spry Widget.... I've named and id'd all forms and form elements and still no luck.
Any ideas?
Thanks in advance,
Rich

Hi Brad,
The preamble looks reasonable.  I would like to make sure you are clear on the process.
The data needs to be rendered twice (i.e. a 2 step job).  In the first step you create a trace file with the page count for each document in it...\trace"^define User:PageCountForTrans_@:TransCount. @$page.@LF."."
In the second step, that trace file is brought back in as a preamble file.
Please confirm that you are in fact passing the data twice.
cheers
Chris

Similar Messages

  • Multiple forms in a page

    Hi
    I am writing a custom component which would behave similar way to showDetail tag in adf, but we need it as header and customized text so we went for a custom component, in showDetail component, ADF uses PPR to render only the section of the page, but if i want to achieve the same way, i am using multiple forms in the page and trying to submit each selected form, but the issue when a submit a form, it's not invoking the encodeBegin method, i am not sure whether it would execute the lifecycle of ADF.
    How can we handle multiple forms in developing a custom component.
    Thanks a lot...

    Thanks for the reply......
    Does this mean that simple forms will not work? Do I need to move to iframe?
    Even if use iframe, i have to use form for submit, as i cann't submit iframe, even then i would face the problem i earlier mentioned, like my encodeBegin(phase of lifecycle) is not invoked..... Plz guide me if you have any other alternative to this.....
    Thanks

  • Submit form to same page?

    how to submit form to same page.
    <%@ page contentType="text/html; charset=iso-8859-1" language="java"
         import="java.sql.*" errorPage=""%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Untitled Document</title>
    <script>
    function sample()
         document.form_Configure.submit();
    </script>
    </head>
    <body bgcolor="#FFFDF3">
    <FORM name="form_Configure">
    <center>
              <p align="center"><br />
              <% String[] serverNames={"Server1", "Server2", "Server3"};%>
              DataBase Type     : <select name="DatabaseTypes"
                   ONCHANGE="sample()" style=" width:211; height:211">
                   <% for(int i = 0; i < serverNames.length; i++)
                    %>
                   <option><%=serverNames%></option>
                   <% }     %>
              </select>
    </center>
    </FORM>
    </body>
    </html>
    cheers
    rasmi

    Put the name of the page in the action attribute of the form, just like you always would :s
    Or perhaps you mean that you want to submit to a different frame or something? In that case you use the target attribute and give it the name of the frame you want to submit to.

  • Two forms on same page..save state of one form while submitting other.

    Hi....
    I have 2 form on same page....
    first is form on table....
    nd another is tabular form.....
    now if I make an entry in both table ,,,,and after entering data in tabular form if click on submit button of tabular for the data of tabular form get submitted,,but the data I have been enter in first form get erased.....
    now my question is how can I save state of my first form even after clicking on submit button...........
    pls,help.

    Hi Shirish,
    in your scenario you can write manual process for one form in your both forms, using this way you can achieve you functionality.
    do the above and for that manual process keep the button name as your second form button means, for two forms saving with only one button.
    i am not sure in this, but you can try something.
    Thanks
    Chandran
    Edited by: Chandran on Nov 28, 2011 2:21 AM

  • How to create a master detail form on same page in apex 4.2.1

    Hi All,
    i need to design a master detail form on same page i am not finding an option in wizard from where i can do that.
    will appreciate your suggestions.
    Thanks

    Hi James,
    I think that Mike is suggesting that you create a SQL View over the table and join together the individual primary key values into a single, unique, pseudo primary key. You can still include the individual columns in the SQL but you can then use this new column as the primary key on a form. However, you would also need to create INSTEAD OF triggers to handle inserts/updates/deletes as SQL will not allow you to update tables through a view. (See: [http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28370/create_trigger.htm#i2064426] for the Oracle details on this or Re: How to update view resp. table for an example within Apex).
    Ideally, though, you should only really need one key column - is there any need for four?
    Andy

  • I used to open many tabs in the same page and i move from one to other by mouse but since3 two days the tabs open in the same page normaly but i can't move from one to other when i clik with mouse on any tab it don't open/ do u have any solve for this?

    i used to open many tabs in the same page and i move from one to other by mouse but since3 two days the tabs open in the same page normaly but i can't move from one to other when i clik with mouse on any tab it don't open/ do u have any solve for this

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Use Select Value in JSp on same Page

    Sir,
    In my Jsp page there is one dropdown,sir i want to get that select value in same page so that i can display data on same page below the dropdown based on the <select> value.
    Is it possible to do this things.
    Plz reply Soon.
    Thanks,
    Regards,
    Ashish

    I ideally start by reducing the 2-page functionality - of form page and action page - to just one. It goes like this:
    <cfset isValidationPassed = false>
    <cfif isDefined("form.someVar")>
    <!--- Do validation. Validated form implies isValidationPassed is true --->
    </cfif>
    <cfif isValidationPassed>
    <!--- Do action page stuff --->
    <cfelseif NOT isDefined("form.someVar") OR NOT isValidationPassed>
    <!--- Display the form. --->
    <!--- If form had been submitted, inform user which validation failed, and what to correct. Display the form. --->
    <cfoutput><form method="post" action="#CGI.SCRIPT_NAME#"></cfoutput>
    </form>
    </cfif>
    The idea is then to pile on the complexity, layer by layer.

  • Use Spry Validation with jQuery Form to Form Wizard (v1.1)

    I am trying to use spry validation widgets with jQuery Form to Form Wizard script found here http://www.dynamicdrive.com/dynamicindex16/formwizard.htm
    This is a script that makes a long form into a multi part wizard/form with next and back buttons.
    for the most part it works with the spry widgets on blur and onsubmit, but to make it work properly the next buttons of the script should be disabled until the user corrects what has caused spry error messages.  The script creator has made onpagechangestart event handler to allow for this.  Description here http://www.dynamicdrive.com/dynamicindex16/formwizard_suppliment.htm. By returning false from this event handler, you disable the user's ability to go on to the next page until a value of true is returned.
    How can I script for Spry validation to return false if it has errors from this event handler?
    Thanks in advance for any help,

    did you check this example:
    http://labs.adobe.com/technologies/spry/samples/form_submission/Submit_and_Validate_Form.p hp.html

  • Multiple spry:selects on Multiple Datasets

    Hi,
    I have a main xmldataset A from which 2 other datasets B and C are populated via A datasets' A.getDocument() and are thus dependencies of A
    dataset A has its own spry:region with a spry:select
    B and C share a spry:region also with respective spry:select
    thus
    <ul spry:region="A"><li spry:repeat... spry:select="class">....</ul><ul spry:region="B C"><li spry:repeat="B" spry:select="class"><ul><li spry:repeat="C" spry:select="class"></li>.....
    When I first only had A's region the spry:select worked fine
    but when I added B only B's spry:select worked and then when I added C only C worked
    How do I get all region spry:select to STAY selected on each's own currentRow()?
    P.S. what is spry:selected and can someone elaborate on the documentations definition of Spry:Selectgroup?

    Please have a look at the following
    <!doctype html>
    <html>
    <head>
      <meta charset="utf-8">
      <title>Untitled Document</title>
      <style>
            .MasterDetail {
                font: 100% Verdana, Geneva, sans-serif;
                margin: 2px;
            .MasterDetail .MasterContainer {
                background-color: #EAEAEA;
                border: 1px solid gray;
                width: 35%;
                float: left;
                height: 400px;
                overflow: auto;
            .MasterDetail .MasterColumn {
                font-size: 75%;
                background-color: #CCCCCC;
                padding:5px;
                cursor:pointer;
            .MasterDetail .MasterColumnHover {
                background-color: #EAEAEA;
            .MasterDetail .MasterColumnSelected {
                background-color:#848484;
                color: white;
            .MasterDetail .DetailContainer {
                border: 1px solid gray;
                padding:10px;
                width: 60%;
                float: right;
                overflow: auto;
            .MasterDetail .DetailColumn {
                margin-bottom: 1px;
      </style>
    </head>
    <body>
      <div class="MasterDetail">
        <div spry:region="dsItem" class="MasterContainer">
          <div class="MasterColumn" spry:repeat="dsItem" spry:setrow="dsItem" spry:hover="MasterColumnHover" spry:select="MasterColumnSelected">{day}</div>
        </div>
        <div spry:detailregion="dsItem" class="DetailContainer">
          <div class="DetailColumn">{title}</div>
          <div class="DetailColumn">{description}</div>
          <div class="DetailColumn">{link}</div>
          <div class="DetailColumn">{category}</div>
          <div class="DetailColumn">{category/@domain}</div>
          <div class="DetailColumn">{comments}</div>
          <div class="DetailColumn">{pubDate}</div>
          <div class="DetailColumn">{timestamp}</div>
          <div class="DetailColumn">{guid}</div>
          <div class="DetailColumn">{fbid}</div>
          <div class="DetailColumn">{fbid/@colour}</div>
        </div>
        <br style="clear:both" />
      </div>
      <script src="SpryAssets/xpath.js"></script>
      <script src="SpryAssets/SpryData.js"></script>
      <script>
        var dsItem = new Spry.Data.XMLDataSet("package/xml.php", "rss/channel/item");
      </script>
    </body>
    </html>
    The master container contains the date. It does not matter how you want to format the date as long as it has a spry:setrow. This will determine the row to show in the spry:detailregion.
    Gramps

  • Creator Virtual Forms or Multiple Forms in a page?

    Hello to everyone!
    I guess the problem I have must have been answered somewhere in this forum, however I cannot find the right answer. Simple stated: I have a page with 2 sections.
    First section contains 2 DropDown lists for the user to select items. Once selected, there is an image Link control the user can click to open results in a new window acording to selections.
    Second section: 1 DropDown list and a Data Table. User select an item from the list and Data Table refresh its contents.
    Virtual Forms seemed a great idea. However when I implemented those forms if the user select an item from the DropDown in Virtual Form 2 (section 2) it is as if the user had clicked the image Link on Virtual Form 1 (section 1).
    So I'm thinking in going back and implement my page with 2 "common" forms and JavaScript :(
    Is there a link or a clue where I can start from to correct my page with VF?
    Thank you for your help.

    After a 1 day and a few hours and no useful responses (no one at all, actually, except this one), I finally solved this little problem. And I think I have understood the purpose of VF: VF are useful just in the case you have multiple sections and submit controls on one page and the resulting processed data need to be reflected on that very same page.
    In my case one section reflected resulting data on the same page and the other section reflected data on an alternate page/window. So I put section 1 and 2 into two different simple forms and that was it! Solved :D

  • Select Query and Recordset on same page

    I have been workig with Coldfusion for a while now.  Where I work there is a need for web pages to extract data from data sources.  I have been successful at doing this.  Typically I use a form that selects multiple criteria, which when submitted loads a target/action page that displays records that are filtered based on the SQL statement contained on that action page.  What I do is to conditionally check if criteria is passed using cfif.  And if a field parameter is indeed passed it becomes part of the cfquery.  This works out well - especially for reporting.
    But now I am seeing more and more a need to accomplish the same process - but on a single cfm page.  So the page I seek will have both the form (select) and the recordset results on the same page. 
    In this exercise I will be caching results od a query and having several queries to further refine what I seek (QOQ).  What I am seeking is the best practice to follow, I was thinking that using an iframe on the page would be and adequate solution whereby the query would pass the criteria and its form action would pass the variable(s) to the action page, which would be the source of the iframe.  But I am not certain that this is a best proctice.  Nor have I had great success at getting the pages to work in concert. 
    Any advice that you can lend would be appreciated. 

    I ideally start by reducing the 2-page functionality - of form page and action page - to just one. It goes like this:
    <cfset isValidationPassed = false>
    <cfif isDefined("form.someVar")>
    <!--- Do validation. Validated form implies isValidationPassed is true --->
    </cfif>
    <cfif isValidationPassed>
    <!--- Do action page stuff --->
    <cfelseif NOT isDefined("form.someVar") OR NOT isValidationPassed>
    <!--- Display the form. --->
    <!--- If form had been submitted, inform user which validation failed, and what to correct. Display the form. --->
    <cfoutput><form method="post" action="#CGI.SCRIPT_NAME#"></cfoutput>
    </form>
    </cfif>
    The idea is then to pile on the complexity, layer by layer.

  • Error when trying to create 2 Forms on same page on 2 tables with ID as PK

    Hi all,
    here's the error message I get: "ORA-20001: Unable to create query and update page. ORA-20001: Unable to create form on table. ORA-20001: Error page=1 item="P1_ID" id="509501514227854745" ORA-20001: Error page=1 item="P1_ID" id="509501514227854745" has same name as existing application-level item. ORA-0000: normal, successful completion"
    What am I trying to do:
    I try to create 2 forms on the same page, each one based on tables that have PK column named "ID".
    From what I understand, HTML DB is trying to create for both forms the same "P1_ID" (P[no_page]_[column_name], right ?) hidden item in order to keep the value of the pk column...
    I think this is not right...what do you think ?
    Thanks,
    Andrei

    You cannot use multiple automated row fetch or automated DML processes on the same page where any table column names are in common between them.
    Scott

  • Tabular and normal form on same page

    Hi all,
    need some advice as how to submit both tabular form and a normal form on click of submit button. The tabular form is based on a different table and the normal form and like i said i need to get them to insert into their adjacent tables at the same time..
    thanks guys...

    Hi Stefan,
    You might find it useful to review the behaviour of the Detail page in the Master-Detail form within the APEX Sample Application, where the modifications made to the Forms region (based on Master table) and the Tabular form region (based on Detail table), are saved by clicking one button. If you're working with APEX 4.0, install the Sample Database Application, run it and then select the "Orders" tab. The Orders page, pg 4, is the Master page, displaying information on customer orders. If you click on the edit link for one of the rows, say for example the customer 'Bradley, Eugene', this will branch to the Detail page, pg 29 of the Sample Application. The "Save Changes" button will save changes made to both regions of the page. The Form region changes are saved via an Automatic Page Processing (DML) process, and changes to the Detail region are done via Multi Row Update (MRU) and Multi Row Delete (MRD) processes.
    I hope this helps.
    Regards,
    Hilary

  • LOV SELECTION AND REPORT ON THE SAME PAGE

    Hi Friends ,
    Here is what i am requesting your help ...My requirement is to show one dropdown /lov and a report underneath it ..like if you have selection 1.pa 2.ky 3.ny 4.nj
    in the lov and if user selects nj onchange the report should show up on the same page ??? Is it possible in portal using forms and reports or ?? If so please help ???
    Vis

    Hi,
    You can use javascript to do this. In the onChange event you can call a new url.
    window.open(new_page_url_with_report);
    Thanks,
    Sharmila

  • On button click to fill out form on same page as report

    Hi,
    I have a report that contains a name that I want to pass in to a field in a form on a different region on the same page.
    My button located on the report is has its own column called ADD_LINK. Here is the button. <button id="apexir_btn_ADD" class="apexir-button" type="button" value="Add" onclick=""><span>Add</span></button>
    Once that button is clicked, I have the form region fade in. The region is called Add Tag to Employee, which has P4_ROWID, P4_EMPLOYEE_ID, and P4_TAG_ID.
    Once the region is displayed, I want the #NAME# to show in the P4_EMPLOYEE_ID.
    I did copy this form from another page, where I had it working before. It made more sense to move it to this page for interface purposes, so maybe that tidbit will help as well.
    If anyone has an answer to that, awesome. I am new so thanks for the help.
    Thank you.
    Jeremy

    Similar to that, except I have a button on the right-most column that I want to use. There is a button for each row, and I want that to send the name on that row into the form, so it is very similar. Also the region I am sending it to is hidden until the button is clicked, which I created a dynamic action to show it on click.
    ID Name Skills Add_Link Delete_Link
    1 Jeremy Java [Add] [Del]
    That's what 1 row of data would look like..
    So when the [Add] button is clicked the Employee_Add form should update the P4_Employee_ID with the name corresponding with the button on that row.
    Edit: It turns out that since my form item P4_Employee_ID was a popup LOV so when I changed it to a Display Only, it seems to have worked.
    Now I am just having trouble getting this form on the same page to submit the data, by clicking Create on the form. The name is showing, but then I select a Skill and then Create, and it doesn't update my table.
    It is probably because I am not getting a rowID in my form, but I am not sure.
    Thanks
    Jeremy

Maybe you are looking for