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");
vo1.reset();
if (vo1 != null) {
vo1.next();
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){
savebBean.setDisabled(true);
OASubmitButtonBean applybBean = ((OASubmitButtonBean)webBean.findChildRecursive("Apply"));
if (savebBean != null){
applybBean.setDisabled(true);
catch(Exception exception){
throw new OAException("Error in Staffing Query: "+exception, OAException.ERROR);
please any one had this issue.
any help??
Regards,

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");
mcb.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,firePartialAction);
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?

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

  • Deliverable Actions - Save and Apply buttons.

    Hi,
    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?
    Thanks,
    Mark
    Edited by: user11980623 on 04-Nov-2009 03:24

    Hi,
    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?
    Thanks,
    Mark

  • How to set Shortcut keys for button in Apex

    Hi
    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.
    Thanks
    Vijay

    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:
    <script>
    document.onkeydown=keyCheck;
    function keyCheck(e){
         var KeyId = (window.event) ? event.keyCode : e.keyCode;
         switch(KeyId){         
              case 113:
                   doSubmit('SAVE');
                   break;                    
              case 118:
                   alert('Hello');
                   break;
    </script>
    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.
    Regards,
    Przemek

  • 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!

    Moti
    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.
    http://help.adobe.com/archive/en_US/premiereelements/9/premiereelements_9_help.pdf
    The above is an overview. We can go into more details after you review the above.
    Thank you.
    ATR

  • 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,
    Mark
    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
    etc..
    I want the statusesto be set as  navigation should only allow to go back one by one...like 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..!!
    Regards,
    Sudha.

    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,
    Seshu

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

  • Disable Save and email button.

    Hi,
    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?
    Thanks,
    Dhananjoy.

    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
    CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
    ie_outputparams = gs_outputparams
    EXCEPTIONS
    OTHERS = 1.
    Also check PDFCHANGESRESTRICTED = 'X'

  • 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 [http://kb.mozillazine.org/places.sqlite 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 [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder] or import the most recent JSON backup from the bookmarkbackups folder of that old profile.
    See:
    http://kb.mozillazine.org/Backing_up_and_restoring_bookmarks_-_Firefox
    http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox
    See http://kb.mozillazine.org/Profile_folder_-_Firefox
    "Application Data" in XP/Win2K and "AppData" in Vista/Windows 7 are hidden folders.
    See http://kb.mozillazine.org/Show_hidden_files_and_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
    Greg

    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
    http://support.apple.com/en-us/HT201085
    Which purchased content can I share using Family Sharing - Apple Support
    http://support.apple.com/en-us/HT203046
    If you don't see your family's shared content - Apple Support
    http://support.apple.com/en-us/HT201454
    Thanks,
    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?
    Regards,
    Yogesh

    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
    save.

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

    Hi,
    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

  • No cd or dvd player on new macbook pro. how to install external software

    my new macbook pro with retina display has no dvd or cd player. how could i install any external software that comes in a cd like office for mac or any other type of software

  • How to go back to a particulat list in interactive report.

    hi experts,               I have created an interactive report which has a primary list and 4 secondary list.Now from my 4th list i want to go to second list . what i have to do .i know something has to be done with sy-lsind. just check this code. ca

  • Unable to start oc4j instance

    Hi, My application was running well. But since last two days oc4j instance is not starting up. I reinstalled developer suite 10g release 2. But the problem is still there. A flash comes when i click start oc4j instance. Even i m not able to read the

  • Syatem Alias

    Hi SDN, I am having a doubt. When we create a system in portal we specify the System Alias Property and this is a mandatory one. Some body please tell me why do we need to create a system Alias??? Regards, SrinivaS

  • Switch hard drive

    Hi all My MBP has been lagging so much these past 2 months, I blamed Mavericks at first but maybe it seems my HDD is failing. I would like to replace it myself but I have one concern. How do you install Mavericks on an empty hard drive... Im thinking


HashFlare