Avoid double submissions

Hello all,
In my custom page, to avoid double submissions, i'm using the below code but i can still see my cursor available for double submission. Below is my code. please check.
//logic to make the submit button disable on a click of the submit button in the page
OAWebBean body = pageContext.getRootWebBean();
if(body instanceof OABodyBean)
((OABodyBean)body).setBlockOnEverySubmit(true);
//End of logic to make the submit button disable on a click of the submit button in the page
Thanks for the help
KK

KK,
I am sure this code in the ProcessRequest starting,
Have you checked in IE Browser(6 or 7).
One more way is you have to start the transaction UnitHelper when you start the process, after you commit the trasaction you have to end the helper.
And you can check the transactionUnit is ended in your PFR.
import oracle.apps.fnd.framework.webui.TransactionUnitHelper;
static void      endTransactionUnit(OAPageContext pageContext, String transactionUnitName)
Ends a transaction unit by removing the transaction-in-progress indicator for the given transaction unit name.
static boolean      isTransactionUnitInProgress(OAPageContext pageContext, String transactionUnitName, boolean isTransactionParticipant)
Returns whether a transaction unit is in progress by checking the existence of a transaction-in-progress indicator for the given transaction unit name.
static void      startTransactionUnit(OAPageContext pageContext, String transactionUnitName)
Starts a transaction unit by registering a transaction-in-progress indicator for the given transaction unit name.
Thanks.
With Regards,
Kali.
OSSi.

Similar Messages

  • How to lock WBS lement in a program or user to avoid double posting in FBS1

    Hi Experts,
    I have an issue, i need to lock WBS element to a report or user to avoid double posting if other user is also running the same report.
    Hope to hear answers.
    Thanks,

    workaround found.

  • How to avoid double-click to click-box

    Hello,
    until now I did not find a solution for this problem:
    I have created a training course for a specific application, and in this coure are some click boxes on which the user should click. On many click boxes should the user click only once but if he double-click the click box, in real application nothing happens. There is only one way to succes the action - one click. But in captivate when the user double-click the click box instead of one click it evaluate as success action (the click box is set only to one click, double-click checkbox is not checked).
    So my question is, is there any way how to avoid double-click in cases where the user should click only once? Or in case he double-click the click box to show failure caption?
    Many thanks.
    Lukas

    Hi all
    Interesting thread. Unfortunately, what would be needed here is some sort of a widget that would run some internal timer. Sure, you can try multiple Click Boxes and configure one with a Single Click and one with a Double Click. But the problem with that (as I see it) is regardless of what you might try, the Single Click will win out every time. Thus you would need a widget of some sort that would "listen" for a Double Click and respond appropriately.
    Tough call... Rick
    Click here for Adobe Authorized Captivate and RoboHelp HTML   Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • To avoid multiple submit clicks

    Hi all,
    Need your help, in avoiding multiple submit clicks in HTMLB.
    Thanks in advance.
    Regards,
    Gangadharayya.

    Hi,
    This can be done by setting the button in "Disabled" state once it is clicked. This can be done by calling a java script function on the "onClientClick" event which sets the state of the button to disabled state.
    Add a similar function like this in your JSP, and do the appropriate changes, it should work fine.
    function Process(){
    var myID = htmlb_formid+"_getHtmlbElementId";
    myFunction = window[myID];
    var myButton = eval(myFunction("/* Your Button's ID */"));
    myButton.setDisabled();

  • Double submit handling using struts tokens

    Hi,
    I am using struts token to handle double submit.
    The way i have implemented is,
    wrote a base Action class.
    Inside the BaseAction class i have overriden the resetToken method like this,
    synchronized public void resetToken(javax.servlet.http.HttpServletRequest request) {
         javax.servlet.http.HttpSession session;
         session = request.getSession(false);
         if (session == null) {
         return;
         session.removeAttribute("org.apache.struts.action.TOKEN");
    saveToken(request);
    I m calling saveToken inside resetToken for new pages.
    So how it would work is first time in my action i would call saveToken which would set token in my jsp page and then in respective actions i would check if isTokenValid(),
    and then call resetToken so that i would clear the old on and set the new one for the new jsp page.
    Is that the right way i m doing it ?
    Please suggest me if there is better way to handle it.
    Thanks
    Abbyss

    You can use isTokenValid(request, true) which will automatically call resetToken() after checking the token.
    Izida

  • Avoid to submit same batch input via F.19

    Dear Guru,
       I am trying to reclassify GR/IR during month-end closing via F.19. I can see a job in SM35 to create account post to reclassify GR/IR after posting in F.19. However, after post the documents, I run F.19 again. The system allow and create same SM35 job by same selection criteria.
      Is there any way to avoid the F.19 to create same SM35 job more than once.
    Thanks
    Justin

    Dear Viswa,
       Thanks a lot.
       Firstly, I created one job RFWERE00 with some parameters. Then excute the first job, posting assets and liability.
       Then, using the same parameters in the first job, i can create succesfully another job via RFWERE00. This another new second job, I can excute it, causing double posting of asset and liability.
       Is there any way to avoid to create second job via RFWERE00 using same parameter to cause double posting?
    Thanks
    Justin

  • How to avoid double extension *jpg.tif when exporting layers to files?

    Please help, I checked all the topics related and it seems nobody bothers about this issue.
    When I do a Photomerge of a series of jpg files, Photoshop builds a multilayered file - but preserves in the name of each layer *.jpg 
    When I want now to export layers to files, the Scripting function will do the dumb thing and export each file with the original name - ending in JPG - , plus the extension required by me - for ex tif.
    It does the same if I chose to export as jpg files and puts double extension again < *.JPG.jpg> at the end of each file exported from a layer.
    I looked everywhere and couldn't find a way to solve this behavior, which forces me to do batch renames in Bridge.
    The next program where I need the files (After Effects) doesn't want to import these files with double extensions.
    Has anyone encountered this issue and what can be done to avoid these double extensions at Scripts/Export layers to files?
    Thanks for the answer

    I have just altered my script so that it will remove the extentions if found.
    http://www.scriptsrus.talktalk.net/Layer%20Saver.htm
    Also it would be better to use :-
    var layerName = activeDocument.activeLayer.name.replace(/\....$/,'');
    As this way it doesn't arbitory remove the last four characters, only if it finds a fullstop.

  • How to avoid doubling data

    Hi experts,
    i loaded a flatfile1 into an ODS and then into an infocube. Again i loaded another flat file2 ( which had the same records as well as few more records as first one) the same way.. when i look at the Infocube, some of the records have double the values. How do i avoid this.. can i go for delta load from ods to infocube..
    all the above loads are fulupdate.
    Also SDNers,
    By full update do we get all the data again if we load from ODS even if we laoded previously.?
    thanks
    Dave
    Message was edited by: Dave Marcus

    If you go as Delta from ODS to Cube, ODS will take care in sending only the changed records and the new records.
    see this link:
    Re: Delta Processing in ODS
    Also see:
    ODS & Delta
    Thanks,
    Raj

  • How to avoid double-counting in Total field

    Hi Gurus,
    I'm new to Essbase.
    Here's a question I don't know how Essbase handle it, my source data stores at relational database, normally one row in the fact table associates with only one row in dimension table, but very common scenario like one fact row can associate with many rows in dimension table, to simplify we have 4 tables:
    1. DimProduct(ProductID, ProductName). there's one row like 1, "Bike"
    2. FactSales(ProductID, Quantity), there's one row like 1, 10
    3. FactSalesReasons(ProductID,ReasonID), there're 2 rows like 1,1 and 1,2 , suppose there're 2 reasons associate with this product sale, that means 1-N relationship between fact and dimension.
    4. DimReason(ReasonID,ReasonName), there're 2 rows like 1,"Quality" and 2, "Promotion"
    I expect the report as follows:
    ProductName ReasonName Quantity
    Bike Quality 10
    Promotion 10
    Total 10
    But while built cube, I got the value 20 of Total. I know Microsoft SSAS has a many-many dimension usage can avoid this double counting issue (no need to write extra calculation script), can Essbase do similar way?
    Thanks!
    Xiao

    What I would recommend in this case would be in a calc script. I would guess that this dimension is sparse which usually has a low calculation priority (calcs first and may get overwritten). So, at least for a first pass at a calculation...
    ========
    SET UPDATECALC OFF;
    Calc All;
    "Total Reason" = @AVG(SKIPNONE,@CHILDREN("Total Reason"));
    ========
    SKIP options are "none", "missing", "zero" or "both".
    This will calculate for all accounts.

  • Prevent double submit

    Hi i need to prevent the double click on the submit button. i used disabled attribute of the command button to make it disable in the command button action but the problem is that button disabled when the request finishes although disable statement is the first one in the action.
    Here what i did
    h:commandButton value="Submit" disabled="#{suggestWord.disableBtn}" action="#{suggestWord.submitSuggestion}" />
    public void submitSuggestion() {
       this.setDisableBtn(true); //disable submit button
       ....

    WAQ28 wrote:
    google_me wrote:
    Have a javascript function on onclick event and disable the button from that function.
    When the page will again be loaded, button will be enabled again. Try it.I did the same but doing this way prevent the action of the commandButton from calling.Yes, as I said right before your reply :o)

  • Avoid double login for BSP iView

    Hello,
    I have installed a Netweaver 2004s Application Server + Portal. The user data source for the Portal is the ABAP System. I have created a portal page that contains a BSP iView. This BSP is created in the Application Server, and the portal page is assigned to a role.
    When I access the portal with a user with that role, I have to log in, but for seeing the content of the BSP there is a second login request. Both logins are the same user and password against the same user data source (ABAP system). Is there any way to avoid the second login request apart of SSO?
    Thanks in advance and best regards.
    Joaquin Sanchez.

    Same issue discussed & solved in below thread..
    Re: How to supress login pop up for a BSP iView?
    Let us know if you face any more issue..
    Raja T

  • Avoid Page Submit

    Hi,
    I have an updateable tabular form. In that I have a hidden column. I also have a select list item based on which the tabular field filter is set. I have used select list with submit. So whenever the data is changed in the select list a submit event occurs and the data in the tabular form is filtered based on the the select list value. Also the page is reloaded. Is it possible to achieve the same functionality without page load ?
    Thanks in advance
    Bhavesh

    Use AJAX,
    Carl has done all the work for you check this
    http://apex.oracle.com/pls/otn/f?p=11933:37:1994111671076957::NO:::

  • How do you avoid double-click

    When running flash on a web page you usually have to click
    the Flash object once and then once again to click a button.
    Is there a way to avoid this because many users are missing
    the second click and wondering why nothing is happening.
    Or, am I missing something very simple?
    Regards
    Dave

    Most likely you are talking about
    Eolas Patent impact
    on IE.
    In repsonse to Eolas, Microsoft has made changes to Internet
    Explorer browser that impact the use embedded ("active") content
    such as that viewed in Adobe's Macromedia Flash Player, Authorware
    Player, Shockwave Player, and Adobe Reader, as well as Sun Java,
    Apple QuickTime, and RealNetworks RealPlayer.
    This includes the need to click to activate.
    Adobe maintains a page that provides what you need for all
    their products:
    Adobe Active
    Content Development Center

  • How to avoid double logon

    Hello experts,
    can i avoid that a user is logged in a bsp 2 times (two different pc´s) ?
    Is there a standard solution in SAP or is it custom development?

    hye Benjimin,
      It is not possible to auhenticate single log in through any standard setting. Authetication is bascially initiated from the browse side and hence no real standard setting exists.
      This can be achieved only through custom programming.
    Regards
    Imran.

  • Avoid "double" breakpoint occurence

    Hi there,
    First post so apologies if missing out on any conventions.
    I am setting up a vision inspection system with two stages in xy-configuration controlled by PCI-7350. The samples are located in a grid, which can be slightly irregular due to placing inaccuracy. Previously we stopped for image taking, but now we are switching to using breakpoints to take images "on the fly".
    In principle, I have got this working with a buffered array of breakpoints (on x-axis) and using arrays for movements that are blended. However, occasionally it happens that images get lost when switching between two rows as two breakpoints are triggered almost simultaneously. How can this be avoided? I have tried changing the "Requested Interval (10 ms)" input on the "configure buffer.VI", but that did not help.
    Could I change the deadband or something like this on the stages? Or do I need to rewrite breakpoint positions to the buffer for every new row? Any suggestions would be most welcome.
    A second question (perhaps worthy of it's own thread) would be how to handle the movement more efficiently. The image processing will require a lot of processor resources, so I would like to take care of the movement on board. I have tried a little with buffered contouring, but with little success. I have also seen examples on onboard programming, but not yet given that a go. Which way would the experienced user suggest me to go?
    Thanks in advance for your helpful input.
    /Anders

    Hi,
    Thanks for your advice SFK.
    I now have a safe zone, which helps, but now I ran into a different problem; For some reason my breakpoints do not always occur.
    I have attached  the VI (apologies for mess) and some plots for understanding the problem. In this VI I want to blend two axis movement and write breakpoints to a buffer in between every row. It is sort of puzzled together from two different examples; Sequence of Blended Vector Moves.vi and Buffered Contouring (Rose).vi
    Going through the letters to help understanding the purposes of the steps:
    A - load breakpoints is an array of the number of breakpoints I want to load for every row. Every other item is a 0 as I move between rows. When I define the buffer sizes I used either the sum of all breakpoints to be loaded or the max number for one row (not visible here). My svanning grid is 12 rows with 10 columns, so 10 is the maximum of points.
    B - Old Data Stop (True) is set to false as I otherwise run into an error with old data, i.e. some points have not been triggered. This is the problem I need to avoid.
    C - A VI that takes the stage to the starting position, which is a now defined 1mm to the left of the starting point. The start and the endpoint of each rows is 7mm outside of the breakpoint positions (spaced by 7 positions, so the safe zone should be there.
    D - Here is where the breakpoints are loaded in case the number is >0. The array with remaining breakpoints is passed. The position where the breakpoints are loaded is added to the plot of the stage movement.
    E - Adds where the breakpoints occurs to the plot.
    In the attached plots my problem can be seen. The movement starts low left. What is also very puzzling to me is why this pattern looks different depending on how I define the buffersize.
    Any help is greatly appreciated.
    Thanks,
    anders
    Attachments:
    blend breakpoints vi.JPG ‏211 KB
    breakpoints buffersize 10 elements.JPG ‏39 KB
    blend breakpoints vi.JPG ‏211 KB

Maybe you are looking for

  • 10.8.5 constant freeze

    I have a lot of problems with my MBP 10.8.5 freezes very often. The consol shows a lot of problems and I do not know what to do to fix this and would so much appreciate help to fix this. After reading about the next generation OSX i decided to not do

  • K9N2G Neo CPU Stepping question.

    Hello, I have a K9N2G Neo and I am looking to upgrade to a AMD Phenom II X4 925 but I have a couple questions. Will stepping/revision of a CPU effect compatibility? I see in the CPU Support that Phenom II X4 925 C2 is supported but would the same CPU

  • How to hide/disable the Real URL on Browser

    Hi We are using Sun one Application server 7 on solaris.We are using JSP and Servlet. Directory listing pattern is ocurring as www.myapp.com/rite/pre/information.jsp in address bar of browser.And Want to dispaly only www.myapp.com in address bar inst

  • Final Fantasy X/X-2 HD Remaster for PS Vita

    Hi, Will Best Buy carry the Final Fantasy X.X-2 HD Remaster for the Playstation Vita in store? Thanks Solved! Go to Solution.

  • Can't get the apple widgets to work after update

    I have the same problem, but only with the apple widgets such as calculator, dictionary, weather and world clock. At some point I for some reason put them in the ~/library/widgets folder, and the problem arose when I installed 10.4.5 with the new upd