How to set Save and Apply button to disabled

Hi all
i need to disable the save and apply buttons according to some action the user is doing, when the user changes some LOV value the save button should be disabled
the following code i am using is not working to disable the button,
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean) {
String val = "";
String message = "";
int statusVal = 0;
try {
super.processFormRequest(pageContext, webBean);
if ("empPositionChange".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM))) {
OAMessageChoiceBean rGBean1 = (OAMessageChoiceBean)webBean.findIndexedChildRecursive("Status");
if (rGBean1 != null) {
val = (String)rGBean1.getValue(pageContext);
statusVal = Integer.parseInt(val);
if (statusVal == 1) {
OAApplicationModule am = pageContext.getApplicationModule(webBean);
OAViewObject vo1 = (OAViewObject)am.findViewObject("WOCreateUpdateVO");
if (vo1 != null) {;
OARow row = (OARow)vo1.getCurrentRow();
String ReasonCode = (String)row.getAttribute("Attribute1");
//message = message + ReasonCode;
if (ReasonCode == null) {
OASubmitButtonBean savebBean = ((OASubmitButtonBean)webBean.findChildRecursive("Save"));
if (savebBean != null){
OASubmitButtonBean applybBean = ((OASubmitButtonBean)webBean.findChildRecursive("Apply"));
if (savebBean != null){
catch(Exception exception){
throw new OAException("Error in Staffing Query: "+exception, OAException.ERROR);
please any one had this issue.
any help??

i am using this code in the processRequest
public void processRequest(OAPageContext pageContext, OAWebBean webBean){
super.processRequest(pageContext, webBean);
OAMessageChoiceBean mcb = (OAMessageChoiceBean)webBean.findIndexedChildRecursive("Status");
FireAction firePartialAction = new FirePartialAction("empPositionChange");
as for tracking the error it is giving me nullpointerexecption on the OASubmitButtonBean savebBean = ((OASubmitButtonBean)webBean.findIndexedChildRecursive("Save"));

Similar Messages

  • How to enable save and archieve button in smartform output?

    How to enable save and archieve button in smartform output?

    While populating your output parameters, use parameter TDARMOD (Print Archieve Mode: 1,2 3).
    Hope this will hint you how to resolve the issue.

  • Deliverable Actions - Save and Apply buttons.

    Is there a difference in the functionality between the Save and Apply buttons on the Project Super User "Update Deliverable Actions" html screen, in regards to what information gets saved and where?
    Edited by: user11980623 on 04-Nov-2009 03:24

    Thanks for your reply.
    We are using elements of Project Management in conjunction with Project Billing and as I understand it when a deliverable action is created, of type billing, a billing event is created in the PA_EVENTS table or at least that I believe is what I'm seeing.
    During the creation of the deliverable action if the action is flagged as completed and saved via the Save button the event details are created in the PA_EVENTS table MINUS the completion date that was entered.
    For the completion date to be saved in the PA_EVENTS table it appears the Apply button needs clicked.
    Was just wondering if anyone else has come across this or if anyone is aware if this is designed functionality?

  • How to set Shortcut keys for button in Apex

    Could anyone help me on how to set shortcut keys for buttons in Apex.
    I need to use say ALT + S to submit the page.
    The following thread pertaining to HTML DB refered to use ACCESS key. but that couldnt work in my case.
    Re: operation of the app. with the keyboard
    Any pointers on achieving this would be helpful.

    Hi Vijay,
    I’m afraid you must do it using javascript key listener. You can’t use action() on template based buttons because they are actually not HTML buttons but images with hyperlink.
    Key listener checks which key has been pressed down and invoke some JS function. For example, write this code in page header:
    function keyCheck(e){
         var KeyId = (window.event) ? event.keyCode : e.keyCode;
              case 113:
              case 118:
    This script will submit page with request 'SAVE' if you press F2 or will show alert message if you press F7. Modify it to your issue.

  • How to set up and use AirPlay

    How to set up and use AirPlay

    Welcome to the Apple Community.
    AirPlay; When watching suitable content on the iPad, tap the screen to bring up the controls, tap the AirPlay icon and select the Apple TV. The content will then stream to the Apple TV.
    Mirroring; Double tap the home screen button, swipe the application panel to the right, tap the AirPlay icon and choose the Apple TV. The iPad screen will then be streamed to the Apple TV.

  • How can I save and share movies to a flash drive in Premier Elements 9

    How can I save and share movies to a flash drive in Premier Elements 9
    mobile phones and other devices - only give for ipods and iphones
    export files for viewing on computer -  windows media etc
    I am experienced at burning dvds on the Adobe Premier Elements but new to sharing movies to a flash drive.
    Please help!

    Premiere Elements 9.0/9.0.1 on what computer operating system?
    1. USB Flash Drive.
    Go to Share/Computer/ make your export choice.
    In the Save In field for the preset selected, browse to and select the USB Flash Drive
    2. Windows Media
    Share/Computer/Windows Media and select appropriate preset to get you .wmv file
    3. See Share/Mobile Phones and Players
    Remember you can customize the settings under the Advanced Button/Video Tab, Audio Tab, Multiplexer Tab of
    the preset selected.
    Please review the Premiere Element 9 Help PDF, Chapter 15, Saving and Sharing Movies.
    The above is an overview. We can go into more details after you review the above.
    Thank you.

  • How Do I save and restore keywords, categories and tags in PE6?

    I have my photos backed up on an external hard drive, but if and when my hard drive crashes, how do I get back the tags, keywords, categories, etc. that I have used in the PE 6 Organizer?  Can I save them and, if so, when I need to restore this, how do I do that?  How do I reconnect tags, categories, keywords, etc. with photos that I re-import after a hard drive crash?

    John: Many thanks for this help.  I use CS3, but my mom has PE6 and I'm trying to help her.  I'm not as familiar with PE6.
    Again, thanks,
    Date: Sat, 12 Sep 2009 13:24:12 -0600
    From: [email protected]
    To: [email protected]
    Subject: How Do I save and restore keywords, categories and tags in PE6?
    PSE keeps your keywords, categories, albums, stacks, version sets, captions, notes, dates, and star ratings in a file in a "catalog folder".  (Do Help > System Info to find the location of your catalog folder).  When you make a backup with the PSE File > Backup command, it copies all your photos and the catalog file into the backup.   When you restore from that backup, it copies that catalog file and all your photos to the location you specify.

  • How to set upper and lower limit for service notification in SPRO

    Hello everyone,
    Good morning....!!
    I am new to SAP PM and to SCN as well.
    I have a question on Service notification user status.
    I  have notification profile configured in SAP as below:
    Status no      Status          Short text              Lower limit          Upper limit
    5                  REGD          Registered                1                          70
    10                PCKS            Pack sent                  1                          70
    20                APRC            Application received  1                        70
    I want the statusesto be set as  navigation should only allow to go back one by from APRC -->PCKS not to REGD.From PCKS -->REGD etc..not vice versa.
    Can enayone explain me to how to set lower and upper limits for these according ot the above requirement.
    for more details please check my attachment.
    Thanks in advance..!!

    Once you change the status to previous status, just save the order. Then again open the order & try to change the user status.
    Just I made replica of your profile. I could able to change (even without saving the order).

  • How to set value for radio button in sap crm survey suite

    Hi ,
    I created a survey in CRM Service, in which I added a question with answer as '10 Selection Button Group ('radio button'). And answer has 11 answer options (which means 11 radio buttions). Now when we test the survey, the value for the radio buttons is appearing like 'id_0050569b03091ee480a29d8ee61e953c'. But i want to set a specific value for each radion button (from 1 to 11). So, how to set value for radio button in sap crm survey suite???.
    Thanks & Regards,

    I found solution myself. Click on Goto -> Editing Mode -> Expert Mode. Now you can set value for radio button.

  • Disable Save and email button.

    In the PO Adobe output form MEDRUCK_PO, I need to disable the Save and email button when print Preview is done. The Print button can be disabled by setting  SFPOUTPUTPARAMS-NOPRINT = 'X'.
    Can you please let me know if the Save and Email buttons can be disabled?

    The Save buttom cannot be dissabled.
    The available params are:
    Optional: Set output parameters
    gs_outputparams-nodialog = ''.
    gs_outputparams-preview = ''.
    gs_outputparams-getpdf = 'X'.
    gs_outputparams-nopreview = 'X'.
    gs_outputparams-noprint = 'X'.
    gs_outputparams-noarchive = 'X'.
    gs_outputparams-nopributt = 'X'.
    gs_outputparams-arcmode = '1'.
    gs_outputparams-noarchive = 'X'.
    Open print job
    ie_outputparams = gs_outputparams
    OTHERS = 1.

  • How do I save and import my bookmarks from another hard drive? When I try to open the installed Firefox on the old drive, it (obviously) opens a browser from the new main drive, free of bookmarks. Is there a way I can save the bookmarks on the old drive w

    How do I save and import my bookmarks from another hard drive? When I try to open the installed Firefox on the old drive, it (obviously) opens a browser from the new main drive, free of bookmarks. Is there a way I can save the bookmarks on the old drive without opening a browser?
    The guts of my computer were rearranged and I got a new main hard drive. My old one is still in there and I can get stuff from it, but when I go to the Mozilla folder on the old one, I can't figure out if there's anything I can do to get all my bookmarks from that drive to my new one, where Firefox is newly installed.

    If you open Firefox then Firefox will always use the default profile folder as found via profiles.ini on your system drive.
    You either need to import the file in your current default profile or copy the file to your current profile folder while Firefox is closed.
    Firefox 3 stores the bookmarks and the browser history in [ places.sqlite] and no longer creates an HTML backup by default.
    There are also (five) JSON backups in the bookmarkbackups folder within the Firefox profile folder.
    You can either copy the file places.sqlite to your [ Firefox Profile Folder] or import the most recent JSON backup from the bookmarkbackups folder of that old profile.
    "Application Data" in XP/Win2K and "AppData" in Vista/Windows 7 are hidden folders.
    Go to: Control Panel > Folder Options > "View" tab > under "Hidden files and folders", select "Show hidden files and folders".
    You may want to un-check the box "Hide extensions for known file types" to see the file extensions of all files.

  • How to set-up and use FAMILY Sharing

    Can someone please explain to me in detail how to set-up and use FAMILY Sharing, none of the information I have so far found in the documentation helps at all, in fact it puts you in a constant loop giving the same information over and over again
    We have quite a few devices from ipads, iphones and ipods and I need to set-up Family Sharing.
    We have our main Apple ID which is linked to our Payment method, I have now got my son a new iPad, I have created his Apple ID and set-up a link via FAMILY Sharing to our main Apple ID.
    From what I read we should be able to share our purchased Apps between family members.
    So I figured I would be able to get the Apps now via iTunes that are part of the FAMILY Sharing, however when I go into ITunes (latest version downloaded yesterday) I can only see the Home sharing menu item not FAMILY Sharing, so I cannot work out in Itunes how to get Apps that are FAMILY shared.  So ok I will try and get Apps directly via the Ipad using the App Store.  To test it is working I look for a known paid for App, I then go to download it and it is now asking me to pay for it again. 
    Can someone please explain to me in detail how FAMILY Sharing is supposed to work and how I get it to work please.
    Thanks for your help

    Hey GregWr,
    Thanks for the question. The following resources provides some of the best information regarding Family Sharing. Included, you’ll find information on making sure the accounts are set to "Share my purchases”, as well as information on downloading Family Member purchases from the iTunes Purchased section. Please note that some applications are not shareable.
    Sharing purchased content with Family Sharing - Apple Support
    Which purchased content can I share using Family Sharing - Apple Support
    If you don't see your family's shared content - Apple Support
    Matt M.

  • How can i view and apply new custom patterns without going to preset manager? i had this facility but have now lost it

    how can i view and apply new custom patterns without going to preset manager? i had this facility but have now lost it.  i design patterns but am fairly new to photoshop. i used to be able to click on the drop down menu in patterns in the 'fill' box but cannot now do this.  have i inadvertently clicked on something to turn this facility off?  i now have to go to 'preset manager' and manually move my new design to the first box and click 'done' so that i can use it.

    Which version of photoshop are you using?
    After you define a custom pattern it should be added to the bottom of whatever patterns are already loaded.
    For example, if you define a custom pattern and then go to Edit>Fill>Pattern, the newly defined pattern should have been added to the existing loaded patterns.

  • Save and Close button issue in CRM 2013 for Activity Type Appointment

    Hi All,
    Have come across a strange behavior in CRM 2013 and would like  to be sure that it really is an issue which others have encountered too.
    Open a Case record, and click on Activity navigation link to see the Open Activity Associated View. Then try creating an Activity of type Meeting and click on
    Save & Close button (not just Save). When you refresh the view, the activity might show up. But repeat the same steps and create another Activity of Type Meeting and this activity will not show up. It doesnt show up even in the All Activities
    view. Seems like the activity does not get created when using Save and Close button.
    This behavior is replicated even on online 30 day trial version. Any inputs?

    The problem only occurs when your appointment times clash.   "Save and close" just throws the appointment away.  "Save" tells you about clash (or perhaps it's just unavailability) and allows you to ignore and continue with the

  • CRM 2013 - "Save and Close" button behavnig like "Save and New"

    I am working in CRM 2013. I have a scenario in which I am saving new opportunity product record through javascript and preventing original save of CRM. Save is working fine. After save, I need to refresh the screen. So I have used "Xrm.Utility.openEntityForm"
    to open newly created item in edit mode. When I click on "Save and Close" button on this new form in edit mode, instead of closing the opportunity product screen, it opens new entity form. So in short, after saving the record, if I click on "Save
    and Close", it behaves like "Save and New".
    Any one facing such issue?

    Save & Close seems to behave like the Save & "Back" Button, so the form tries to return to the new form, that was opened before.
    But I have no solution for this behavior...

Maybe you are looking for

  • Adobe FlashPlayer paired with Internet Explorer 8 shows Plug-In version Not Installed?

    Active X version is 11.7.700.202 I am being told that for a new program (Remedy) we are going to be using that the Plug-In version needs installed or the web-based application will not work.  Is there any way to install the Plug-In version in additio

  • Measure a single pulse width using usb 5133

    hi im trying to measure the width of a single pulseoutpout from NI SCOPE express however pulse seems to expect more than a single pulse. any ideas? ta

  • Stop a Transaction from a BAdI

    Hi guys, I'm using Ecc 6.0 here, In Transaction ME41, when you register the vendor for RFQ (request for quotation), a few Badis are triggered, inside the badi, when I see that there is no e-mail for that vendor, I need to prevent the transaction from

  • Simple play(); problem

    Go easy on me. I'm very new to ActionScript. My problem is this. I've got a button inside a movie clip. That button needs to play a movie clip that is on the main timeline. However, whatever I try (that's within my knowledge) doesn't work. Here is a

  • Crash dump space requirement

    Hi All, I have set my dump device to capture all the kernel pages. here is how it is setup Dump content: kernel pages Dump device: /dev/dsk/c1t1d0s4 (dedicated) Savecore directory: /var/crash/xxxxxxxx (minfree = 20000KB) Savecore enabled: yes now, i