DoSubmit in textfield_autofilter.js

Hello,
I want to add a doSubmit in the textfield_autofilter.js.
Since I don't have any Javascript experience, I was hoping someone could help me where the code can be placed best.
What I am trying to achieve :
Run a oracle reports with parameters:
I Created region with fields that act as parameters and a button which opens a URL to run the report. The parameter fields need a submit else the fields are not filled.
This works ok for most of the items using onchange="javascript:doSubmit();"
I have created one item which uses autofilter.js. I need the catch the value in that field.
Tried it with form element attributes onchange="javascript:doSubmit();" but this does not always returns the correct value.
Example return values:
Key Enter : Ast
Select list gives : Astrid
when Astrid is selected with the mouse the value Ast is returned.
I thought maybe I can put the doSubmit in the javascript......
or if there are any other suggestions please let me know.
If I am not clear please let me know.....
Thx,
Astrid

:) ...and do I get any points for that? ;)
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------

Similar Messages

  • APEX 3.1.2 javaScript:doSubmit don't able navigate BUG

    Hi everybody,
    We're working with APEX 3.1.2.
    We're not able to navigate from page to page with the Thumbnails.
    It seems that the javaScript:doSubmit doesn't execute.
    In our example we want to go from 'Généralités' page to 'Paramètres' page:
    javaScript:doSubmit('T_PARAMÈTRE');
    Can you help me ?
    Thanks & Regards.
    Eric.

    HI everybody,
    I apologize, when I say ``Thumbnail`` it means ``Tabs``.
    Anybody had never get this bug yet ?
    Thanks & Regards.
    Eric.

  • HTMLDB 1.6 / doSubmit issue

    My original problem:
    I have numerous instances where I have a form region at the top of the page, and then a report at the bottom of the page. For instance, the top of the page might be header information, and the bottom of the page detail information.
    Within the report, I have buttons labelled Edit, View, etc. In the SQL I set them up as
    SELECT STUFF, OTHER STUFF, null as VIEW_LINK, null as EDIT_LINK from...
    Originally I set the buttons up to branch to another page, setting the primary key of the detail line on the new page.
    The problem that arose is that when doing it this way, the original page is not submitted. So, if a user changes information in the form part of the page, and then clicks on a View/Edit button it redirects without submitting the current page.
    OK, quick workaround:
    I changed the buttons to each have a URL redirect, along the lines of this:
    javascript: document.getElementById('some hidden element').value = #SEQ_ID#; doSubmit('EDIT_ROW');
    Then, on the page I put a branch to my Edit/View detail page, setting the primary key on the target page to the value within the item in document.getElementById() above. It also clears the cache on the target page.
    This seemed to work fine, submitted the current page, set the primary key value, and redirected to the Edit/View detail page successfully.
    New Problem:
    After going into production with this, I found out this works 99.5% of the time. 0.5% of the time there seems to be a timing issue, where the branch executes before the session state is fully saved. So, the branch sets the target primary key on the detail page to null instead of the value that is set in document.getElementById().
    I logged a Service Request, and they suggested I post a sample on the Oracle APEX installation. I did, but, apparently in 2.x this does not work AT ALL! The value NEVER gets set correctly.
    Finally, the technician on the Service Request suggested I post my questions here.
    My current workaround:
    On the target page, I check the value of the primary key. If it is null, I disable all actions and display an error message that says, basically, go back and try the same thing again.
    My Questions:
    1) What is an acceptable workaround within the context of my requirements (e.g. set a primary key value based on the row selected in the report, redirect to another page with that primary key, submit the current page) for 1.6?
    2) What is an acceptable workaround in APEX 2.x?
    Thank you in advance for any help you can provide!

    Post a link to the application on apex.oracle.com. Sounds like this should work. Just to be sure, you could create a computation or process that sets the ID on the second page to the value submitted. Then your branch can just branch to the second page without needing to set anything. It is OK to repaginate, but don't clear the cache on page 2. If you need to clear the cache, clear it in your process before you set the ID.
    This same method can be used if you need to pass two text values to the second page, but the first might contain a comma. If you submit the page and set the values in a computation or process, you don't have to pass the values on the url.
    Anton

  • Upload large file on doSubmit in javascript

    Hi all,
    I'm currently having some problems uploading large files using a custom Upload button (button calls doSubmit from javascript).
    When using an Upload button with unconditional branch to the same page (no js) it works perfectly. Now I have to use my own Upload button that calls some javascript and AJAX and then Submit the page (with doSubmit); in this case I can only upload very small files (< 100k) ...
    I understand the mechanism of the file browse and its uploading to the table WWV_FLOW_FILE_OBJECTS, but I cannot figure out why my configuration does not work when it does stricly the same but from js ...
    Someone experienced the same issue ? How to submit the upload in javascript side with doSubmit ??
    Best regards,
    Othman

    Hi Othman,
    did you find a solution for this. I'm facing nearly the same problem, I'm calling a popup, where the user can upload up to 5 files. Then on clicking a button, javascript is called, that's calling the doSubmit and some others things and at the end the popup is closed.
    Sometimes the upload of 5 files is working, sometimes only 1 file is possible (obvisiously it's depending on the filesize).
    function addFile()
    doSubmit('FILE');
    opener.actualizeProject('TAB4');
    close();
    }chrissy

  • Problem window.opener.doSubmit

    Hello,
    We have one application, say with URL
    http://localhost/some_app
    This is not an APEX application.
    On this application on click of a button we popup an APEX page (with public access) and when user clicks on "Ok" button of this APEX page we pop the page down and want
    to refresh the original application page. We do this by following javascript function from the APEX page
    function close(url) {
    window.opener.location.href = decodeBIURL(url);
    window.opener.doSubmit('REFRESH');
    window.close();
    We pass the url of the original application to this APEX page as one of the parameters.
    This works fine as long as APEX page has URL of the form http://localhost:8085/apex/f?p=101:3, i.e. original application URL and APEX URL both have same hostname part (in the example above localhost ), but moment they are differnet IE pops up another window for original URL.
    does anyone know fix to this problem?
    regards, Yora

    It is impossible to set the value of the file input thing. But if they realy want it in a popup, then you can try something like this:
    -1. Put the attatchement list in a iframe
    0. Open the parent file with some with somewhere a unique id (like a session id or something
    1. Open your child page in a popup, give that uniqueid as parameter ("like child.jsp?id=<uniqueId>")
    2. Use regular file input things in that popup, and replace the 'close' button by a submit button
    3. Track the submit of the form, show a 'now uploading to server, please wait' message
    4. The child page sends the attatchements to the server, stored in a tempory folder named <uniqueId> (store it in the form as a hidden input thing)
    5. When the upload is ready, display some message 'files uploaded, close this window to return to your mail'.
    6. When the user clicks that 'close' button, close the popup and then reload the attachment-frame
    7. The attachment-frame just lists the files stored in that <sessionid> folder, and it seems like the user has added those files to it
    If you want i can create an example of it
    koentjepoppe
    note: if you add the date to that unique id, you know when that folder is created and then you know wich folders you have to delete if the user aborts his mail for example (then those files are still in that folder wasting space)

  • Javascript:dosubmit  - error

    i have just build application.. and i don't know what happened every javascript:dosubmit button on page 1 give me an error
    look at picture
    http://img526.imageshack.us/img526/8498/47216945.jpg
    any suggestions?
    i can't build it again, please help :(

    check your after submit validations, computations, processes and branches for any select ... into ... statement. Also check if any of these call a procedure or function in which there may also be a select into statement.
    cheers,
    Jure

  • Just Upgraded to 3.1.2 - doSubmit is not defined.

    I just upgraded to the latest XE by running the download.
    I am getting this error on the browser when I try to login :
    Error: doSubmit is not defined
    Source File: http://127.0.0.1:8080/apex/f?p=4550:1:1915389911065507
    Line: 1
    Any suggestions?
    -SJ

    Hello,
    Did you follow all the post installation steps? (Updating the Javascript/CSS files etc?). If so, try clearing out your browser cache to make sure your browser is getting the latest files.
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • The function javascript:doSubmit not passing variables between pages

    Hi,
    I have an report that has a link to another page, and I'm trying to pass 2 variables. If I use a target URL as such the variables do not get passed, but if I use a page target and explicitly add the item name and values it works fine. Here is the call I'm using to javascript:doSubmit:
    javascript:doSubmit('f?p=&APP_ID.:32:&SESSION.::&DEBUG.:32, CIR:P32_PROJ_ID,P32_DID:#AWARD_NUMBER#,#ID_PROVIDED#');
    Does anyone have any insights?
    Thanks,
    Joe

    You can't use doSubmit to pass variables; it will only submit your page with the request you passed in.  All normal page processing and branching will be followed..  Why are you using doSubmit?  Just put the URL in the URL field.
    f?p=&APP_ID.:32:&SESSION.::&DEBUG.:32, CIR:P32_PROJ_ID,P32_DID:#AWARD_NUMBER#,#ID_PROVIDED#

  • DoSubmit('UPDATE')

    I have a button called UPDATE on the screen.
    I want to use javascript to do same thing as click at UPDATE button.
    Here is what i did in my javascript,
    doSubmit('UPDATE');
    but it doesn't work.
    Did I miss anything?
    Thank you.

    I have a button GOHOME on the screen.
    If I click GOHOME, a popup message box to ask yes or no. If yes, I want to do some function which is same as clicking on UPDATE Button (or I can run a update query), then do GOHOME. If no, just do GOHOME without updating.
    I did this doSubmit('UPDATE'), but this doesn't work.
    Thank you.
    Edited by: user628655 on Nov 2, 2009 8:39 AM

  • Problem in doSubmit()

    Hi everyone,
    I want to use confirm message in javascript and call it by clicking a button...If the message is true, I set the doSubmit('my req'), I has written some pl/sql process and want to execute if condition is met..the condition is that request=my req
    But If I use dosubmit('my req') in javascript function..It is showing me an error that this page has no branch to branch.There is a branch to this button...Why this is showing this error? I already discussed about this..But could not find solution...Please help me
    Fazila

    Change the branching for your page to unconditional - independent from the button. Your
    button is not a submit button any more.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • DoSubmit(Save) when pressing another button

    Hi all,
    I have a Button with request "anfordern" (created as a button displayed among this region's items). The button redirect to another page.
    When the user make changes in data of the page and press "anfordern" without pressing "Save" first, all changes will be lost. Now he want's to "Save" automatically when he presses the button "anfordern".
    I read something about doSubmit, but I don't understand how I can do this in Apex. (Javascript is new for me!)
    Can anybody help me?
    Thanks, Daniela

    Hi Patrick,
    excuse me. I mix up 2 buttons. My Button with Request "anfordern" don't redirect to another page. When I press the button a conditional validation (function returning error text) starts. In the validation I do an insert into another table. There is no other function or process on this button.
    You say "Change your existing Processes so that they also fire for your new request". I think this will help me. But how can I do this?
    I have the generated process "Process Row of AUFTR_AUFTRAG" with type "automatic row processing (DML)". I think this is the process that fires by the request "Save" and should also be fired for my Request "anfordern". In which attribute can I write my request?
    Thanks, Daniela

  • How to combine a doSubmit and a f?p call ?

    Hello,
    I've got an updateable report with a link column. That column is defined in my SQL query (select '<a href="f?p=&APP_ID.:4:' ||:APP_SESSION || ' ...) . That link is an image.
    When the user click on that image, I'd like to simulate the doSubmit('MyButton') function, but I can't manage to combine the doSubmit and the f?p call.
    If I write <a href=javascript:doSubmit('MyButton');f?p=...
    => it only executes the doSubmit.
    If I write <a href=f?p=.... ;javascript:doSubmit('MyButton');
    =>It only executes the f?p.
    Have you got an idea to combine both f?p and doSubmit ?
    Thanks
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Cyril,
    You can either submit a page, or you can go to another page by clicking on a link. In HTML DB those links start with f?p. Your after-submit computations, validations and processes are only executed if you actually submit a page. If you want to submit a page by clicking on a report link, you need to use some Java Script that submits the page and a branch to specify where to go next, e.g. return to the same page. The following thread contains more detailed information about how to do this, and how to keep track of which column link the user actually clicked on:
    Submit page before launching report link
    Regards,
    Marc

  • Javascript: doSubmit()

    I would like to do something like
    javascript:doSubmit('foo');alert('&ITEM.');
    There is a After Submit process (for request=foo) that calls a PL/SQL procedure and sets the value of :ITEM.
    It doesnt seem to be working. The page is submitted but the JS alert box is shown before the after submit process has completed, thus showing the incorrect (older) value of :ITEM
    Am I doing something wrong, is there another way to do this?
    Thanks

    html source. You could branch back to the same page
    and emit the same javascript to get an alert box with
    the submitted value. How can I do this? What would I put in the region/item source? I thought JS alert boxes only launched by user explicitly clicking something.
    Of course the alert would have to be in
    an item or region that was displayed
    conditionally based on whether it was a
    pre-submit or post-submit-and-branch rendering caseNot sure how I can do this either. Could you elaborate?
    The page is submited by doSubmit('foo'). The after submut process does its thing and sets the value of &ITEM.. The page has a branch back to itself. Now what?
    Thanks

  • Save confirm message appearing twice due to doSubmit behaviour

    I am using the IE onBeforeUnload event on the body tag to confirm whether the user really wishes to leave if there are changes made to the page. However, in circumstances where htmldb uses the doSubmit procedure (eg: when clicking a sub tab) the message appears twice. I found that this is because the the following statements in the doSubmit procedure
    flowSelectAll();
    and
    document.wwv_flow.submit();
    are both triggering the onBeforeUnload event for some reason. If I insert a flag in between these statements the problem is solved. However since doSubmit is a htmldb core javascript procedure, I dont want to modify it. Is there any other solution to the issue that anybody knows of? Please help....

    figured out that it was not because of the flowSelectAll() but the anchor tag of the page and the wwv_flow.submit() that causes the onBeforeUnload to fire twice. Anyway the problem at the core remains the same. If anybody knows of any way to tackle this problem without changing the doSubmit function, your help will be much appreciated. Thanks.

  • Javascript:doSubmit action

    Hi all,
    1. I've created an updatable report with buttons in each row.
    2. A click on the button would create a form in the adjoining cell using JS.
    3. When I click on "Save" in that form a table is updated with the comment entered.
    4. At this point I want the page to refresh too. I've tried by using the
    doSubmit('REFRESH_PAGE233');
    and created -
    a. a conditional dummy process which will run if Request = REFRESH_PAGE233
    b. a conditional branch in the page which will redirect to the same page acheiving the page refresh when Request = REFRESH_PAGE233.
    However this does not seem to work for me. Ant suggestions ?
    The application is http://apex.oracle.com/pls/otn/f?p=17276:19
    Thanks,
    - Yogesh

    Looks like someone is testing this app.
    I set the status to 'N' and comments back to null
    so that all the rows appear back in the first report.
    - Yogesh

Maybe you are looking for

  • Report printing in excel with multiple sheets

    Hi Experts,      I am working in Oracle Reports 10g.  I need to print the report in Excel.... For this i have created .JSP file and now printing in Excel(Sheet1). My requirement is i need to print the report in multiple sheets. For example if i run t

  • ERROR: Basis Start Release not known in putGenSubstNamePuttb()

    Solman 3.2 to 4.0 upgrade. Getting this error immediately after starting Upgrade with SAPup. Prepare finished successfully however! Using latest version of SAPup together with the Upgrade "Fixes'. NOTE: I am only using Basis SP11 since SP12 was not a

  • Are fault messages applicable to synchronous messages also?

    Hi Experts,   I have been trying to understand FAULT messages in XI. The blogs I have seen so far discuss FAULT messages in Asynchronous scenarios only. This makes we wonder if it cannot be used for Synchronous RFC scenarios. Can somebody confirm thi

  • Muse CC 2014 crashes at 70 percent ftp-upload - how can I fix it?

    Since the new edition of Muse is up I can't upload my website - are there any solutions for this problem?

  • Looking for apex sensei

    hi all. I don't know whether it's possible or not to ask in this forum what i'm about to ask. I like very new working with apex, and i'm trying to develop an important app for the company. 2 experts were supposed to be hired to teach me, but that did