Htmldb submit processing question

Hello,
I have a form that I build within htmldb application page region section. The code essentially uses htp.p to build multi user form comprise of text boxes, check boxes, drop down lists. When I submit form it should call a plsql web toolkit procedure. However I get the following error:
[Wed Dec 15 15:51:11 2004] [error] [client 134.78.44.15] [ecid: 1103147471:134.78.44.15:3088:3292:248,0] mod_plsql: /pls/htmldb/wwv_flow.accept HTTP-404
wwv_flow.accept: SIGNATURE (parameter names) MISMATCH
VARIABLES IN FORM NOT IN PROCEDURE: P_DEPTNAME,P_FIRSTNAME,P_LASTNAME,P_EMAIL,P_COMPANYNAME,P_ADDRESS,P_CITY,P_STATE,P_ZIP,P_COMMENTS
NON-DEFAULT VARIABLES IN PROCEDURE NOT IN FORM:
here is small example of form:
htp.prn('
<html>
<form action="contactlist2">
<center><p><H1>Please fill the form below</H1></center>
<p><b>Please fill the form below to to contact us. The bold fields are
required</b>
<table width="575" border="0" cellspacing="10" cellpadding="0"
bgcolor="#F3F8FF">
<tr>
<td>Department:</td>
<td colspan="3">
<select name="p_deptname">
<option selected>Choose a department</option>
<option value="customerservice">Customer Service</option>
<option value="marketing">Marketing</option>
<option value="technicalsupport">Technical Support</option>
<option value="webmaster">Webmaster</option>
</select>
</td>
</tr>
<tr><td><input type="submit" value="Submit"></td></tr>
<tr><td><input type="reset" value="Reset"></td></tr></table>
</form>
I cant figure out what the problem is...

Please can you post your solution.
I am trying to do something similar: I have an existing application that uses htp to display Forms. I want to 'wrap' that application with an HTML DB application so that I can develop new functionality using HTML DB, without having to throw away the existing pages.
I can separate out the htp calls so that the only <FORM> is the HTMLDB one, and I can set a variable so that I know what the action of the original form was. But I can't get past HTML DB checking that INPUT items match it's expected page definition.
Recreating all the existing Forms in HTML DB is probably a non-starter for me.
Regards
Roger

Similar Messages

  • Popup a window in the after-submit process

    I have created a java script function in html header of the page as following:
    <script language="JavaScript" type="text/javascript">
    function myPopup (p_search) {
    var val1 = document.getElementById(p_search).value;
    var url;
    url = 'f?p=&APP_ID.:3:&APP_SESSION.::::P3_ENAME:' + val1;
    w = open(url,"winLov","Scrollbars=0,resizable=0,width=700,height=400");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    </script>
    I want to call this function in one after-submit process like this:
    begin
    select name into p_name
    from vehicle
    where id = 32;
    if SQL%ROWCOUNT = 1 then
    javascript:myPopup(p_name);
    end if;
    exception
    when others then
    null;
    end;
    When I apply the changes in the application builder, I got this error:
    1 error has occurred
    ORA-06550: line 7, column 16: PLS-00103: Encountered the symbol "" when expecting one of the following: := . ( @ % ; The symbol ":=" was substituted for "" to continue.
    How do I call the java script functions in the page process? What did I do wrong?
    Any help will be greatly appreciated.
    June

    O.K. I think I got it working now. See
    http://htmldb.oracle.com/pls/otn/f?p=31517:50
    There is an on submit process multiplying the number you enter by two and populating the target item. The process is running only if there is number entered. If you enter any other string a pop-up window will show you an error message. The approach is simple:
    1. create a process which does something on submit, if the supplied parameter is O.K. and nulls if not,
    2. created a branch to an empty page which fires on submit and it is conditional - using process exception(s),
    3. on the empty page there are two onload javascript calls:
    onload="javascript:popUp2('f?p=&APP_ID.:201:&SESSION.::&DEBUG.:::', 700, 700);javascript:redirect('f?p=&APP_ID.:50:&SESSION.::&DEBUG.::');"
    the first one is opening the required pop-up page and the next one is redirecting back to where we started.
    I don't know if there are any security issues with this approach. It is not so clean, since you need to create an additional empty page. However, it saves some coding of extra scripts.
    What you are saying I also had in mind.
    Denes Kubicek

  • Controlling Session State and Submit Processing

    I am trying to gain a fundamental understanding of how to control submit processing and session state, etc.
    For example, I have a popup lov that lists names and returns id for the parent record. When the user make the selection using this pop lov, I then have an id that I want to use to lookup the default value for another field.
    How do you submit a page for re-rendering (i.e, you have condition expressions referencing values that the use has set) without triggering the auto dml and page branch?
    For example, I have a form for specifying tns names with 2 buttons, 'Advanced Config' and 'Basic Config'. The idea is to hide/show items corresponding to basic or adv. config options, etc.
    My first approach was to have the buttons do a redirect to the same page, setting P5_USE_ADV_CONFIG_YN to Y or N without clearing the cache. When the page refreshes, the conditional rending has occured as desired (i.e., I set the condition on my form items to reference P5_USE_ADV_CONFIG = Y or N, etc.), but user's data values have been lost since the record was reloaded from the database.
    So..I tried putting a condition on the fetch procedure to prevent the record from being re-read. However, this left all the fields empty which indicates that the item's session state has been completed cleared! Huh? I didn't want ask for or want this behavior. Hmmm.
    So, I start thinking that the persisted session wasn't updated since I didn't do a submit and so when the page was requested, it behaved as it should, but not what I had in mind. THUS...I believe I need to submit the page and prevent the auto-dml and page branching afterwards....but how? I feel that I am missing something very fundamental here and that the answer may also help me with other related questions:
    * How does the confirm delete examples work? How is the processing stopped when the user presses cancel?
    * How can you do validations and stop dml processing without losing the user values?
    * How can you display and error page and then return to where the user was with the values still present?
    * How can I do a secondary sql value lookup based on the users selection in a popup lov? (User selects a Database/DbID - then I want to lookup host using DbId)
    I haven't been successful understanding this from the manuals, but someone can point me to some material that explains submit processing, redirects, etc. I would be happy to do some more digging.
    Thanks greatly in advance.

    Thanks Scott,
    I may be being dumb here but I don't see how that would help...
    P250_PROJECT and G_PROJECT are currently kept in sync by app logic. Whichever is used to drive, if the page is rendered from cache then the app logic is not executed, so the rendered page contents are not those keyed by P250_PROJECT, as illustrated in steps 1-4 of the problem above.
    The user sees X, the session items say Y. The engine doesn't know what the user is seeing.
    when page P is POSTed, its hidden item P250_PROJECT should always be used to derive the application item G_PROJECT. Then whether the page was pulled from cache or rendered anew via a click from the sidebar link, the project ID is determined by the contents of that page.
    As I said above I tried this, with the 'Edit' branch set to:
    Set these items: G_PROJECT
    With these values: &P250_PROJECT.
    but it makes no difference. The project ID is not determined by the rendered page contents - the engine gets the value of P250_PROJECT from session state.
    I can code the 'Edit' pages such that they check permissions and if necessary redirect back to p250 (conditional before-header branch), but that's a clunky cure rather than the prevention I was hoping for.
    Please tell me if my understanding is incorrect.
    jd

  • Multiple submit processes

    Hi:
    APEX 4.1
    I have a page with 2 regions. The first is built with SQL using the APEX ITEM API. The second is a form built with the table form wizard. That wizard created a submit process. I have a custom PL/SQL package to handle to first region.
    Question: How do I set things up so that the first region gets processed and then the second?
    Hope I am clear. Thanks for any suggestions.

    user11987733 wrote:
    Hi:
    APEX 4.1
    I have a page with 2 regions. The first is built with SQL using the APEX ITEM API. The second is a form built with the table form wizard. That wizard created a submit process. I have a custom PL/SQL package to handle to first region. Do you have a PL/SQL process to call this custom package? If Yes that means basically you have 2 processes.
    In APEX the page processes are executed in a sequential order based on their sequences, so just amend the first process and make sure you give a lower seq number that second one.
    >
    Question: How do I set things up so that the first region gets processed and then the second?Once you have done that you can verify the same under Utilities > Page Events

  • How can I navigate to a new page when after-submit process running proc

    I have a long running procedure and would like to provide the users with an animated gif to indicate progress that updates a description line to indicate the current step in the process.
    Currently I have a couple pages in this application in which a stored procedure in a package is called which performs a long-running process which updates progress in a table. These processes have a single parameter argument. In these cases I call the procedure via the Job Scheduler as part of my After-Submit process and the page navigation jumps to another page which shows a graphical representation of % complete based on the progress updates in the table and refreshes itself every 5 seconds until the job is complete. This works fine.
    I am now running into an issue where I have a more complex set of processes, with a number of parameters. To resolve this I used the same process as above, however, I first check to see if the process exists in the Job Scheduler, if not I create it. I then set all of the parameters and tell the job scheduler to execute the procedure. This should work similar to the process I am running on the other pages, however, in this page where I have multiple parameters and send an execute command rather than an execute immediate on job creation, the system runs the entire job prior to running the page branch, as a result the end user is stuck on a hanging page with no user feedback for two minutes after pressing submit.
    I am looking for how to call the procedure and have the branch execute so a progress screen can be viewed. I am not committed to the use of the job scheduler if there is a better way.
    Any help is greatly appreciated.

    The process involves
    (1) a detail table filled with phone usage data, approximately 175,000 records per month.
    (2) a table that stores what various combinations of codes in the detail table translate to for types of calls or data transmissions
    (3) a summary table for the months calls and billing
    (4) the E-Business Suite.
    (5) A GTT for temporary crossreference storage
    (6) A GTT for reporting data
    I have a parameter page where the user selects what data they are looking for and then submits it to generate the report.
    The generation of data is a four step process.
    (A) Retrieve the Code Combination ID's for the phone usage specified in the parameters from the summary billing table(1) into a GTT(5)
    (B) Query the department and Account Code Block Details from E-Business Suite(3) (using dblink) for the CCID's in step one and add to the GTT(5)
    (C) Run a query which uses the detail table(1), a function against the crossref table(2), and the crossreference GTT(5) to create the output in the report GTT(6)
    (D) An ApEx page process that counts the output and returns to a page without Export to Excel for over 65000 records or with Export for under.
    The parameter page is an ApEx page with some text fields, a couple date fields, and some checkboxes. An after submit process calls a packaged procedure which calls separate procedures for (A), (B), and (C), the page then branches to a page that shows an animated gif and current step of the process {this is what is not working right now}. Once the task completes this page branches as per (D) to a page that shows all the contents of the GTT report(6).
    The process works successfully with the exception that instead of going to a page to show the process the system simply hangs on the parameter page after the submit is pressed until the processing is done and then goes to the processing page just long enough to branch to the report page.
    I am beginning to think that I should alter the design to not use the GTT, but include the username as a field in the output table with a binary index on it for speed so that I can use the job scheduler to run a separate session and hence enable the processing page. The processing page is important as the query can take anywhere from 2 minutes to 2 hours to generate the report depending upon the parameters.

  • On Submit process not firing -report (PL/SQL function returning SQL query)

    Can anyone suggest possible causes / solutions for the following problem?
    I have a report region that uses a PL/SQL function returning SQL query. The report allows the user to update multiple fields / rows and then click a button to submit the page which should run the On-Submit process to update the database. However the process does not run and I get a 'HTTP404 page cannot be found' error; and when I navigate back using the Back button I cannot then navigate to any other page in my application without getting the same error. The button was created by a wizard selecting the options to submit the page and redirect to a (same) page. The button does not actually have a redirect in its definition but the wizard created a branch to the same page which should work and the button has the text 'submit as SUBMIT' next to it so it appears to be set up correctly.
    I have recreated this page several times in my application and I cannot get the On-Submit process to run. However I have created a cut down version of the same page in the sample application on apex.oracle.com at http://apex.oracle.com/pls/otn/f?p=4550:1:179951678764332 and this works perfectly so I am at a loss to understand why it does not work in my application. I cannot post any part of the application itself but if anybody would like to check out page 30 of the sample application (Customer Update Test tab) updating the surnames only, using credentials ja, demo, demo this is pretty much what I have got in my application.
    Any ideas would be much appreciated?

    Thanks for the suggestions guys. I have now identified that the problem goes away when I remove the second table from my report query. The original report query retrieved data from two tables and the process was updating only one of the tables. I thought I had approached the task logically i.e. first get the report to display the records from the two tables, then get the process to update the first table and finally to modify the process further to update the second table.
    Can anyone point me to an example of multiple row updates on multiple tables using a PL/SQL function returning an SQL query?

  • I don't want to submit a #@$%^& question! I just want to search the forum for answered questions.

    I don't want to submit a #@$%^& question!
    I just want to search the forum for answered questions.
    Why is Apple such a freaking control freak?
    Hey Apple—quit fixing s**t that isn't broken!

    You could use google.  If you want to only search these discussions forums use the following syntax in a google search:
    whatever you are searching for site:discussions.apple.com
    Update:
    Why is this questio/discussion in Cinema Displays when it should have been in Using Apple Support Communities?

  • An error occurred during the submit process. Unknown failure

    in forms central, when i submit a form via reader v11 the error An error occurred during the submit process. Unknown failure. The form can be submitted with adobe professional 11.

    Hi,
    would you please describe the error message or  insert a image to here? and if you can share your pdf form to me, that's would be very help us to reproduce and resove the issue. my email: [email protected]
    Thanks,
    Guanshuai

  • After submit process vs. javascript

    I'd appreciate it if you all could help me with this problem. I've searched this forum and google for a resolution but have not found it yet. I'm a newbie with APEX so please bear with me. The issue is that I want a button - could be a delete or submit - to be disabled after it is clicked. Additionally I want a process (on submit after computations and validations) to execute when the button is clicked. The dilemma is that the javascript disable button function is called using a URL button (create a button in a region position). My guess is that the on submit process is not fired because the focus goes to the URL (disable button function). Is there any way to call a javascript from non-URL button (Create a button displayed among this region's items)? Or perhaps get the process to run with a URL button? So my issue is I need both the after submit process to run and the javascript to disable the button to run after the button is clicked. Suggestions appreciated.
    Kirk

    Like I indicated I'm a newbie to this web programming. And at this point I'm just learning APEX for possibilities here and because management wants a presentation on it at one of our upcoming meetings.
    After the branch to the URL - which my understanding would be to the same page - it would come up without a record until the user selects one from some mechanism like an LOV. And with no record displaying I'd want the Delete (and Update) button disabled until a record is selected. And now that I'm writing this it has me thinking I need to approach this from a different angle. I need the page to come up with the Delete and Update button already disabled and when a record is selected then (somehow) the buttons should be enabled. Do you think this a more viable approach?

  • PL/SQL After submit process - best practice?

    I have after submit process which fires PL/SQL procedure. In this PL/SQL procedure I do some updates and would also like to generate some XML output and send it to browser so that user can save it in file. What I'm asking is, what is proper way to handle this.
    I realize that starting procedure from "after submit process" is too late. If I understand correctly, the page is already rendered at that time so htp.p output from PL/SQL procedure in not showing (but procedure is executed). So I create branch to PL/SQL procedure (after button is pressed). That way procedure actualy creates new window and I can use htp.p functions. Altough now I have trouble closing window but I hope I could manage this.
    Is there some other, better way to do export? Maybe javascript popup and calling procedure from there? Any suggestions?
    Thanks!
    Marko

    How should I send this content to user so that his browser recognize this as a file (for opening or saving)?
    Put that code in a onLoad process similar to how Scott shows at http://spendolini.blogspot.com/2006/04/custom-export-to-csv.html
    With this in place, when you issue a show request on that page, your generated content will be offered by the browser using a open/save dialog box.

  • WAAS Application Requests - Process Question

    Non Technical Process Question
    We all have forms we have our users complete when a firewall rule or change is needed.  You may even have a similiar documents for when load balancers or DNS changes are required.  Does anyone have document they can share that outlines what pieces of information are needed for intergrating applications into WAAS?  What about ongoing changes?
    Source, destination and TCP port information is really a very small portion of the what needed to maintain a clean a defined methodolgy within the WAAS manager.  Does anyone have an example or can describe how you collect the initial information to set up WAAS but how do you keep track of changes that may be needed as the application charaterics change or the server farm expands horizontally?
    Thanks - Sam

    Sam,
    the general answer for detailed information on how to configure WAAS for certain applications is described here:
    http://www.cisco.com/en/US/docs/app_ntwk_services/waas/waas/v501/configuration/guide/policy.html
    In general, WAAS comes preconfigured for the most widly used applications in the industry.
    In order to understand, which configuration is necessary for a new application, one needs to understand the basic options WAAS offers.
    These are two options:
    1) Use an Application Optimizer (AO) if you need some dedicated protocol know how. ( e.g. (e)MAPI, CIFS, SSL, HTTP, ICA, to name some)
    2) Generic TCP traffic is optimized using TCP Flow Optimization (TFO), Data Redundancy Elemination (DRE) and Lempe Liv (LZ) compression.
    The in terms of processes, the question is:
    1) Is there a policy preconfigured for the new application?
         a) yes
              If an AO is used, does the AO need configuration? ( example: SSL AO requires certificates)
              Do we have specialities which require further fine tuning? ( Answer is mostly: no, Example: non-standard ports)
         b) no
              You define what you need for the application based on the protocol characteristics.
              If you have defined these characteristics you can choose one of the AOs, or define which of the "generic" options fit the traffic. For example, for traffic that is already compressed, it does not much benefit from LZ, so choosing only TFO and DRE. Another example is traffic that has not much of dublicate data, perhaps it does not benefit a lot from DRE, so you configure TFO only.
    Does that answer your question?
    Thanks,
    chris

  • Question related to my previous "background process" question.

    Hello Folks:
    Can I start a "Notification Service Subscriber" process through the
    normal startup procedure for other servers---i.e. by adding it to the
    config(ubb) file. If so, can I implement the background process as two
    different CORBA servers calling each other asynchronously to accomplish
    the work. Please let me know if there is any other way to accomplish
    what I have stated in the "background process" question.
    Thanks,
    Ram Ramesh
    678-358-3581

    Go to your forum preferences and set the email options.  You may also need to unsubscribe from forums / topics you are currently subscribed to.

  • Error during the submit process

    I am trying to download an eBook for course, and it does not let me log in with my network username and password. It gives me an "error during the submit process".
    I have charter internet, and we contacted them to make sure my signal strength was strong enough. Reset password. I am using Adobe Reader X.

    I am also facing same error.
    Please let me know if you have resolved problem.

  • When I try to submit a form I get an error massage (An error occurred during the submit process. There was a problem connecting to the server.) it seems I only get this message on a PC

    When I try to submit a form I get an error massage (An error occurred during the submit process. There was a problem connecting to the server.) it seems I only get this message on a PC

    Read the user manual that came w/the scanner and/or contact HP Support.
    http://support.apple.com/kb/PH14141 OS X Mavericks: Reset the printing system 
    http://support.apple.com/kb/HT3669 Printer and scanner software available for download 
    A scanner driver you may wish to consider:  VueScan Scanner Software

  • Submit all questions at the AT THE END OF THE TEST  -  NOT each question separately

    Helo.
    I find some problem. I think captivate is very useful tool
    and user friendly but i have one urgent problem: i would like in my
    course all questions have 'back' and ' forward' (eventualy this may
    be 'skip') button and the approve/resume/submit button was at the
    end of the course and it would take affect to all questions (i mean
    - then all questions would be submitted and student would not have
    to submit each question separately). IS IT POSSIBLE TO MAKE IT IN
    ANY WAY ???
    I thought that i could remove submit button from question
    slides and place it with the last question but i can't remove it
    from slides.
    Anyway i would be glad if somone would help me because i
    cnannot find any solution of this problem in captivate's help.
    Thanks in advance for all ideas and proposed solutions
    Regards: Simon

    Hi templaaar
    I am not the world's greatest on Captivate, but my
    understanding is that each question has to be submitted seperately
    and I do not know of any way in which to submit all the answers at
    once.
    Sorry mate
    Andrew

Maybe you are looking for

  • In Home Agent problem

    hi, I am running IHA on my Windows Vista Ultimate x64 system & I keep periodiatly getting an error box being displayed with the following info: Script: C:\Program Files(x86)\Verizon\IHA_MessageCenter\CmdVBS.vbs Line:   2 Char:  1 Error:  Library not

  • What is the "Audio line in" port for?

    I have a microphone headset but plugging the mic cord into the audio line in port does nothing. Similarly, when I tried plugging a cable from the "tape out" of my audio amplifier into that port for dubbing purposes, nothing happened. In both cases I

  • HDCP error: can't play iTunes movies or netflix with yosemite

    I get this error message: This movie can be played only on displays that support HDCP (High-bandwidth Digital Content Protection). The movies won't play through Quicktime either. I get a similar error from Netflix and I've tried switching to Silverli

  • Windows 7 Home Premium Upgrade 64 bit (old version 2009)

    How or where can I download windows 7 home Premium Upgrade 64 bit. Thank you in advance  I only have the 32 bit and product key

  • SMTP server list empty

    Hello all, After the latest update (10.10.3 Supplemental Update) and restart, the SMTP server list from my Mail is completely empty.  Is there any way to get this back without having to reconfigure all my accounts? Thanks in advance, Nishita.