How to Disable the SUBMIT Button using the formula.

Hi. Govindu and ohters.
                   I really appreciate your efforts in helping others.
I am currently working with VC 7.0. Where I am working with Validation of Data.
we have input buttons( fields) like Emp, Earea, Joining date (month & Year), Ending date((month & Year) etc.,
Here we have one submit button 'submit'.
Here what my client asks is unless and until, user fills all details then only
the submit button should be enabled. Otherwise submit button should be in disable mode.
I could be able to write formula for 'submit' button's properties( Disable) like this.
BOOL(IF(LEN(@Emp_code)0 AND LEN(@Earea)0 AND LEN(@Edept)0 AND DSUB(DVAL(@Joining_date), DVAL(@Ending_date),'D')<0 ,false,true))
Here condition is always make sure that 'Joining date' should be greater than 'Ending date' . where it is working fine for all fields except Calender Year month(Joining date & Ending date).
the calender year month format is Example : """" May 2007""""
But it is considering only month But not year.
Can you kindly provide your inputs.
Edited by: Vijay Kumar on Dec 2, 2008 10:51 AM

Hi. Murtuza.
                    Thanks for Your valueable reply. I have already been trying with the following formula.
But still I am not getting expected result.
               BOOL(IF(LEN(@Material_Type)<>0 AND  LEN(@Plant)<>0 AND LEN(@Vendor)<>0 AND
                                       DSUB(DVAL(@To), DVAL(@Calendar_Year_Month),'D')<0 ,false,true))
                I don't have any problem with   input buttons( fields) like Material type, Plant, Vendor.
             But _'Calender Year  Month From'  should be  less than  to 'Calender Month To' then only the submit button should be enabled. Otherwise submit button should be in disable mode. This is not working.
                                 The calender year month format is Example : """" May 2007""""
                                            But it is considering only month But not year. 
   means It only considering Month only, It is not considering the Year. Please let me know the your information on this.
                            Thanks and Regards
Edited by: Vijay Kumar on Dec 3, 2008 10:35 AM

Similar Messages

  • How to disable a submit button on click using javascript

    Hi,
    We have built custom pages for mobile device (PDT) using OAF.
    The application is running on mobile IE 6.12 browser. In mobile platform, the cursor style is not changing to hour glass upon clicking.
    Due to this, user is able to click the same button multiple times before the operation is complete and it is getting submitted multiple time. But the same is working fine in Desktop browsers.
    We have tried with ((OABodyBean)body).setBlockOnEverySubmit(true); But the API documentation states that
    "Sets If set to true, user input will be blocked after EVERY submit (not just PPR submits). This attribute is not supported on the following agent types: pda, phone, voice."
    Hence, I am trying with javascript to disable the submit button after the first click. The issue is, even in the desktop browser
    I am not able to get the button disabled after first click. Please help me.
    I have tried the following statments in PR. But none of them seems to be working.
    //Try 1: directly using id
    OASubmitButtonBean updBtn = ((OASubmitButtonBean)webBean.findChildRecursive("UpdateBN"));
    updBtn.setOnClick("document.getElementById('UpdateBN').disabled=true;document.getElementById('UpdateBN').submit()");
    //Try 2:
    OASubmitButtonBean updBtn = ((OASubmitButtonBean)webBean.findChildRecursive("UpdateBN"));
    updBtn.setOnClick("javascript:this.disabled=true;this.form.submit();");
    //Try 3:
    OASubmitButtonBean updBtn = ((OASubmitButtonBean)webBean.findChildRecursive("UpdateBN"));
    updBtn.setOnClick("this.disabled=true;this.form.submit();");
    //Try 4: using a function
    static final String JS_MULTI_CLICK = "<Script LANGUAGE=\"JavaScript\"> "
    +" function DisabSub(btn)"
    + "{"
    + "btn.disabled = true;"
    + "}"
    +" </Script>" ;
    OARawTextBean rawMultiClick = (OARawTextBean)webBean.findIndexedChildRecursive("JSMultiClick");
    rawMultiClick.setText(JS_MULTI_CLICK);
    OASubmitButtonBean updBtn = ((OASubmitButtonBean)webBean.findChildRecursive("UpdateBN"));
    updBtn.setOnClick("javascript: var obj =disable(this);return DisabSub(obj);");
    Can any one please help.
    Thanks in advance.
    Regards
    Saravanan

    Hi,
    Create two submit buttons A and B adjacent to each other.
    On page Load ,make A as rendered false and disabled true and B as rendered true. using SPEL.
    now on click of button B make button A as rendered true and Button B as rendered false through SPEL.
    In this way on button click the button will become disabled without the use of any javascript.
    Try it if it helps you...
    Thanks,
    Gaurav

  • Delete the submit button on the purple bar on a form

    We have created a form that can be filled in by extended rights.  However, we are not using the submit button.  Can the purple bar or the submit button be turned off.  I noticed someone had a green bar without the submit button.  The form was originally typed in Lifecycle.

    The ability to collect responses via Acrobat.com is being phased out: What are my options for hosting shared reviews and distributing forms in Acrobat 9? (Acrobat.com)
    Also see the latest release notes where it says that Acrobat.com forms data collection has been end-of-lifed: 11.0.07 Planned update, May 13, 2014 — Acrobat and Adobe Reader Release Notes

  • Help I am trying to update my card info and the submit button on the site is not working

    Help I am trying to update my card info and the submit button on the site is not working

    What does the message say exactly? Are you sure it's not telling you the phone has no more space?

  • REP-50134 occurs when using the submit button on the Reports Parameter Form

    Good Morning,
    I get the "REP-50134: Cache subitem reports does not exist" error after clicking on the Submit Button from a Reports parameter form.
    I am using Forms/Reprots 9i.
    Using the source code given in the Whitepaper 'Oracle Forms Services - Using Run_Report_Object() to call Reports with a parameter form', all works well when paramform=no, but when I have a Form print a report with paramform=yes, the parameter form appears correctly, but generates the error after clicking the Submit Button.
    Any inputs as to causation or possible places to look to solving this problem would be greatly appreciated.
    Thank you

    Hello and thanks.
    The value in the tag is <form method=post action="reports?">
    Looking at this I suspect my problem is related to this setting. I am trying to follow all the instructions in the White Papers but they are a little confusing as they are not all exactly the same. Each attempts to explain a specific functionality without regards to the whole.
    For instance I believe I need to have the variables P_ACTION, P_USER_CONNECT and P_SERVER_NAME in the report being called and then add a Before Parameter Form trigger to reset the values. But this seems to duplicate and override what has already been sent via the REPORT_OTHERS property. It is a tad bit confusing.
    Can you confirm?
    Thanks for any clarification you can provide.

  • Partial trigger not woring on the Submit button of the application panel.

    Hi,
    I am facing an issue that I am not sure if it is a framework bug. I used Submit button on the app panel and would like to hide it in some cases. I used a partial trigger for this button. But it doesn't respond to the trigger at all!. I also tried the same trigger on other buttons on the app panel, such as Done, Save, etc.. they all work as expected. Does any one know if this is as designed or a frame work bug?
    Thanks,
    Chunyang

    Hi Frank,
    Thanks for the reply. Good news, I just found out this morning after I refreshed my view that the Submit button refresh issue is resolved. Looks like ADF team was working on that bug.
    I have another question on the app panel buttons.
    My use case for this button is to use this Submit button as a Save and Close drop down, with Save As under it. The object has versions with a version navigation pull down list. When navigate to a Pending version, the buttons are like:
    [Save] [Save and Close |\/] [Cancel]
    |Save As |
    when navigate to a submitted/released version the buttons should be like:
    [Save As] [Done]
    Could you advise how I can achieve this? Currently I make [Save] [Save and Close |\/] [Cancel] invisible and [Done] to be visible for non-pending versions. I also added an additional |Save As | from actionButtonBar facet to be visible in this case, because the original |Save As | is under [Save and Close |\/] , which is not visible in this case. Not sure if it is the right approach. Now the |Save As | is on the left side of the vertical separator, instead of on the right side, since all the buttons under actionButtonBar facet are on the left side of the vertical separator. So you see the buttons like this:
    [Save As] | [Done]
    Thanks,
    Chunyang

  • How do I get to the Submit button on my form?

    I have finished my first form but can not find how to get to the submit button on the form to add where I want the form to go - how do I get an email address attached to the form?

    Hi Amy;
    A FormsCentral form can be either a web form users fill out in a web browser, or a PDF form (can also be distributed both ways).
    For a Web form the data is always collected by the Adobe FormsCentral servers and is available to view/analyze in your account on the View Responses tab of the form.  There are also options to set up Email Reciepts (to the form filler) and Email Notifications (to you and other users you specify) that can contain the form data.
    For a PDF form you have the option of the Submit button that submits the data to FormsCentral the same as the Web form, and the same Notifications and Reciept options apply here too.  Alternatively you create a PDF in FormsCentral to use however you'd like and can edit in Acrobat and add your own Submit button that emails the PDF or form data back to you directly.  There are a number of tutorials online for adding email "Submit" buttons to PDF and if you are going to edit a FormsCentral PDF you would want to look at this FAQ as well: http://forums.adobe.com/docs/DOC-3661
    I hope that helps, let me know if you still have questions.
    Thanks,
    Josh

  • Unable to capture the submit button event in OAF

    Hi
    I am facing a problem extending the NavigationCO controller on "/oracle/apps/per/selfservice/review/webui/ReviewPG". I just want to throw some exception when the user clicks the submit button in the PFR. I have used the following code but i did not find any solution. Can anyone help me out in this issue. When i used the first method its displaying some error on submitting the page but where as in the second method its commiting the data instead of throwing an exception.
    I tried the following methods:
    public class XXXNavigationCO extends NavigationCO {
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    if (pageContext.getParameter("HrSubmit") != null)
    super.processFormRequest(pageContext, webBean);
    pageContext.forwardImmediatelyToCurrentPage(null,true, "Y");
    throw new OAException("Test Message");
    else{
    super.processFormRequest(pageContext, webBean);
    2.
    public class XXXNavigationCO extends NavigationCO {
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    if ("HrSubmit".equals(pageContext.getParameter(EVENT_PARAM)))
    throw new OAException("gsgfshghjgashfa");
    super.processFormRequest(pageContext, webBean);
    }

    Hi Gaurav,
    Thanks for the repsonse. I tried the same code but its not throwing the exception its directly launching me the confirmation page. Actaully the controller is redirecting to confirmation page on submit. But now i want to check some condition on submit and throw an exception if the condition is not satisfied. If the condition is satisfied i want the seeded controller action to take place.
    I tried using "pageContext.forwardImmediatelyToCurrentPage" and "pageContext.forwardURLToCurrentPage" but i did not achieve success in it.
    If the above mentioned "pageContext.forwardURLToCurrentPage" is right could you please give me an example to get thjis resolved.

  • How to hide the "EXIT" button on the ESS Personal inf. iViews

    Hello,
        We are using SAP ECC 6.0 + SAP EP 7.0 + ESS 1.0 (latest Releases).
        In the ESS iViews (Java WD) for Personal information (Adresse, Bank, Family, etc. there is the Button "Exit"..
      Does any have any Idea where and how to hide this "Exit" Button in the iView/Java-WD?
    Many Thanks,
    Nazih

    Hi Chris,
      thanks for your reply.
      If you mean to hide the button using the iView/WD Personalisation by rightclick on the iView in PCD and then Review, well yes i know this and i have tried this already before and we were able to hide some not required input fields in the Webdynpro, but we were not able to find and to hide the "EXIT" Button using the personalisation..!!?? you know why?
    Why to hide the Exit button, i will tell you why, in the iView for maintainig the ESS Personal Information -> e.g. Adresse --> Edit Adresse View (Roadmap view No. 2) --> when User click on the Exit Button --> This will open new browser Window with ESS... ---> This second Browser Window (Pop up) would confuse the User, since he already have an opened window, so the Customer mean why open new window, since the user can simply click the Button Back and so his data are also saved..
    How can we manage to control the behaviour of the Button, so the iView is closed safety without that new Pop-up windows are opened...
    Many Thanks,
    Nazih

  • Can the submit button be deleted

    For the convenience of our learners, my manager would like me
    to delete the submit button from the multiple choice questions we
    are using in our movie. He would Captivate to provide feedback
    immediately after the learner clicks his/her answer in the radio
    button. Is this possible?
    Note that I have tried making the submit button transparent
    and placing it behind the radio buttons for all answer options.
    When this is done and an attempt is made to click a radio button,
    the radio buttons are unavailable and a failure message appears.
    Apparently, the submit button is over the radio buttons or at least
    not transparent so that they can be affected.
    JazzAl

    Rick:
    One more thought about eliminating the Submit button on
    multiple-choice questions.
    I now know that:
    1. I cannot delete the Submit button from a
    Captivate-generated multiple-choice question
    2. The function that the Submit button performs must be
    retained in multiple-choice questions to enable the scoring
    function, which I want to retain.
    3. Although I can make the Submit button transparent and put
    it in the same location as the answer options' radio buttons to try
    to make the learner's one click (that selects the answer option)
    activate both the radio button and the Submit button, the result of
    the click will be only clicking the Submit button. The radio button
    does not get marked as being selected.
    I would like to do some further work on trying to allow the
    learner to select his/her answer and click the Submit button on one
    click.
    On the theory that the radio button and the Submit button
    cannot be selected in one click because the is because the Submit
    button is in front of the radio button, I wonder if it might be
    worth it to try to go into the files that support the building of
    multiple-choice questions and attempt to change the layering order
    so that the radio buttons are in front of the Submit button? Do you
    think can be done? Do you think it might work? Thanks for any
    insights you might have on this idea.
    JazzAl

  • Hiding the submit button on text fileds

    Wne we issus a form there are a few text only answers in it. How do I hide the submit button as there is nothing to submit. Seems daft there is not an option to not show submit for certain answers.
    Thanks
    LG

    I am not sure I understand your question. Do you want to hide the submit button until the user fill out all the fields? We do not support that but I think what you want is to make the fields required so that the when the filler tries to submit and there is missing data the user will be warned and the data won't be submitted until all fields are filled-in.
    You can mark a field as requered in the Property Panel
    Gen

  • Hide and Display submit button on the Simple search page.

    Heading 1: h1 Hide and Display submit button on the Simple search page.
    I'm trying to set the enabled property of the submit button on the simple search page. The business case is to disable the button if the VO has not returned any rows.
    The Submit button is on the page button bar.
    regards
    Abhi

    Hi,
    I have already added this in my ProcessRequest, the issue I am facing is it the submit button is disabled while I load >the page which is fine. but when I do a search and the query returns rows still the submit button is disabled.---Will nt reuired SPEL here..
    ---On go button click setsession value.
    Follow below steps:
    CO PR:*
    OASubmitButtonBean continueBtn=(OASubmitButtonBean)flowLayout.findChildRecursive("continueBtn");
    if(continueBtn != null && "D".equals(oapagecontext.getSessionValue("Flag"))
    continueBtn.setDisabled(false);
    else if(continueBtn != null )
    continueBtn.setDisabled(true);
    CO PFR:_
    if(pageContext.getParameter("Go") != null)
    oapagecontext.putSessionValue("Flag","D");
    Regards
    Meher Irk
    Edited by: Meher Irk on Mar 22, 2011 7:48 PM
    Edited by: Meher Irk on Mar 22, 2011 7:48 PM

  • Submit button in the document?

    I work with a new document and can not get not get the submit button in the document?

    Hi,
    Please provide additional information (steps on how to reproduce will be great):
    Can you not get to the submit button when you are authoring your Adobe FormsCentral form in app/Design tab?  or can you not get to the submit button when you are filling out the FormsCentral form? (PDF form? HTML form?)
    Thanks,
    Lucia

  • Removing the Submit Button

    I am creating a PDF Form that will be posted on our website for students to fill out.  We want them to fill it out and PRINT it to attach to other documents and return.  I cannot find a way to REMOVE the automatically added submit button from the form.  We do not want them to submit it electronically.

    The submit button in the purple bar will only appear if yo put the form throught the Distribute Form process in Acrobat, and you only need to do this if you want the forms to be submitted to Acrobat.com or one of the other options. SInce you don't want to do this, all you need to do is Reader-enable the form so it can be saved with Reader. To do this, start with a copy of the form as it was before you Distribited it and select one of the following depending in which version of Acrobat you have:
    Acrobat 9: Advanced > Extend Features in Adobe Reader
    Acrobat 10: File > Save As > Reader Extended PDF > Enable Additional Features
    Acrobat 11: File > Save as Other > Reader Extended PDF > Enable More Tools (includes form fill-in & save)
    Note that if you only want the form to be printed, you may not need the form to be enabled, which allows Reader to save a filled-in form. You may want this if it is a long form that the user may want to save after partially completing it so they can reopen it later and complete it. You should also advise your users to use Adobe Reader to fill-in the form.

  • Need to show popup when the Submit button is clicked for the second time ..

    Hi guys,
    I have a requirement where i need to show a popup or alert when the submit button is clicked twice . When it is clicked for the first time one method is been called and its process starts. When the user clicks the submit button for the second time they should be shown a popup stating "Submit button already been clicked, please clicked OK to continue".
    Can anyone help with this please , its really urgent requirement ?
    Thanks in advance

    Hi,
    I dont have any sample code to give you now. For quick reference, I can advice some psuedo steps to achieve your requirement. I dont have access to JDEV to test this. If any syntax errors then pls correct yourself.
    1. Extend Controller since it is standard page ( Refer Anil Passi site for steps to extend seeded ontroller)
    2. Write below logic in your Process Request method
    super.processRequest(oaPageContext, oaWebBean);
    pageContext.putSessionValue("status", "notInitiated");
    3. Include below logic in your PFR method
    if(pageContext.getSessionValue("status")!=null){
    if("notInitiated".equals(pageContext.getSessionValue("status")))
    super.processFormRequest(oapagecontext, oawebbean);
    pageContext.putSessionValue("status", "initiated");
    else
    String message = "Display error message as required";
    throw new OAException(message, OAException.ERROR);
    You may need to import required packages ( Related to OAException).
    Remeber, to sumbit the request, user need to refresh the page again so that "status" variable will be refreshed.
    Hope it helps.
    Thanks
    venkat

Maybe you are looking for

  • Cannot send MicroSoft Word specific characters to CORBA Server

    hello, I am sending a String to CORBA Server. This String contains MicroSoft Word Specific chacters like this quotes �this is a test�. The CORBA Server gives me this exception Corba error : org.omg.CORBA.DATA_CONVERSION vmcid: OMG minor coe: 1 comple

  • How can I delete iTunes user?

    I have a old iTunes user and I want to delete it... How can I do that?

  • ERROR: IN FK02 TRANSACTION ALTER THE FIELD CHANGE REGION

    In FK02 Transaction when I try to alter the field REGION, the field taxjurcode does not change, so the messsage is showed  "The code of residence xxx does not match the address entered". Somebody knows what do I have to do?

  • Smpatch and security clusters

    I PatchPro to automatically scan for and download patches from the security/recommended cluster that I do not have installed on my systems. I have installed and used patchpro, but I wasn't able to find a setting that would allow it to scan just the s

  • Extend the standard webdynpro UI Element

    Is it possible to change parameters of UIElement classes, other then the one available in the Properties frame of eclipse (for a WebDynpro project)? Or Is it possible to use a additional  UI library with in webdynpro, and how do I integrate and use