Unique id  when form is submitted

I have a form that submits data to an access 2007 database. I
am using formfields: Is there a way to create a unique id that gets
entered into the database and display it as an
registration/confirmation number on the action page? _ THANK YOU
<cfinsert datasource="design2008"
tablename="2008RDCRegistratation"
formfields="fullname, Email, County, Title, Phone, Address1,
Address2, Payment, CitySTZip, Allergies, Vegetarian,">

I tried adding a query to retrieve the date that a person
registers on. I set the default value in access to Now() so it adds
the date when a user submits a registration. I then added a query
to retrieve the date. On the action page it retrieves the date but
it returns ALL of the dates in the table - see query and output
below. - thank you
<cfquery name="register" datasource="design2008">
SELECT RegisterDate FROM 2008RDCRegistratation
</cfquery>
<cfoutput query="register">Your registration number is
#RegisterDate#</cfoutput>
OUTPUT:
Your registration number is Your registration number is Your
registration number is Your registration number is 2008-07-24
10:20:03.0Your registration number is 2008-07-24 10:21:28.0Your
registration number is 2008-07-24 10:22:04.0Your registration
number is Your registration number is

Similar Messages

  • Apex 4: How to send email when form is submitted?

    Hi,
    Using Apex 4.0.2 on DB 11g, I've a form with around 80 fields and 4 check boxes.
    When the user clicks on submit button, besides saving the values in the database I also have to send emails. Selection of the 4 check boxes decides whom the email has to go to, i.e if 2 check boxes are checked, send 2 emails.
    In the emails, some contents will be based on the data the user has filled and some from the database; also data in different emails will be different.
    From what I've read, to send email I've to use APEX_MAIL API and make a conditional process depending on the check boxes selected. Also that I have configure mail server in database and that mail sever has to accept autonomous user (i.e. sending email without password)
    Is this the right approach?
    How can I do this?
    Is there any example/tutorial that will guide me in doing this?
    Thank you for your time.

    The Apex email package is very simple.
    v_id := apex_mail.send(
              p_to        => v_to,
              p_from      => v_from,
              p_subj      => v_subject,
              p_body      => v_body,
              p_body_html => v_html);It's up to you how you get the values of the variables.
    Also that I have configure mail server in database and that mail sever has to accept autonomous userThe mail server is not in the database, but you do have to inform Apex which server to use (smtp.yourcompany.com).
    Most smtp servers require user and password. In that case you have to write your own procedure. Search the pl/sql forum for email authentication and you will find many examples.
    It is probably also possible to configure the smtp server in such a way that requests coming from the database do not need authentication. That is how we have it configured (but I don't know how the administrator did it, though).

  • When submitting form, form elements like text box are not available in my action page. This occurs only for several times. if i resubmit the form, i can get the form elements in my action page. May be form get submitted twice in firefox 3.6.13

    I have a simple web page with two form elements say, two text box and submit button. when submitting my form, i didn't get the form data in my action page. This occurs only in Firefox 3.6.13 several times. Not always.
    May be form get submitted twice?
    Note: Remember, i am not facing this issue. However my friend is facing this issue.

    I have a simple web page with two form elements say, two text box and submit button. when submitting my form, i didn't get the form data in my action page. This occurs only in Firefox 3.6.13 several times. Not always.
    May be form get submitted twice?
    Note: Remember, i am not facing this issue. However my friend is facing this issue.

  • Preview and Print Form before submitting

    I have created a form. The client would like the person who
    just filled it out to be able to preview and print it prior to
    submitting or even after submitting. Would this be part of the form
    mail script? Does anyone know the PHP scripting code?
    Thanks!

    Form page submits to a preview page that parses the form
    variables from the
    POST array, places them on the page, AND loads hidden form
    fields with the
    corresponding data. The client may print this page using FILE
    | Print. To
    accept the data shown there, the client would click on an OK
    button that
    submits the form's hidden fields to the PHP processing
    script.
    To make this happen you would have to know how to a) parse
    the data from the
    $_POST array on the confirmation page and display it on the
    page, and b)
    load the hidden fields for ultimate submit to the PHP
    processing script.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "RichyZee" <[email protected]> wrote in
    message
    news:gd4vpt$63v$[email protected]..
    >I have created a form. The client would like the person
    who just filled it
    >out
    > to be able to preview and print it prior to submitting
    or even after
    > submitting. Would this be part of the form mail script?
    Does anyone know
    > the
    > PHP scripting code? Thanks!
    >

  • Sharepoint 2010, InfoPath 2010 with Custom Workflow. Error Message: InfoPath cannot submit the form. An error occured while form was submitted...

    I have created an InfoPath form that submits to a Sharepoint library with custom workflow attached. The workflow is initiated when the user submits the form. An email is sent to the supervisor who clicks the "Encoded Absolute URL" and approved
    the form via the emailed form. Then, based on certain criteria the form is either emailed to the VP or the workflow is complete. The VP is sent an email and clicks the "Encoded Absolute URL" and sumbits the form via the emailed form. This is
    how I would like it to work. The reality is, the form submits and is emailed to the supervisor and the supervisor is able to approve but when the form is sumbitted I get an error. The error is "InfoPath cannot submit the form. An error occured while
    this form was being submitted. The form cannot be submitted to the following location: <URL> The file <URL> is checked out for editing by <me> The operation completed successfully." The operation did not complete successfully and it
    is not checked out. I have read in previous posts that the file is locked. Since I am in the testing faze of the project there is no one else using the form. I have waited 24 hours and the lock has not been released. Please help!!! My deadline is growing short.

    I ran into your post while having a similar issue.  I don't have a 'full' fix for you, but I noticed at least in our case if you made sure you opened the Infopath form through the browser instead of the client Infopath program (use the drop-down menu
    and open in browser) the error doesn't occur.  Hope that helps some....

  • PDF form that submits a non-fillable PDF?

    Hello,
    Can you tell me how to create a PDF form that, when completed and submitted, emails (or stores) a PDF of the completed form that is not itself a form, but simply a PDF document?
    Thank you.

    Is it possible to create a link within a pdf-document, that opens
    another pdf-file on a certain page?
    Yes, use the link tool.

  • Losing portal context when URL is submitted from flash/flex portlet

    Hi, I am losing portal context when URL is submitted from action scripting in Flash/Flex portlet. I have selected the remote webservice portlet to use inline refresh. The jsp page is opening up in complete browser window instead of showing in portlet section.
    below is the code snippet i am using.
    <mm:mxml>
         <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" width="400" height="200">
         <mx:Script><![CDATA[
         public function submitToBrowser():void {
         var url:String = "formsubmit.jsp";
         var u:URLRequest = new URLRequest();
         var variables:URLVariables = new URLVariables();     
         variables.name = fName.text;     
         u.data = variables;
         u.url = url;
         u.method = "POST";
         navigateToURL(u,"_self");
         ]]></mx:Script>
              <mx:Form id="myForm" defaultButton="{mySubmitButton}">
              <mx:FormItem label="User Name">
              <mx:TextInput id="fName" name="fName"/>
              </mx:FormItem>
              <mx:FormItem label="Password">
              <mx:TextInput id="password" displayAsPassword="true"/>
              </mx:FormItem>
              <mx:FormItem>
              <mx:Button label="Submit" id="mySubmitButton"
              click="submitToBrowser();"/>
              </mx:FormItem>
              </mx:Form>
         </mx:Application>
    </mm:mxml>

    inline refresh modifies javascript, not flex. Maybe try an iframe?

  • Need To:  Keep Script Objects Unique to Specific Forms

    We create xdp's and then allow users to 'stitch' these together forming one complete PDF.
    These form's code check data entry, completeness, calculations, etc. One of its biggest features is that it highlights required fields (not the built in required field highlight) and conditionally required fields as needed.
    Global Functions (using a script object) works wonders onimmediate form feedback to the user. However, when we combine 2 or more xdp's together, the script objects disappear - leaving the first form's script object only.
    We need the script objects to stay unique to each form without 'dropping off' after stitching forms together.
    Any ideas??

    I would probably use a TreeMap that referenced the counter.

  • Sprint -- Form being submitted twice, IE only.

    Up front I'll state that this probably has nothing to do with Java, but I'll throw it out here just in case.
    On a particular page, when we put 19 or more items into a list in a form, when we submit that form, the onSubmit method of our subclass of org.springframework.web.servlet.mvc.SimpleFormController is getting called twice.
    This happens in IE, but not in Opera or Firefox.
    Because of the browser-specific nature of this problem, I'm pretty sure it's not related to Java, but if anybody has seen something like this before or has an idea where to start looking, I'd be very appreciative.
    This stuff was developed before my time, and I just started looking at it, so I'm not very familiar with it. It uses javascript, freemarker, and spring, none of which I'm familiar with. The only detail I've found for sure is that onSubmit is being called twice, and I'm a bit buggered as to where to look now.
    Thanks,
    Jeff

    Do the forms get submitted by using a javascript call to form.submit()?
    And is that javascript function called from an onclick event on an input type="submit"?
    That can (and does) result in a double submit in IE.
    It does not in firefox.
    Heres a quick jsp page that demonstrates this:
    <%! int count = 0; %>
    <html>
    <% System.out.println("Running..." + count++ + "Browser = " + request.getHeader("user-agent")); %>
    <script>
      function doStuff(button){
                     // submit via javascript
           button.form.submit();
    </script>
    <form>
      <input type="text" name="a1"/>
      <input type="text" name="a2"/>
      <input type="submit" onclick="doStuff(this)"/>
    </form>
    </html>This triggers two submits
    - one for calling form.submit();
    - one for pressing the submit button.
    To fix - remove/cancel one of the submission events, any of the following should work:
    - change the <input type="submit"> to an <input type="button">
    - change the onclick event to be "doStuff(); return false": returning false from an onclick event handler cancels the event - in this case it would cancel form submission.
    - remove the form.submit() javascript call
    Cheers,
    evanfets

  • 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

  • Auto execute query needed when forms naviagate to another formurs

    hi friends,
    i have a form based on a VIEW, it is PENDING requisitions VIEW muliti record block, when u double click on requistion_id im calling a form with CALL_FORM(form_name,NO_HIDE) there we can see complete requisition details, then u decide to approve, so we close that form, that means we are back at the calling_form, the moment we come back to calling form, i want this calling/parent form should be re-execute quaery, so that the latest approved requisition will be gone from the PENDING list. please advise me...
    Thanks in advance

    The Calling Form is suspended whist the CALLed form is active - thus any command after the CALL_FORM is not executed until you edit the form that you called.
    If you are really using OPEN_FORM not CALL_FORM then you have to take a different approach - in that case you need to use something like the When-Form-Navigate trigger

  • Extended Edit box loses the typed value when form is resized

    Extended Edit box loses the typed value when form is resized:
    Hi,
    I have added an extended edit box in a system form (SO form). When form is resized, I'm programmatically repositioning the edit box for proper alignment. When I do that, whatever has been typed in the edit box is lost (which is not yet saved).
    If I don't do repositioning of the edit box, then it is working fine - whatever the user typed remains there.
    Why is this happening, and how can I work-around this?
    Thanks for your help.
    Regards,
    Geetha
    Edited by: Rui Pereira on Dec 23, 2008 4:24 PM

    Hi Geeta,
    Try to disable the scroll of Extended Edit text.
    its in the property list of the Extended Edit Textbox's object.
    Actually its also with SBO's own extendedBoxes but whenever we mouse over on the box. it again appears but ita after saving the data.

  • Default Radio button when form opens

    Is there a way to make a radio button when form opens?
    for e.g. when we open key flexfield value sets form, key flexfield radio button is default. i want to do when i open the form value set button is defaultly checked.
    thanking you in advance.

    User personalization.
    Find the name of the field for that radio button.
    Write a when-new-form-instance personalization.
    Make the action type =property
    And make the action as default value/initial value = the value corresponding to the default you want.
    Also check http://it.toolbox.com/blogs/apps-traction-blog/oracle-form-personalization-basic-example-11936
    Hope this answers your question,
    Sandeep Gandhi
    Edited by: Sandeep Gandhi, Independent Consultant on Feb 4, 2011 11:43 AM

  • When form is generated unbound items always have maxlength=2000

    When form is generated unbound items always have maxlength=2000
    When generating forms in Designer using the Headstart templates & libraries any unbound items when viewed in Form Builder have a maxlength=2000. The width property specified in Designer for each unbound item is ignored. The item max length is subclassed from the object library setting CGSO$DEFAULT_ITEM. Can anyone tell me why this happens and any known workarounds.
    Thank You
    Eoin Smyth

    It sounds like a problem with Designer. What release are you using? The object CGSO$DEFAULT_ITEM has width = 2000 in the object library for Headstart. However, Designer should be overriding that value with the value from the repository. Please submit this same question on the Designer discussion forum and see if anyone there has experienced it. Be sure to mention which version of Designer you are using.
    Regards,
    Lauri

  • Is there a limit to how many forms are submitted at a time?

    Is there a limit to how many forms are submitted at one time? We're using FormsCentral for an employment application, and want to make sure that there won't be any problem if hundreds were accessing and submitting our form at one time.

    While we don't publish any explicit concurrent submission limitations I can tell you that we have at least one customer who collects thousands of responses over a 15 minute period. If you find that your application using thundereds of users becomes unresponsive we'd love to know about it and will investigate such occurances immediately.
    Andrew Yarborough

Maybe you are looking for

  • Problem on running a Report from a Form

    Hi, we are using Oracle Forms & Reports runtime and builder 6.0.8.22.1, Database Version is 9.2. We have a Production, Pre-Live and Testenvironment all the same Database architecture. Problem Description: We created a Form with some input fields and

  • Crashes and Freezes - too many to count in the last 48 hours

    I generally Love Premiere and the whole CC suite. But this week the program continually freezes and just stops functioning. I've restarted both the program and my computer at least 20 times in the last 48 hours... you can how this is impacting my tim

  • Installation of PSE 13 failed 2 Errors

    - Exit Code 6, 2 non fatal Errors   * ERROR  3rd party payload installer vcrredist_x86.exefailed failed with exit code 1603 * ERROR  Failed to install Microsoft Visual C ++2010 Redistributable Package (x86)  What should  I do?

  • Error installing Oracle 11gR2 on OEL 5.2

    Hi, I get an error where all the pre-requisite checks fail and get the error: PRVF-7531 Physcial memory check cannot be perfomed on node "oradbsrv1" I have 2GB of RAM and can't seem to find a solution to this problem on doing a google search.. Does a

  • Sdn Tutorial 3 - Navigation error

    Hi , I am new to web dynpro abap , when i tried to execute tutorial 3 which i got from sdn  is geeting the following error. The following error text was processed in the system I01 : Subnode NOFLIGHTSVIEW.DESTINATION FROM does not exist . From st22 d