FORM within a FORM

Trying to display listings of a search for a bookstore, and then either display a review of the book OR select the item and put it in the shopping cart. I have a large FORM which puts the selected items into the shopping cart and I would like to post a FORM for each item in the table which would query the database for reviews of the book in question. The problem is that when I hit the external FORM's click it only passes the first line in the table of HIDDENs, even if I have many lines. It also passes the value of the internal forms even though, technically, it shouldn't even look at the values in the internal FORMs. What is going on that the servlet not only grabs from the internal FORM when the External FORM is submitted, but it also stops grabbing after the first Internal FORM???
CODE:
"<P/>"+
"<FORM name='bigone' method='GET' action='http://localhost:8080/servlet/ToCart'>"+
"<TABLE border='2' cellpadding='2'>"+
"<TR>"+
"<TD ID='big'>Title</TD><TD ID='H'>Author</TD><TD ID='H'>ISBN</TD>""<TD ID='H'>Price</TD><TD ID='H'>In Stock</TD><TD ID='H'>Shopping Cart</TD>"+
"<TD ID='H'>Reviews</TD>"+
"</TR>");
while (rs.next()) {
count++;
String tit=rs.getString(1);
String aut=rs.getString(2);
String izzy=rs.getString(3);
out.println ("<TR>");
out.println ("<TD>" + rs.getString(1) + "<INPUT type='hidden' name='title"+count+"' value='"+tit+"'></TD>");
out.println ("<TD>" + rs.getString(2) + "<INPUT type='hidden' name='author"+count+"' value='"+aut+"'></TD>");
out.println ("<TD>" + rs.getString(3) + "<INPUT type='hidden' name='isbn"+count+"' value='"+izzy+"'></TD>");
Double rsCost =new Double(rs.getString(4));
out.println ("<TD>$" + df.format(rsCost) + "<INPUT type='hidden' name='price"+count+"' value='"+rsCost+"'></TD>");
if (rs.getInt (5) > 0)
     out.println ("<TD>Yes</TD>");
else
     out.println ("<TD>No</TD>");
out.println ("<TD><INPUT type='text' name='quan"+count+"' size='3' value=''></TD>");
out.println ("<TD><FORM name='form"+count+"' method='GET' action='http://localhost:8080/servlet/Reviews'>"+
"<INPUT type='hidden' name='isbn' value='"+izzy+"'>"+
"<INPUT style='color: black; font-size=12;' type='button' value='Reviews' onclick='document.form"+count+".submit();'>"+
"</FORM></TD></TR>");
"<INPUT type='hidden' name='dropnot' value='add'>"+
<INPUT type="hidden" name="looper" value="'+count+'">+
"</TD>"+
"<TD>"+
"<INPUT style='color: black; font-size=12;' type='button' value='I want this.' onclick='document.bigone.submit();'>"+
"</TD></TR>"+
"</TABLE>"+
"</FORM>"+

When a form is submitted, it sends all the input parameters inside <FORM></FORM> tag. Now if you have nested forms, its going to cause problem. You need to make sure that a FORM ends with /FORM before you start second FORM.

Similar Messages

  • How to get absolute path of a form within the Forms

    Aslam o Alikum (Hi)
    How to get absolute path of a form within the Forms 6i or 9i
    For example
    i am running a from "abc.fmx" from C:\myfolder directory
    can i get the form path 'C:\myfolder' by calling any any function from "abc.fmb"

    There is no direct call that will always work. What you need to do is call get_application_property(current_form). This may have the full path in it, depending on if that path was defined when the form was launched. If there is no path, then you need to use TOOL_ENV.GETVAR to read the Forms<nn>PATH and the ORACLEPATH, parse those out into individual directories and then check for the FMX in each.
    I already have some code to do all this for you see:
    http://www.groundside.com/blog/content/DuncanMills/Oracle+Forms/?permalink=4A389E73AE26506826E9BED9155D2097.txt

  • How to get names of INCLUDE or FORM within included forms

    Hello,
    I want to get names of Include program and included form within included forms.
    I tried SY-REPID or SY-CPROG but these two SYST variables return the name of report program that performs the form, not the name of Include or form.
    Please give me any advice about how to get names of include / included form.
    thanks and regards,
    Hozy

    You can use the statement
    READ REPORT <Report name> into itab
    to read the source code into an internal table.
    Later you can use the "Contains Pattern" operator to get the statements that you need.

  • Not a nested form, but a form within a form??

    Hello, all.
    I've been given a task to add a file upload form to a page whereby all of the contents of the page are already contained within a form.  I know that it is not possible to nest form tags; however, would it be possible to place an iFrame within the form that contained another form, without being considered nested, and without screwing up the original form?
    Or would it be better to just place the iFrame in a div outside the form, and keep it hidden until called upon?
    I suppose that I _could_ just use a JavaScript popup to use another form; but if I can avoid that AND get this to work, that would be preferred.
    Thoughts?
    Thanks,
    ^_^

    Yes, you can place a separate form within an iframe. However, as Ian points out, the problem you'll have is a UX problem - how will you synchronize the submission of data between the two forms? I'm sure you can get where you want to get, but you'll definitely need to spend a bit more time testing this part.
    Dave Watts, CTO, Fig Leaf Software
    http://www.figleaf.com/
    http://training.figleaf.com/
    Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
    GSA Schedule, and provides the highest caliber vendor-authorized
    instruction at our training centers, online, or onsite.
    Read this before you post:
    http://forums.adobe.com/thread/607238

  • Opening an adobe form within a form

    I have multiple forms made in lifecycle designer es to order different products. Is there a way I can create a button on one form to open anyone of the other forms and the opend form just add to the second page of the existing form?
    Say I have Form 1, 2, 3 & 4
    I have form 1 open and I also need to order products from form 3....so rather than minimizing my current form and having to open form 3 fill it out and submit 2 different forms.......can I just select form 3 somehow on form 1 and it will add to the second page?
    Thanks.

    You could consider rolling all the associated forms into one and simply hiding those that are not needed
    until a relevant selection is made - then use the setfocus event (or similar) to take you there.
    I dont know of any way to import an entire form into another dynamically... but i could be wrong
    Having form open other things locally gets tricky becuase acrobat/reader is quite touchy about security functions also -
    sorry cant be more helpful - good luck

  • How to call Oracle Form within Oracle Form?

    Hi,
    I have a requirement to call a customized Oracle Form from standard Oracle Form (Special Information screen) and vice versa.
    Then need to display the person detail accordingly.
    Is it possible to be done? Appreciate guidance on this item.
    Thanks and Regards,
    SC

    Veerendra,
    Sounds like you are using the Oracle E-business Suite (EBS). If that is the case, opening a form is different in the EBS than it is in a non-EBS Forms application. You have the register the Custom Form in the EBS for starts.
    This question should be posted in the General EBS Discussion forum not here. Also, I recommend you take a look at the Oracle Applications Documentation and find the "Oracle Applications Developer's Guide".
    Craig...

  • How to put more than 1200 characters in a text form within a pdf created in Adobe Acrobat

    I need to know how to put more than 1200 characters in a text form within a pdf created in Adobe Acrobat. I have a request from a customer to do so and after googling I have came up with nothing. Also the customer would like it if they could convert said pdf form to a microsoft word document with the text form.

    There's no limit on the number of characters you can enter into a text
    field, unless you set it as such.

  • Interactive Forms within an Acrobat Portfolio--- why not??

    Hi,
    I have a student asking why she isn't able to save a group of interactive forms within an Acrobat Portfolio, and have the Tracker recognize the responses to the form. Sounds as if this shouldn't be a problem. But...
    I've tried it myself, and it appears that when working from within a Portfolio, I have no access to the "Distribute Form" command. Is this correct or is it a bug?
    If I skip the Distribute Form option and instead upload the Portfolio to Acrobat.com, I *am* able to fill out the form and hit "submit". It *does* submit a reply to my email address, in the typical .fdf format. When I go to my email address I can download the .fdf file to my local machine, but after that the system seems to break down.
    TheTracker has no clue that any response has occurred.And when I try to "compile returned forms", the .fdf  files are not recognized: I cannot import the response.
    Is it because there was no "Distribute Form", that the Tracker doesn't recognize responses?
    It would seem like the most useful thing to be able to send a variety of forms to new employees in the Portfolio format. Can it be done? And how?
    Thanks! I hope someone can help, or at least clarify. The student will be back tomorrow and I'd love to have a reply for her.

    Hi "critter_monster" It is by design that the distribute options is not available for files that are in a Portfolio. You can only distribute forms that are not attached to a portfolio. Since tracker only tracks forms distributed the the distribution workflow, it is expected that it would not recognize the .fdf from the submit button.
    Adobe does have a "wish list" form that you can submit feature requests through. You can always submit a request for that functionality. The form is here: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&promoid=EWQQL

  • End User Can Not Open A Form within Responsibility

    Hi to all,
    I have an end user who tries to click on a form within a responsibility. And the form does not launch. As matter of fact, the browser green progress bar does not show up. There are other forms within that same responsbility that she is able to launch.
    This end user was not having this issue before. She was able to launch any forms under any responsibility without any issue.
    I tested the same responsbility and same forms on my machine as was able to launch without any issue.
    These are the following conditions the end user has:
    IE 7
    Jinitiator 1.3.1.29
    I tried the following steps to remedy the issue:
    Cleared cache and cookies.
    Clear jar cache
    Did not fix the problem
    Reinstalled Jinitiator
    Did not fix the problem
    I turned on the show java console and show exceptions dialog box on end user jinitiator. When I go back and click on the problematic form, no java console shows up, nor does any exceptions dialog box.
    Does anyone have an idea, why this may be occurring and how to resolve this issue.
    Thanks
    F. Lucio
    Edited by: Ferreira Lucio on Oct 9, 2009 1:15 AM

    Greetings Hussein,
    I worked on your recommend steps, and still unable to resolve issue:
    Try opening the form using your username from the user's machine, and do the same with this specific user from some other machine.
    I logged onto oracle with my credentials, and went to the same responsibility and form. This issue happens to me. But when I go back to my local machine. I have no problems.
    Did you try using some other browser on the user's machine (for example, Firefox)?
    I installed firefox, but everytime I click on a form, it tells me to download jinitiator.
    Any recent changes have been done on the user's machine or in the user's profile options?
    Unsure what profile options have changed for user
    Note: 310961.1 - How To Enable The Java Console Jinitiator 1.1.8 and 1.3
    Note: 232651.1 - How to Enable Tracing in Jinitiator
    If none of the above helps, obtain FRD and see if you get more details about the error -- See (Note: 150168.1 - Obtaining Forms Runtime Diagnostics (FRD) In Oracle Applications 11i).
    I uninstalled jinitiator, then reinstalled. Turned on java console and enabled tracing. Console/tracing does not come up for this form. On other forms it does.
    I uninstalled jinitiator a third time. Then reinstalled. What I notice is that jinitiator still has the java console checked and tacing parameters set. What I believe could be happening is the jinitiator is not being uninstalled completely.
    Where or how can I check if the jinitiator gets removed completely.
    I have check the control panel and jinitiator is not there. I also check HKLM and it is not there also.
    Any ideas how to move forward.

  • Best Practices for Forms within Site Studio Templates

    Last summer our university redesigned our entire website using site studio. We only use the content server for the SiteStudio add on. During the redesign, we found that it wasn't clear how we were supposed to migrate our current web forms (applications, payment forms, etc) to sitestudio. Our current workaround is to place the form within the content server, and have it submit data to a cgi (perl,php) placed on a separate web server. We wrap the backend of the form within an html template that looks like our sitestudio templates so that it appears to the end user that they are still on our website.
    Obviously, this is not ideal. I have been reading documentation on how to use the content server to host JSP files. The jsp files run flawlessly if they are accessed via the weblayout folder directly. I have not yet found a solution that will allow me to wrap my jsp forms within our existing sitestudio templates.
    Has anyone else encountered this problem, or come up with an alternate solution to this problem?

    Thanks, I appreciate your taking time to find the precise answer. Just today this bit me again.
    I have a need to modify the ComboBox template to italicize placeholder text.  That's a easy thing to do; however, now that I've created a new template I have to name it and add a Style={StaticResource MyNewStyle} to ALL the comboboxes in my app. 
    If I leave my new template unnamed - to override the default - none of the theme resource changes that I already have in place are picked up by the existing ComboBoxes, and they revert to their default look.
    There's clearly something wrong in the way I'm doing it or the way it's implemented.

  • How to define form within a table with two columns?

    Hallo,
    i want to design a form with two columns side by side.
    My way is to define a table within the form:
    <af:panelForm>
    <afh:tableLayout width="100%">
    <afh:rowLayout halign="left">
    <af:inputText value="#{bindings.StsNr.inputValue}"
    label="#{bindings.StsNr.label}"
    required="#{bindings.StsNr.mandatory}"
    columns="#{bindings.StsNr.displayWidth}"
    readOnly="true">
    <af:validator binding="#{bindings.StsNr.validator}"/>
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.StsNr.format}"/>
    </af:inputText>
    <af:selectOneChoice value="#{bindings.StammsaetzeStsEmpfangsart.inputValue}"
    label="#{bindings.StammsaetzeStsEmpfangsart.label}"
    tip="Brief, Fax, Mail">
    <f:selectItems value="#{bindings.StammsaetzeStsEmpfangsart.items}"/>
    </af:selectOneChoice>
    </afh:rowLayout>
    </afh:tableLayout>
    </af:panelForm>
    Is there a better way to do it?

    Hi reiasmus ,
    Try <af:panelForm row="X">, that specifies the number of fields by columns. If you have ten fields and you fix row="5", you will obtain two columns with 5 rows on each.
    Regards,
    Tif

  • How do i distribute a form within a document?

    I have one page within a document I would like to use as a form and retrieve the information, how do I send my document and retrieve the information from the form within the doc?

    If you're using FormsCentral to collect the responses, after you import the PDF into FormsCentral, open the form in FormsCentral and you'll see the Distribute tab as shown in the screen shot below:
    It allows you to download the enabled PDF, which you can then distribute to users or post on a web site.

  • Interacrive forms within the SAP GUI

    Hello
    I want to work with interactive forms within the SAP GUI, with ABAP.
    I've managed to display a generated PDF in an ABAP screen, with CL_GUI_HTML_VIEWER, using the method LOAD_DATA. The problem now is getting the filled data out of the form. Is there any standard way of doing it? (getting the data without saving the file)
    I've thought of some ways, such as getting the filled file somehow as a binary file, or handling the document's Submit button, but I haven't managed to get any of them to work.
    Is there any way to make it work, or use the different PDF classes to do it..
    Thanks

    Hello
    I want to work with interactive forms within the SAP GUI, with ABAP.
    I've managed to display a generated PDF in an ABAP screen, with CL_GUI_HTML_VIEWER, using the method LOAD_DATA. The problem now is getting the filled data out of the form. Is there any standard way of doing it? (getting the data without saving the file)
    I've thought of some ways, such as getting the filled file somehow as a binary file, or handling the document's Submit button, but I haven't managed to get any of them to work.
    Is there any way to make it work, or use the different PDF classes to do it..
    Thanks

  • How to call Interactive form within Workflow ?

    Hi,
    I have created a interactive form within WebDynpro for ABAP which triggers a workflow for approval. Now I would like to open the same interactive form by the approver and approve the request.
    Any input for calling interactive form from Workflow would be helpful.
    Regards
    Ravikumar

    u need to create the events step by step in the workflow.
    first event would be the condition which should be checked so that it gets triggered when the condition is satisfied.
    second would be the the triggering in which u will get this triggered. u need to create a class in which the adobe form's code will be present like the FM it generates etc.in this class u will to write some methods for eg: if u create method say send_mail in this class u will code all the logic for sending the adobe form as a mail and u assign this in the workflow. So now, in the workflow all the methods that u assign will get triggered.

  • Spry Tabbed Panels - Forms within Panels

    Any thoughs on how to place updatable Forms within Tabbed
    Panels. I thought it might be interesting to try to use the Spry
    Tabbed Panels to allow Updating specific areas of a database using
    each tab to update specific fields of a table. When doing this
    using the Update server behavior I create all sorts of variable
    issues.
    Anybody have thoughts on this... or an alternate method to
    create the same effect?

    Hi Gramps-
    Were you able to use the widget in Firefox?  For me, it just displays of the panels, one on top of the other and no tabs.  Maybe my browser's broken (that would be the best case scenario).  I'll start there.
    Thanks!
    Dianne

Maybe you are looking for

  • How do I make an Apple ID account without a credit card

    I've been able to create an account but however, when I try to sign into my account on the App Store, they require me to review my account which requires for me to fill in details of my credit card but unfortunately, I don't have one. so is there any

  • Re: Windows Vista Ultimate 32-bit FN key and Bluetooth crash

    I have an old problem with FN key. I installed Vista and after a while, it stops working. In Windows, when I press the FN key it freezes about 3 seconds, a blue screen appears that tells me Vista has crashed, a memory dump begins and then the laptop

  • Store buttons not working in itunes 12

    I have just downloaded itunes 12 and in the store page the back/forward buttons on the masthead at the top of the page no longer work.  I'm still running Lion 10.7.5.  Any ideas?

  • User defined Info structure

    Hi all I am trying to create an infostructure of my own which will update document posting date after each transaction. through mc21 I created an info structure under Inventory Controlling Event. Created a separate update group for it. Created update

  • GR Cancellation at Depot for excisable material

    Hello there, Could you please explain step by step best process to cancel GR [101] of excisable material at Depot? Thank you Sameer