Quick Form Question

I've been looking through the forums on how to do something with forms, and all people are talking about are dynamic form generation. I have built an "update" form without the use of the wizard. I pass it an id number via the hyperlink and when based on the id number it populates the form. The way I have it set up right now is that I have each textbox with an individual query to populate it(i.e. for the name field, it has an sql query 'select name from...') is there a better way to do this? I tried the wizard to no success. I would prefer to have one query for the region and for each element to fill in properly.
Can anyone give me some advice?
Thanks,
Scott

I put this pl/sql block in a "before header" process
for rec in (select a.name company,a.address,a.city,a.state,a.zip,
a.phone,a.fax,a.taxid,b.name contact,b.email
from company a
inner join contact b
on a.absid = b.abs
where a.absid = :p6_absid)
loop
:p6_company := rec.company;
:p6_address := rec.address;
:p6_city := rec.city;
:p6_state := rec.state;
:p6_zip := rec.zip;
:p6_phone := rec.phone;
:p6_fax := rec.fax;
:p6_tax := rec.taxid;
:p6_contact := rec.contact;
:p6_email := rec.email;
end loop;
It is not outputting to the fields. Is there anything else I need to do in order for this to work?
Thanks,
Scott

Similar Messages

  • Quick script question

    Hi all,
    Could anyone advise me if i can add anything within - header('Location: http://www.mysite.co.uk/thankyou.html'); in the script below so as the page
    re- directs back to the main index page after a few seconds ?
    Thankyou for any help.
    <?php
    $to = '[email protected]';
    $subject = 'Feedback form results';
    // prepare the message body
    $message = '' . $_POST['Name'] . "\n";
    $message .= '' . $_POST['E-mail'] . "\n";
    $message .= '' . $_POST['Phone'] . "\n";
    $message .= '' . $_POST['Message'];
    // send the email
    mail($to, $subject, $message, null, '');
    header('Location: http://www.mysite.co.uk/thankyou.html');
    ?>

    andy7719 wrote:
    Mr powers gave me that script so im rather confused at this point in time
    I don't think I "gave" you that script. I might have corrected a problem with it, but I certainly didn't write the original script.
    What you're using is far from perfect, but to suggest it would lay you open to MySQL injection attacks is ludicrous. For you to be prone to MySQL injection, you would need to be entering the data into a MySQL database, not sending it by email.
    There is a malicious attack known as email header injection, which is a serious problem with many PHP email processing scripts. However, to be prone to email header injection, you would need to use the fourth argument of mail() to insert form data into the email headers. Since your fourth argument is null, that danger doesn't exist.
    One thing that might be worth doing is checking that the email address doesn't contain a lot of illegal characters, because that's a common feature of header injection attacks. This is how I would tidy up your script:
    <?php
    $suspect = '/Content-Type:|Bcc:|Cc:/i';
    // send the message only if the E-mail field looks clean
    if (preg_match($suspect, $_POST['E-mail'])) {
      header('Location: http://www.example.com/sorry.html');
      exit;
    } else {
      $to = '[email protected]';
      $subject = 'Feedback form results';
      // prepare the message body
      $message = 'Name: ' . $_POST['Name'] . "\n";
      $message .= 'E-mail: ' . $_POST['E-mail'] . "\n";
      $message .= 'Phone: ' . $_POST['Phone'] . "\n";
      $message .= 'Message: ' . $_POST['Message'];
      // send the email
      mail($to, $subject, $message);
      header('Location: http://www.example.com/thankyou.html');
      exit;
    ?>
    Create a new page called sorry.html, with a message along the lines of "Sorry, there was an error sending your message". Don't put anything about illegal attacks. Just be neutral.
    By the way, when posting questions here, don't use meaningless subject lines, such as "Quick script question". If you're posting here, it's almost certain to be a question about a script. It doesn't matter whether it's quick. Use the subject line to tell people what it's about.

  • Urgent: is threre any term called "quick forms" in ABAP

    hello experts,
                       Is there any term called "quick forms" in ABAP. if yes please give me details regarding it.
    its very urgent.
                                                                    thnaks in advance,

    Don't think there is anything by that name in abap namespace. Have heard of Interactive forms, smartforms, and abap quickviewer
    http://www.sap-basis-abap.com/sapqu004.htm

  • HP Officejet 4630 e-all-in-one - Quick Forms

    Is there a way to disable the Quick Forms on a HP Officejet 4630 e-all-in-one ?

    Hello patch123,
    Welcome to the HP Support Forums!
    I see that you are looking to remove / disable the "Quick Forms" on the Officejet 4630, unfortunately this is not possible. The Quick Forms options is a permanent option on the printers front display.
    Regards,
    JERENDS
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • Master-Detail Form Questions

    Master-Detail Form Questions
    I have two questions in regards to master-detail forms:
    First, the form I am working on has 25 detail rows displayed to the user. If the user has more than 25 detail records for the master, I want them to be able to add more. For instance, after they enter the 25th record, I would like a pop up window to ask them if they would like to add more detail records for this master. If they select yes, then the records they have entered would be saved and then the form would repopulate with the current master record and another empty 25 detail records.
    Second, I would like the Detail Action to be set to Insert if the user moves to a new detail row and selects an item from a combo box.
    Thanks for any and all help.
    Jeremy.

    Hi Sharmila.
    Is there a way to repopulate only the Master information without populating the detail after the 'Save' button is pressed? I have written code that uses the session variables and repopulates the form with all the data that has just been saved, but I need only the master without the detail.
    Thanks.

  • Hi all .hope all is well ..A quick trim question

    Hi all
    Hope all is well ......
    I have a quick trim question I want to remove part of a string and I am finding it difficult to achieve what I need
    I set the this.setTitle(); with this
    String TitleName = "Epod Order For:    " + dlg.ShortFileName() +"    " + "Read Only";
        dlg.ShortFileName();
        this.setTitle(TitleName);
        setFieldsEditable(false);
    [/code]
    Now I what to use a jbutton to remove the read only part of the string. This is what I have so far
    [code]
      void EditjButton_actionPerformed(ActionEvent e) {
        String trim = this.getTitle();
          int stn;
          if ((stn = trim.lastIndexOf(' ')) != -2)
            trim = trim.substring(stn);
        this.setTitle(trim);
    [/code]
    Please can some one show me or tell me what I need to do. I am at a lose                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    there's several solutions:
    // 1 :
    //you do it twice because there's a space between "read" and "only"
    int stn;
    if ((stn = trim.lastIndexOf(' ')) != -1){
        trim = trim.substring(0,stn);
    if ((stn = trim.lastIndexOf(' ')) != -1){
          trim = trim.substring(0,stn);
    //2 :
    //if the string to remove is always "Read Only":
    if ((stn = trim.toUpperCase().lastIndexOf("READ ONLY")) != -1){
       trim = trim.substring(0,stn);
    //3: use StringTokenizer:
    StringTokenizer st=new StringTokenizer(trim," ");
        String result="";
        int count=st.countTokens();
        for(int i=0;i<count-2;i++){
          result+=st.nextToken()+" ";
        trim=result.trim();//remove the last spaceyou may find other solutions too...
    perhaps solution 2 is better, because you can put it in a separate method and remove the string you want to...
    somthing like:
    public String removeEnd(String str, String toRemove){
      int n;
      String result=str;
      if ((n = str.toUpperCase().lastIndexOf(toRemove.toUpperCase())) != -1){
       result= str.substring(0,stn);
      return result;
    }i haven't tried this method , but it may work...

  • Object class deployment - Basic form question

    OK, I subclass calendar object from Oracle provided standard
    object class. What do I need to deploy to use this form now
    apart from calendar.pll and my fmx. What about the object class
    from which I sub-class. Do I need to compile and deploy that
    also? How will form resolve this on run time the parent object
    class as I really did not copy, just sub class and we do not
    deploy original class? Basic form question. Thanks.

    You can set the "help" property on the field (which gives you the little "information" icon link beside the field).
    You could also try adding another field of another class above or below:
    <Display class='InlineAlert'/>
    <Display class='ErrorMessage'/>
    <Display class='HtmlPage'/>
    ..etc
    -Rob

  • Duplex Printing w/ Quick Forms

    Is there a way to enable duplex printing with Quick Forms so that forms (such as school paper) are printed on both sides of the page?
    Thanks.
    Steve

    stestardi:  
    At this time an automated option to print duplex with Quick Forms is not available.  
    As noted, you can print on both sides manually, by printing out a quick form item on one side of a page, re-insert that page in your paper tray with the blank side down (printed side up/visible to you) and print a second quick form item on the blank side. 
    I am an HP employee.

  • HP Quick Forms won't print on my HP ENVY 7645

    Most of the apps work on my HP ENVY 7645.  However I'm not able to print anything on the HP Quick Forms.  Any solutions? 

    Hi @trissak,
    Welcome to the HP Support Forums.  I gather that you are unable to print using the HP Quick Forms printable found on the front of your  Envy 7645 printer.
    Once you have chosen the form that you would like to print (for example 5mm graph paper) you should see an example on the screen with a blue “Print” button in the lower right hand corner.  Before pressing the print button, please tap on the example form and hold until you see the number of copies choice appear beside the example.  Once the number of copies is chosen, please tap on the blue print button.  The form should then print. 
    Please let me know the outcome.
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • Acrobat Forms Question

    Hi there,
    Quick question on forms, I created some forms in Acrobat, but when the user fills them out, they can't save and email them, it doesn't let them, how do I remove this protection?
    Thanks!

    Acrobat 7.0.9 also lets your users reply to forms with User Rights Enabled (albeit a bit more work in the process in Acrobat 7.0.9 than in 8 ). But it works.

  • Enrollment form question

    Hi,
    I have a quick question (or maybe) two about sending enrollment form. Do I have to wait for enrollment form to be accepted, before submitting application ? I've read already in some other post that I do not have to, is that right ? As far as I understand, the enrollment form will be needed only in case, when total value of all sold copies exceeds 100$, right ? And finally, what about Intel AppUp, does it work the same way as for Marketplace ?
    Thanks for any clarification and answers to these questions!
    best regards
    Mateusz

    Hi Mateusz,
    Enrollment form is not required for free application. If you are submitting a paid application, you can submit your enrollment form after publishing the application. You need to ensure that you have submitted the enrollment form in order to get paid for your application that you distribute through AIR Marketplace or through your own website.
    Both Intel's and AIR Marketplace's payment policies are covered in the InMarket documentation: http://learn.adobe.com/wiki/display/InMarket/07+Settlement+and+Payment
    I would highly recommend you to go through it as it covers detailed answers to all your questions.
    Let me know if you have any further questions.

  • Manually tabular form question

    hi all
    i built a manually tabular form.
    i want that this tabular for will used only to update , and without the option of insert new row .
    two questions i have here according to the document :
    there is something called
    Adding Optimistic Lockingoptimistic locking
    is that possible to do it if it's only an update form?
    i've tried to do it and not really succeeded.
    second question is about collection
    again is this possible to do it if i built only an update form ?
    thanks for quick response

    Hi Naama,
    >> i've created the package , it's show like it done but then i cannot see it.what seems to be the problem ?
    I have no idea, but this is definitely something local in your database. Just drop the package and re-create it. If the Object Browser doesn’t show you the package, try to use SQL*Plus.
    >> what is the meaning of this package?
    is this package active only in the tabular manually form ?.
    This is a regular PL/SQL package, and with the proper privileges, can be used anywhere on the database, with or without APEX connection.
    This package is “special” because it’s includes all you need to manage Optimistic Locking, which is characteristic to Web based applications. Other than that, you can use it whenever you need to manipulate the related table(s).
    >> the apex know in which part to relate in the package right ?
    APEX don’t know anything. When you are building a manual tabular form, it is also your responsibility to construct the proper DML processes. If you want your tabular form to support insert/update/delete you’ll need to construct three processes, each with the proper DML statement, each condition by the proper button. In your private case, as you need to support update only, you’ll need to build only one DML process (PL/SQL anonymous block), which will call the proper update procedure from the package.
    >> thank you
    Naama
    Wow! You signed your name correctly :) You should amend your handle to reflect that.
    Best Regards,
    Arie.

  • Please Help me! Adobe Acrobat PDF fillable form questions!Desperate!!

    Hello!
    Hopefully can quickly answer these questions because I need to get this out by tomorow night :/ I am new to creating Adobe Acrobat Fillable forms, my yearbook adviser wanted to make the yearbook/journalism application a pdf fillable form so I went with the flow. Now I am having issues. I created it with Adobe Acrobat Pro 8.0 if that helps
    1. How do I get individual checks? they all check on the same answers, I need individuality lol. I know radio buttons is jus one chance so thats why I decided against them
    2. How does one do a submit button exactly?
    3. Somehow, I got to the step to distribute the forms but it says error licensing issue? Any ideas?
    Iplease give all an any thoughts on my questions you have no idea how much I appreciate any help!    

    If using check boxes, you need to give each a different field name if you want them to behave independent of one another. You can create a group where at most on in the group can be selected, similar to a radio button group, by giving each the same field name but different export value.
    For #2, it depends on the details of what you want to do. A PDF form can be set up to submit to a web server or to initiate an email with the form data for the entire form attached to the email. If you want Reader users to be able to save the filled-in form and/or submit the entire filled-in PDF, the form has to be Reader-enabled in Acrobat.
    For #3, please provide the exact error message.

  • How do I add a Handwritten Signature to my form? And other Form Questions

    Hi there,
    I'm making a form for parents who's kids are going to drive a motorcycle for the first time.
    Now I want to use my laptop with touchscreen for people to fill it in.
    the normal boxes (name, adres etc) with keyboard.
    But the important part is the SIGNATURE which has to be handwritten.
    It's for insurance and legal autorisation from the parents that the kid is allowed to drive and they know the risks and rules.
    How do I add a box in which parents can sign.
    Or is there another solution to make it legal?
    Another question now I might have someones attention:
    After a parent is done filling the form and presses OK or DONE
    Is there a way a parent can choose to use a new blank form or the same form again without date of birth/name/sex
    so he/she can fill the forms faster for the rest of the kids?
    OR
    Is it possible to let a parents say I have 4 kids (with a choice menu)
    and the parent wil get 4 name/age/sex openings and the rest of the form will stay the same?
    And
    Is it possible to export the whole bunch into a excel for easy usage
    Thanks in advance
    and all tips are welcome!
    Love
    Kim

    Just to share some info for this:
    I used to do this sort of thing quite a bit.  What I used was a scanner to scan my hand written signature to an image file.  I would then paste the image file, which supported transparency, over the signature line.  More recently, I used Photoshop to draw a signature saving in a transparent image file.
    Just to warn you though:  you are asking for legal advice, and you are not going to get that here.  I would consult with an attorney to find out exactly what is legal.

  • Urgent help with quick translation questions

    Hello,
    I am somewhat new to Java. I have a translation to hand in in a few hours (French to English). Argh! I have questions on how I worded some parts of the translation (and also if I understood it right). Could you, great developers, please take a look and see if what I wrote makes sense? I've put *** around the words I wasn't sure about. If it sounds strange or is just plain wrong, please let know. I also separated two terms with a slash, when I was in doubt of which one was the best.
    Many thanks in advance.
    1) Tips- Always ***derive*** the exceptions java.lang.Exception and java.lang.RuntimeException.
    Since these exceptions have an excessively broad meaning, ***the calling layers will not know how to
    distinguish the message sent from the other exceptions that may also be passed to them.***
    2) The use of the finally block does not require a catch block. Therefore, exceptions may be passed back to the
    calling layers, while effectively freeing resources ***attributed*** locally
    3) TIPS- Declare the order for SQL ***statements/elements*** in the constant declaration section (private static final).
    Although this recommendation slightly hinders reading, it can have a significant impact on performance. In fact, since
    the layers of access to data are ***low level access***, their optimization may be readily felt from the user’s
    perspective.
    4) Use “inlining.”
    Inlining is a technique used by the Java compiler. Whenever possible, during compilation, the compiler
    copies the body of a method in place of its call, rather than executing a ***memory jump to the method***.
    In the example below, the "inline" code will run twice as fast as the ***method call***
    5)tips - ***Reset the references to large objects such as arrays to null.***
    Null in Java represents a reference which has not been ***set/established.*** After using a variable with a
    large size, it must be ***reassigned a null value.*** This allows the garbage collector to quickly ***recycle the
    memory allocated*** for the variable
    6) TIPS Limit the indexed access to arrays.
    Access to an array element is costly in terms of performance because it is necessary to invoke a verification
    that ***the index was not exceeded.***
    7) tips- Avoid the use of the “Double-Checked Locking” mechanism.
    This code does not always work in a multi-threaded environment. The run-time behavior ***even depends on
    compilers.*** Thus, use the following ***singleton implementation:***
    8) Presumably, this implementation is less efficient than the previous one, since it seems to perform ***a prior
    initialization (as opposed to an initialization on demand)***. In fact, at runtime, the initialization block of a
    (static) class is called when the keyword MonSingleton appears, whether there is a call to getInstance() or
    not. However, since ***this is a singleton***, any occurrence of the keyword will be immediately followed by a
    call to getInstance(). ***Prior or on demand initializations*** are therefore equivalent.
    If, however, a more complex initialization must take place during the actual call to getInstance, ***a standard
    synchronization mechanism may be implemented, subsequently:***
    9) Use the min and max values defined in the java.lang package classes that encapsulate the
    primitive numeric types.
    To compare an attribute or variable of primitive type integer or real (byte, short, int, long, float or double) to
    ***an extreme value of this type***, use the predefined constants and not the values themselves.
    Vera

    1) Tips- Always ***derive*** the exceptions java.lang.Exception and java.lang.RuntimeException.***inherit from***
    ***the calling layers will not know how to
    distinguish the message sent from the other exceptions that may also be passed to them.***That's OK.
    while effectively freeing resources ***attributed*** locally***allocated*** locally.
    3) TIPS- Declare the order for SQL ***statements/elements*** in the constant declaration section (private static final).***statements***, but go back to the author. There is no such thing as a 'constant declaration section' in Java.
    Although this recommendation slightly hinders reading, it can have a significant impact on performance. In fact, since
    the layers of access to data are ***low level access***, their optimization may be readily felt from the user’s
    perspective.Again refer to the author. This isn't true. It will make hardly any difference to the performance. It is more important from a style perspective.
    4) Use “inlining.”
    Inlining is a technique used by the Java compiler. Whenever possible, during compilation, the compiler
    copies the body of a method in place of its call, rather than executing a ***memory jump to the method***.
    In the example below, the "inline" code will run twice as fast as the ***method call***Refer to the author. This entire paragraph is completely untrue. There is no such thing as 'inlining' in Java, or rather there is no way to obey the instruction given to 'use it'. The compiler will or won't inline of its own accord, nothing you can do about it.
    5)tips - ***Reset the references to large objects such as arrays to null.***Correct, but refer to the author. This is generally considered bad practice, not good.
    Null in Java represents a reference which has not been ***set/established.******Initialized***
    After using a variable with a
    large size, it must be ***reassigned a null value.*** This allows the garbage collector to quickly ***recycle the
    memory allocated*** for the variableAgain refer author. Correct scoping of variables is a much better solution than this.
    ***the index was not exceeded.******the index was not out of range***
    The run-time behavior ***even depends on compilers.***Probably a correct translation but the statement is incorrect. Refer to the author. It does not depend on the compiler. It depends on the version of the JVM specification that is being adhered to by the implementation.
    Thus, use the following ***singleton implementation:***Correct.
    it seems to perform ***a prior initialization (as opposed to an initialization on demand)***.I would change 'prior' to 'automatic pre-'.
    ***this is a singleton***That's OK.
    ***Prior or on demand initializations***Change 'prior' to 'automatic'.
    ***a standard
    synchronization mechanism may be implemented, subsequently:***I think this is nonsense. I would need to see the entire paragraph.
    ***an extreme value of this type******this type's minimum or maximum values***
    I would say your author is more in need of a technical reviewer than a translator at this stage. There are far too serious technical errors in this short sample for comfort. The text isn't publishable as is.

Maybe you are looking for

  • HT201272 cannot dowload message appears when tried to download tv episode from iCloud

    trying to download tv episodes to device but 'cannot download' message appears when tried to. what can I do?

  • Need Help on blue screen

    there, Please Dear I have a problem in my laptop that really bothering me and I can't find a true solution, and also can't risk to try a friends suggestions, so may you please help me and here's problem

  • Connecting to the Third Party Applicatin through Portal

    Hi, Does anyone know how do we connect to the Third Party Application through Portal? WHat technology EP uses to connect to the third party application and retrieve data from the system to display? ALso if i have 2 application connected to the portal

  • HDMI does not appear in playback

    I have no audio when I connect my HP Pavilion dv4-1435dx Entertainment Notebook PC to my Panasonic TV via a HDMI cord.  The picture is great, but audio will only go through my laptop speakers.  I have updated all of my devices, I have tried using Int

  • HELP! PDF objects - How to create a program line object?

    Hi Experts, I would like to know how to create a Program lines object (icon cog wheels). I need to create additional coding inside the context tab but when I try to right click on a folder --> create -->graphic,address,text,alternative...single recor